-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
112 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
src/Widgets/Menu.vala | ||
src/Widgets/NumDisplay.vala | ||
src/Widgets/Window.vala | ||
src/Widgets/RollHistory.vala | ||
src/Widgets/Buttons/PreviousRoll.vala | ||
src/MainWindow.vala |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: com.github.zelikos.rannum\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-02-13 20:38+0100\n" | ||
"POT-Creation-Date: 2020-11-13 15:51-0500\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -17,26 +17,42 @@ msgstr "" | |
"Content-Type: text/plain; charset=CHARSET\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#: src/Widgets/Menu.vala:28 | ||
msgid "Light" | ||
#: src/Widgets/Menu.vala:35 | ||
msgid "d6" | ||
msgstr "" | ||
|
||
#: src/Widgets/Menu.vala:29 | ||
msgid "Dark" | ||
#: src/Widgets/Menu.vala:36 | ||
msgid "d10" | ||
msgstr "" | ||
|
||
#: src/Widgets/Menu.vala:37 | ||
msgid "Max Roll:" | ||
msgid "d20" | ||
msgstr "" | ||
|
||
#: src/Widgets/Menu.vala:101 | ||
msgid "Dice Settings" | ||
msgstr "" | ||
|
||
#: src/Widgets/NumDisplay.vala:33 | ||
msgid "Ready to Roll" | ||
msgstr "" | ||
|
||
#: src/Widgets/Window.vala:50 | ||
msgid "Settings" | ||
#: src/Widgets/RollHistory.vala:37 | ||
msgid "Clear" | ||
msgstr "" | ||
|
||
#: src/Widgets/RollHistory.vala:46 | ||
msgid "Clear History" | ||
msgstr "" | ||
|
||
#: src/Widgets/Buttons/PreviousRoll.vala:54 | ||
msgid "Copied" | ||
msgstr "" | ||
|
||
#: src/MainWindow.vala:54 | ||
msgid "Roll History" | ||
msgstr "" | ||
|
||
#: src/Widgets/Window.vala:64 | ||
#: src/MainWindow.vala:61 | ||
msgid "Roll" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,12 +16,14 @@ | |
* Authored by Patrick Csikos <[email protected]> | ||
*/ | ||
|
||
public class Rollit.MainWindow : Hdy.Window { | ||
// public class Rollit.MainWindow : Hdy.Window { | ||
public class Rollit.MainWindow : Gtk.ApplicationWindow { | ||
|
||
private Rollit.Menu menu_button; | ||
private Rollit.NumDisplay number_display; | ||
private Rollit.RollHistory roll_history; | ||
private Hdy.HeaderBar header; | ||
// private Hdy.HeaderBar header; | ||
private Gtk.HeaderBar header; | ||
private Gtk.Button roll_button; | ||
private Gtk.Button history_button; | ||
private Gtk.Box action_buttons; | ||
|
@@ -38,11 +40,12 @@ public class Rollit.MainWindow : Hdy.Window { | |
} | ||
|
||
construct { | ||
Hdy.init (); | ||
// Hdy.init (); | ||
|
||
restore_state (); | ||
|
||
header = new Hdy.HeaderBar () { | ||
// header = new Hdy.HeaderBar () { | ||
header = new Gtk.HeaderBar () { | ||
title = "Roll-It", | ||
show_close_button = true | ||
}; | ||
|
@@ -83,10 +86,11 @@ public class Rollit.MainWindow : Hdy.Window { | |
hp.pack2 (roll_history, false, false); | ||
|
||
var grid = new Gtk.Grid (); | ||
grid.attach (header, 0, 0); | ||
grid.attach (hp, 0, 1); | ||
// grid.attach (header, 0, 0); | ||
grid.attach (hp, 0, 0); | ||
|
||
add (grid); | ||
set_titlebar (header); // TODO: Remove after switching back to HdyHeaderBar | ||
|
||
show_all (); | ||
|
||
|
@@ -175,7 +179,7 @@ public class Rollit.MainWindow : Hdy.Window { | |
); | ||
|
||
accel_group.connect ( | ||
Gdk.Key.D, | ||
Gdk.Key.C, | ||
Gdk.ModifierType.MOD1_MASK, // TODO: Replace with ALT_MASK for GTK4 | ||
Gtk.AccelFlags.VISIBLE | Gtk.AccelFlags.LOCKED, | ||
() => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters