diff --git a/examples/ircclient/src/ircclient/ui/frame.d b/examples/ircclient/src/ircclient/ui/frame.d index 8ab6c9f6..91dd6296 100644 --- a/examples/ircclient/src/ircclient/ui/frame.d +++ b/examples/ircclient/src/ircclient/ui/frame.d @@ -20,6 +20,7 @@ enum IRCActions : int { Connect, Disconnect, HelpAbout, + Join } // actions @@ -31,12 +32,14 @@ const Action ACTION_EDIT_CUT = (new Action(EditorActions.Cut, "MENU_EDIT_CUT"c, const Action ACTION_EDIT_UNDO = (new Action(EditorActions.Undo, "MENU_EDIT_UNDO"c, "edit-undo"c, KeyCode.KEY_Z, KeyFlag.Control)).disableByDefault(); const Action ACTION_EDIT_REDO = (new Action(EditorActions.Redo, "MENU_EDIT_REDO"c, "edit-redo"c, KeyCode.KEY_Y, KeyFlag.Control)).addAccelerator(KeyCode.KEY_Z, KeyFlag.Control|KeyFlag.Shift).disableByDefault(); -const Action ACTION_EDIT_PREFERENCES = (new Action(IRCActions.EditPreferences, "MENU_EDIT_PREFERENCES"c, "document-properties"c, KeyCode.F9, 0)); +const Action ACTION_EDIT_PREFERENCES = (new Action(IRCActions.EditPreferences, "MENU_EDIT_PREFERENCES"c, "configure"c, KeyCode.F9, 0)); const Action ACTION_CONNECT = (new Action(IRCActions.Connect, "MENU_CONNECT"c, "connect"c, KeyCode.F5, 0)).disableByDefault(); const Action ACTION_DISCONNECT = (new Action(IRCActions.Disconnect, "MENU_DISCONNECT"c, "disconnect"c, KeyCode.F5, 0)).disableByDefault(); -const Action ACTION_HELP_ABOUT = new Action(IRCActions.HelpAbout, "MENU_HELP_ABOUT"c, "document-open"c, KeyCode.F1, 0); +const Action ACTION_CHANNEL_JOIN = (new Action(IRCActions.Join, "MENU_CHANNEL_JOIN"c, "channel-join"c, KeyCode.F2, 0)).disableByDefault(); + +const Action ACTION_HELP_ABOUT = new Action(IRCActions.HelpAbout, "MENU_HELP_ABOUT"c, "about"c, KeyCode.F1, 0); class IRCFrame : AppFrame, IRCClientCallback { @@ -86,11 +89,11 @@ class IRCFrame : AppFrame, IRCClientCallback { ToolBarHost res = new ToolBarHost(); ToolBar tb; tb = res.getOrAddToolbar("Standard"); - tb.addButtons(//ACTION_FILE_NEW, ACTION_FILE_OPEN, ACTION_FILE_SAVE, ACTION_SEPARATOR, + tb.addButtons( ACTION_CONNECT, ACTION_DISCONNECT, - ACTION_SEPARATOR, ACTION_EDIT_PREFERENCES, + ACTION_SEPARATOR, ACTION_HELP_ABOUT); //tb = res.getOrAddToolbar("Edit"); diff --git a/examples/ircclient/views/res/i18n/en.ini b/examples/ircclient/views/res/i18n/en.ini index d0b8e479..9ae6516c 100644 --- a/examples/ircclient/views/res/i18n/en.ini +++ b/examples/ircclient/views/res/i18n/en.ini @@ -40,3 +40,4 @@ TAB_CANVAS=Canvas MENU_CONNECT=Connect MENU_DISCONNECT=Connect +MENU_CHANNEL_JOIN=Join Channel diff --git a/examples/ircclient/views/res/mdpi/about.png b/examples/ircclient/views/res/mdpi/about.png new file mode 100644 index 00000000..a37da7b4 Binary files /dev/null and b/examples/ircclient/views/res/mdpi/about.png differ diff --git a/examples/ircclient/views/res/mdpi/channel-join.png b/examples/ircclient/views/res/mdpi/channel-join.png new file mode 100644 index 00000000..df8a3575 Binary files /dev/null and b/examples/ircclient/views/res/mdpi/channel-join.png differ diff --git a/examples/ircclient/views/res/mdpi/configure.png b/examples/ircclient/views/res/mdpi/configure.png new file mode 100644 index 00000000..0c2f5eae Binary files /dev/null and b/examples/ircclient/views/res/mdpi/configure.png differ diff --git a/examples/ircclient/views/res/mdpi/debug-run.png b/examples/ircclient/views/res/mdpi/debug-run.png deleted file mode 100644 index eee3e905..00000000 Binary files a/examples/ircclient/views/res/mdpi/debug-run.png and /dev/null differ diff --git a/examples/ircclient/views/res/mdpi/document-properties.png b/examples/ircclient/views/res/mdpi/document-properties.png deleted file mode 100644 index 12c6b448..00000000 Binary files a/examples/ircclient/views/res/mdpi/document-properties.png and /dev/null differ diff --git a/examples/ircclient/views/resources.list b/examples/ircclient/views/resources.list index 3aa6374e..bb524605 100644 --- a/examples/ircclient/views/resources.list +++ b/examples/ircclient/views/resources.list @@ -1,14 +1,15 @@ res/i18n/en.ini res/i18n/ru.ini +res/mdpi/about.png res/mdpi/cr3_logo.png +res/mdpi/channel-join.png +res/mdpi/configure.png res/mdpi/connect.png res/mdpi/disconnect.png -res/mdpi/debug-run.png res/mdpi/document-close.png res/mdpi/document-new.png res/mdpi/document-open-recent.png res/mdpi/document-open.png -res/mdpi/document-properties.png res/mdpi/document-save-as.png res/mdpi/document-save.png res/mdpi/edit-copy.png