cards/new, cards/edit and some improvements
This commit is contained in:
50
resources/cards/edit/ui.xml
Normal file
50
resources/cards/edit/ui.xml
Normal file
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<template class="MemoryCardsEditScene" parent="GtkApplicationWindow">
|
||||
<property name="title">Memory cards edit</property>
|
||||
<property name="height-request">1000</property>
|
||||
<property name="width-request">1000</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="content">
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="valign">GTK_ALIGN_FILL</property>
|
||||
<property name="halign">GTK_ALIGN_FILL</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="search_bar">
|
||||
<property name="orientation">horizontal</property>
|
||||
<property name="valign">GTK_ALIGN_START</property>
|
||||
<property name="halign">GTK_ALIGN_FILL</property>
|
||||
<child>
|
||||
<object class="GtkSearchEntry" id="search_entry">
|
||||
<property name="placeholder-text">Find a card</property>
|
||||
<property name="halign">GTK_ALIGN_FILL</property>
|
||||
<property name="valign">GTK_ALIGN_FILL</property>
|
||||
<property name="hexpand">true</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="add_button">
|
||||
<property name="label">+</property>
|
||||
<property name="halign">GTK_ALIGN_END</property>
|
||||
<property name="valign">GTK_ALIGN_FILL</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow" id="cards">
|
||||
<property name="halign">GTK_ALIGN_FILL</property>
|
||||
<property name="valign">GTK_ALIGN_FILL</property>
|
||||
<property name="vexpand">true</property>
|
||||
<child>
|
||||
<object class="CardEntry" id="first">
|
||||
<property name="hieroglyph">ka</property>
|
||||
<property name="translation">tr</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<template class="MemoryCardsSetupScene" parent="GtkApplicationWindow">
|
||||
<property name="title">Memory cards setup</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="content">
|
||||
<property name="orientation">horizontal</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="edit_button">
|
||||
<property name="label">Edit cards</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="start_button">
|
||||
<property name="label">start game</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
50
resources/cards/new/ui.xml
Normal file
50
resources/cards/new/ui.xml
Normal file
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<template class="MemoryCardsNewScene" parent="GtkApplicationWindow">
|
||||
<property name="title">New memory card</property>
|
||||
<property name="height-request">512</property>
|
||||
<property name="width-request">512</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="content">
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="halign">GTK_ALIGN_CENTER</property>
|
||||
<property name="valign">GTK_ALIGN_CENTER</property>
|
||||
<child>
|
||||
<object class="GtkImage" id="image">
|
||||
<property name="halign">GTK_ALIGN_CENTER</property>
|
||||
<property name="valign">GTK_ALIGN_CENTER</property>
|
||||
<property name="file">/home/leca/Downloads/2648 - SoyBooru.png</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="file_choose_button">
|
||||
<property name="halign">GTK_ALIGN_CENTER</property>
|
||||
<property name="valign">GTK_ALIGN_CENTER</property>
|
||||
<property name="label">Choose file</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkEntry" id="heiroglyph_entry">
|
||||
<property name="halign">GTK_ALIGN_CENTER</property>
|
||||
<property name="valign">GTK_ALIGN_CENTER</property>
|
||||
<property name="placeholder-text">Hieroglyph</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkEntry" id="translation_entry">
|
||||
<property name="halign">GTK_ALIGN_CENTER</property>
|
||||
<property name="valign">GTK_ALIGN_CENTER</property>
|
||||
<property name="placeholder-text">Translation</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="done_button">
|
||||
<property name="halign">GTK_ALIGN_CENTER</property>
|
||||
<property name="valign">GTK_ALIGN_CENTER</property>
|
||||
<property name="label">Done</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
@@ -7,15 +7,15 @@
|
||||
<property name="orientation">horizontal</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="edit_button">
|
||||
<property name="label">test</property>
|
||||
<property name="label">Edit cards</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="start_button">
|
||||
<property name="label">test2</property>
|
||||
<property name="label">start game</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
</interface>
|
||||
@@ -4,18 +4,24 @@
|
||||
<property name="title">Menu</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="content">
|
||||
<property name="orientation">horizontal</property>
|
||||
<property name="orientation">horizontal</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="hiragana_and_katakana">
|
||||
<property name="label">Practice hiragana and katakana</property>
|
||||
<style>
|
||||
<class name="hiragana_and_katakana" />
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="memory_cards">
|
||||
<property name="label">Practice vocabulary with memory cards</property>
|
||||
<style>
|
||||
<class name="memory_cards"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
</interface>
|
||||
@@ -1,21 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<schemalist>
|
||||
<schema id="org.foxarmy.learn-hieroglyph" path="/org/foxarmy/learn-hieroglyph/">
|
||||
<key name="is-rtk-enabled" type="b">
|
||||
<default>false</default>
|
||||
<summary>Enable romaji to kana</summary>
|
||||
</key>
|
||||
<key name="is-ktr-enabled" type="b">
|
||||
<default>true</default>
|
||||
<summary>Enable kana to romaji</summary>
|
||||
</key>
|
||||
<key name="is-hiragana-enabled" type="b">
|
||||
<default>true</default>
|
||||
<summary>Enable hiragana</summary>
|
||||
</key>
|
||||
<key name="is-katakana-enabled" type="b">
|
||||
<default>false</default>
|
||||
<summary>Enable katakana</summary>
|
||||
</key>
|
||||
</schema>
|
||||
</schemalist>
|
||||
<schema id="org.foxarmy.learn-hieroglyph" path="/org/foxarmy/learn-hieroglyph/">
|
||||
<key name="is-rtk-enabled" type="b">
|
||||
<default>false</default>
|
||||
<summary>Enable romaji to kana</summary>
|
||||
</key>
|
||||
<key name="is-ktr-enabled" type="b">
|
||||
<default>true</default>
|
||||
<summary>Enable kana to romaji</summary>
|
||||
</key>
|
||||
<key name="is-hiragana-enabled" type="b">
|
||||
<default>true</default>
|
||||
<summary>Enable hiragana</summary>
|
||||
</key>
|
||||
<key name="is-katakana-enabled" type="b">
|
||||
<default>false</default>
|
||||
<summary>Enable katakana</summary>
|
||||
</key>
|
||||
</schema>
|
||||
</schemalist>
|
||||
@@ -1,14 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<gresources>
|
||||
<gresource prefix="/org/foxarmy/learn-hieroglyph/">
|
||||
<file compressed="true" preprocess="xml-stripblanks">menu/ui.xml</file>
|
||||
|
||||
<file compressed="true" preprocess="xml-stripblanks">guessing/game/ui.xml</file>
|
||||
<file compressed="true" preprocess="xml-stripblanks">guessing/setup/ui.xml</file>
|
||||
<gresource prefix="/org/foxarmy/learn-hieroglyph/">
|
||||
<file compressed="true" preprocess="xml-stripblanks">menu/ui.xml</file>
|
||||
|
||||
<!-- <file compressed="true" preprocess="xml-stripblanks">cards/game/ui.xml</file> -->
|
||||
<file compressed="true" preprocess="xml-stripblanks">cards/setup/ui.xml</file>
|
||||
<file compressed="true" preprocess="xml-stripblanks">cards/edit/ui.xml</file>
|
||||
<file compressed="true" preprocess="xml-stripblanks">cards/setup/ui.xml</file>
|
||||
<file compressed="true" preprocess="xml-stripblanks">cards/new/ui.xml</file>
|
||||
|
||||
<file compressed="true" preprocess="xml-stripblanks">widgets/labled_switch/template.ui.xml</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
|
||||
<file compressed="true" preprocess="xml-stripblanks">guessing/game/ui.xml</file>
|
||||
<file compressed="true" preprocess="xml-stripblanks">guessing/setup/ui.xml</file>
|
||||
|
||||
<!-- <file compressed="true" preprocess="xml-stripblanks">cards/game/ui.xml</file> -->
|
||||
|
||||
<file compressed="true" preprocess="xml-stripblanks">widgets/labled_switch/template.ui.xml</file>
|
||||
<file compressed="true" preprocess="xml-stripblanks">widgets/card_entry/template.ui.xml</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
32
resources/widgets/card_entry/template.ui.xml
Normal file
32
resources/widgets/card_entry/template.ui.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<template class="CardEntry" parent="GtkWidget">
|
||||
<property name="image_hash"></property>
|
||||
<property name="hieroglyph"></property>
|
||||
<property name="translation"></property>
|
||||
<child>
|
||||
<object class="GtkPicture" id="picture">
|
||||
<property name="halign">GTK_ALIGN_CENTER</property>
|
||||
<property name="valign">GTK_ALIGN_CENTER</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="hieroglyph_label">
|
||||
<property name="halign">GTK_ALIGN_START</property>
|
||||
<property name="valign">GTK_ALIGN_START</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="translation_label">
|
||||
<property name="halign">GTK_ALIGN_START</property>
|
||||
<property name="valign">GTK_ALIGN_START</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="edit_button">
|
||||
<property name="halign">GTK_ALIGN_END</property>
|
||||
<property name="valign">GTK_ALIGN_END</property>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
Reference in New Issue
Block a user