From 230b9c2b37ad9f2726d74780716a5f654cc9b0f6 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 22 Jan 2013 13:04:51 +0000 Subject: Tutorial step #1 initial .ui prototype 1. Give the dialog the right title, "Chinese Conversion" 2. save as chineseconversiondialog.ui to /uiconfig/ui 3. add to .mk 4. Add the dialog action area buttons 5.1. use stock gtk-ok, gtk-cancel, gtk-help, etc. for standard buttons 5.2. call them "ok", "cancel", "help" for consistency 6. Visually the old dialog has two frames, "Conversion direction" and "Common terms" 6.1. Add a GtkGrid, one column, two rows 6.2. Add a GtkFrame to each 6.3. Copy and paste in the frame titles from the .src 6.4. Format the frame labels to use bold text and not bold markup as per https://live.gnome.org/GnomeGoals/RemoveMarkupInMessages 7. Conversion direction has two radio buttons 7.1. Add a GtkGrid, one column, two rows to Conversion direction frame 7.2. Add two radiobuttons, cut and paste in text from .src 7.3. Convert vcl "~" mnemonic indication to .ui "_" and click use underline 7.4. Group radiobutton1 with radiobutton2 and radiobutton2 with radiobutton1 7.5. Set the radiobuttons that are not to be default selected as inactive 8. Common terms has one checkbox and a pushbutton 8.1. Add a GtkGrid, two columns, one row 8.2. Add a checkbox and button, copy and paste in text from .src 8.3. do the ~ to _ + underscore conversion Change-Id: I49af68b8280876d8687fe9ecad4d80d12c9607c4 --- svx/UI_svx.mk | 1 + svx/uiconfig/ui/chineseconversiondialog.ui | 230 +++++++++++++++++++++++++++++ 2 files changed, 231 insertions(+) create mode 100644 svx/uiconfig/ui/chineseconversiondialog.ui diff --git a/svx/UI_svx.mk b/svx/UI_svx.mk index bba32ab1f907..4abcd55a5f1d 100644 --- a/svx/UI_svx.mk +++ b/svx/UI_svx.mk @@ -11,6 +11,7 @@ $(eval $(call gb_UI_UI,svx)) $(eval $(call gb_UI_add_uifiles,svx,\ svx/uiconfig/ui/asianphoneticguidedialog \ + svx/uiconfig/ui/chineseconversiondialog \ svx/uiconfig/ui/compressgraphicdialog \ )) diff --git a/svx/uiconfig/ui/chineseconversiondialog.ui b/svx/uiconfig/ui/chineseconversiondialog.ui new file mode 100644 index 000000000000..ee1ae1649f42 --- /dev/null +++ b/svx/uiconfig/ui/chineseconversiondialog.ui @@ -0,0 +1,230 @@ + + + + + False + 5 + Chinese Conversion + dialog + + + False + vertical + 2 + + + False + end + + + gtk-ok + True + True + True + True + + + False + True + 0 + + + + + gtk-cancel + True + True + True + True + + + False + True + 1 + + + + + gtk-help + True + True + True + True + + + False + True + 2 + + + + + False + True + end + 0 + + + + + True + False + + + True + False + 0 + none + + + True + False + 12 + + + True + False + + + _Traditional Chinese to simplified Chinese + True + True + False + True + 0 + True + True + radiobutton2 + + + 0 + 0 + 1 + 1 + + + + + _Simplified Chinese to traditional Chinese + True + True + False + True + 0 + True + radiobutton1 + + + 0 + 1 + 1 + 1 + + + + + + + + + True + False + Conversion direction + + + + + + + + 0 + 0 + 1 + 1 + + + + + True + False + 0 + none + + + True + False + 12 + + + True + False + + + Translate _common terms + True + True + False + True + 0 + True + + + 0 + 0 + 1 + 1 + + + + + _Edit Terms... + True + True + True + True + + + 1 + 0 + 1 + 1 + + + + + + + + + True + False + Common terms + + + + + + + + 0 + 1 + 1 + 1 + + + + + False + True + 1 + + + + + + ok + cancel + help + + + -- cgit v1.2.3