From b0361baeb852e62a2b5c69b651c4846d672ab03f Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Wed, 16 Mar 2016 15:03:14 +0300 Subject: [PATCH] update icons in IRC Client example --- examples/ircclient/src/ircclient/ui/frame.d | 11 +++++++---- examples/ircclient/views/res/i18n/en.ini | 1 + examples/ircclient/views/res/mdpi/about.png | Bin 0 -> 541 bytes .../ircclient/views/res/mdpi/channel-join.png | Bin 0 -> 262 bytes examples/ircclient/views/res/mdpi/configure.png | Bin 0 -> 606 bytes examples/ircclient/views/res/mdpi/debug-run.png | Bin 383 -> 0 bytes .../views/res/mdpi/document-properties.png | Bin 635 -> 0 bytes examples/ircclient/views/resources.list | 5 +++-- 8 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 examples/ircclient/views/res/mdpi/about.png create mode 100644 examples/ircclient/views/res/mdpi/channel-join.png create mode 100644 examples/ircclient/views/res/mdpi/configure.png delete mode 100644 examples/ircclient/views/res/mdpi/debug-run.png delete mode 100644 examples/ircclient/views/res/mdpi/document-properties.png 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 0000000000000000000000000000000000000000..a37da7b415788b91a1cb1520a4d1415118d28b2f GIT binary patch literal 541 zcmV+&0^-u~sYJw5z{q4Qs**tX zL^5h{{<{Cc)r+SN(uQPVab60A0(C(dJXlp_E59jy_xr>zjK|~Hwo~)*Sy^31RZ&&1 zI#o?8p!17!M5EDQu;EezYj0O^%O#wzwgGzr%d!IBfV=nZ(9_*RI2`8as6;B2Qh)!d zD&CJ7g5lvI5{Xu9+h+3R6#1?E8Q5d0ZJh`PhX%OP(!%=sJEo^!aq#`%T=;a<0rU?( zpsA^mOeV{ViAg#-J8J&DarWr(LoQktn;&xQ?tY^Aax=ZXx4Ct*%RkD2f>10L!~I$2 z_n*JCwk2q9zron(xG_Bb888GFA`$o{T)Tdi`uYg7Z{}E9TIPQvw7>risNlLTUq0{g fdS=$&d(AioGZe^q22kLo00000NkvXXu0mjfsqyin literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..df8a3575518b2744ad588a0a2b1ce864abf26058 GIT binary patch literal 262 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE}0=1;$QsnKe38Z8BLxTOV_&$0jZT9Sc5#ZkyI z-kzDkw7GUiwR*#M&rM(WgT9NbIMA=9&wqoLsX=XF+ZF z^oIWuXUlw@*X|X#E5F;v@c(L-w>vsqHZS?ZdnT$Tdd=nMK-V!ac)I$ztaD0e0szBr BSPuXI literal 0 HcmV?d00001 diff --git a/examples/ircclient/views/res/mdpi/configure.png b/examples/ircclient/views/res/mdpi/configure.png new file mode 100644 index 0000000000000000000000000000000000000000..0c2f5eae94f95a896ddcada9b8ef5ed499dda8f6 GIT binary patch literal 606 zcmV-k0-^nhP)v zsOZRZ7MAAbL>Z7@kT><^s~7*jfB*LX$dSWefkIwD%nihh#OP-M8gLHi^#30}e)xa& z>a|a7Y;1xI!~$&{Ey)E7=lz;FYsUW%Km$H}c>jOyyg7@rvomhsmk|Fyb=s8w8#isd43ttN6kAMn4K;;}mMr)c5gGoUkB{$v zYI^E_U^Kmyl$5X_7}ss>&1ExYP5U1m9ra&ZTl;@dNYMXv8&-ceGc%1ODz(j>H|ySn zNj?8V!@~Y2r6m4eymaATFE7sqsDB9qpoZNOCiniIIJxit%-K`_g@gvr1PXHzom@M+ sJ5)Nm+xFJfRbCAY@&`o`4+9AR0Ht>d+)5)v%x-)b_i zJP_bLs}Te^XR8P+D_>+wl(?`(H~IMO`tQR3jQ^;gZ(x5fx9j>^y?OQT&Yla~!~@is z@Z;BO>BCoKg_Wnrz1`V-+WY_i|HpF~L^R&n?hjv;8GX#WCN4?ofzvsl)}m``_0HLU zPkUZf#M4lDGT~KUC!_cJZ*LsF3kho${{Q;jT(rbcEXky3bD^Qj4YzHP-fbbq1_lOy ze*d4J!F*4fh6@|#$R!6voIQM^JxQCHnb|qk*EElL zf#12!(|Bg~yi1XoVNs}5#w^nEBwWSvsm_FF7w&ob{4hv5-RslS6OpTGWiE87hliof XB6*U>0)+jEP)Xi%%w{vE(0iX^`YPa+cR!LH7Be46XU!y6}9S{Ds;T9$y4s#5bLK0NM6 zw`V&Rp7bF&JqDU=qsZ{FHQ?RTYxp=jj4qE83-i4Q+%)7Cv0kq;)(OUZTVK2n4WM&J zJ3fc|5tu&7pQ|x8%ZWq+u~-bzXcX~yyvDz?AzwJ%@!;*tKxOZqo%lj>@YX4d%&jc) zo