diff options
author | Manal Alhassoun <malhassoun@kacst.edu.sa> | 2014-01-01 08:34:41 +0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-01 19:22:42 +0000 |
commit | 2056f93f2d9f62741045e2aee0ed4d31001febef (patch) | |
tree | 872cb7d54e8a1f8d9233308e4f23a3b32be7bd26 | |
parent | 202ea1975ca0e4ecdc6c175aaed2537bda3ac847 (diff) |
convert update file list queryboxes to .ui
Change-Id: I9e9ad3674c6b45181b4fc3d4e252431b0dcab06d
Reviewed-on: https://gerrit.libreoffice.org/7243
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | cui/UIConfig_cui.mk | 1 | ||||
-rw-r--r-- | cui/source/dialogs/cuigaldlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/gallery.src | 4 | ||||
-rw-r--r-- | cui/source/inc/gallery.hrc | 1 | ||||
-rw-r--r-- | cui/uiconfig/ui/queryupdategalleryfilelistdialog.ui | 34 |
5 files changed, 36 insertions, 6 deletions
diff --git a/cui/UIConfig_cui.mk b/cui/UIConfig_cui.mk index cde65d068838..d059ad0804c3 100644 --- a/cui/UIConfig_cui.mk +++ b/cui/UIConfig_cui.mk @@ -125,6 +125,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\ cui/uiconfig/ui/querynoloadedfiledialog \ cui/uiconfig/ui/querynosavefiledialog \ cui/uiconfig/ui/querysavelistdialog \ + cui/uiconfig/ui/queryupdategalleryfilelistdialog \ cui/uiconfig/ui/recordnumberdialog \ cui/uiconfig/ui/rotationtabpage \ cui/uiconfig/ui/scriptorganizer \ diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index ea9afc1d166a..c3fba419ded5 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -983,7 +983,7 @@ IMPL_LINK_NOARG(TPGalleryThemeProperties, SelectFileTypeHdl) { aLastFilterName = aText; - if( QueryBox( this, WB_YES_NO, OUString( CUI_RES( RID_SVXSTR_GALLERY_SEARCH ) ) ).Execute() == RET_YES ) + if( MessageDialog( this, "QueryUpdateFileListDialog","cui/ui/queryupdategalleryfilelistdialog.ui" ).Execute() == RET_YES ) SearchFiles(); } diff --git a/cui/source/dialogs/gallery.src b/cui/source/dialogs/gallery.src index d1a741359e09..076b9496b12c 100644 --- a/cui/source/dialogs/gallery.src +++ b/cui/source/dialogs/gallery.src @@ -257,10 +257,6 @@ String RID_SVXSTR_GALLERY_NOFILES { Text [ en-US ] = "<No Files>" ; }; -String RID_SVXSTR_GALLERY_SEARCH -{ - Text [ en-US ] = "Do you want to update the file list?" ; -}; String RID_SVXSTR_GALLERYPROPS_OBJECT { Text [ en-US ] = "Object;Objects" ; diff --git a/cui/source/inc/gallery.hrc b/cui/source/inc/gallery.hrc index e255e7592c41..d142711d4f9c 100644 --- a/cui/source/inc/gallery.hrc +++ b/cui/source/inc/gallery.hrc @@ -28,7 +28,6 @@ // Gallery-Strings #define RID_SVXSTR_GALLERY_NOFILES (RID_CUI_GALLERY_START + 12) -#define RID_SVXSTR_GALLERY_SEARCH (RID_CUI_GALLERY_START + 30) #define RID_SVXSTR_GALLERYPROPS_OBJECT (RID_CUI_GALLERY_START + 39) #define RID_SVXSTR_GALLERY_READONLY (RID_CUI_GALLERY_START + 43) #define RID_SVXSTR_GALLERY_ALLFILES (RID_CUI_GALLERY_START + 44) diff --git a/cui/uiconfig/ui/queryupdategalleryfilelistdialog.ui b/cui/uiconfig/ui/queryupdategalleryfilelistdialog.ui new file mode 100644 index 000000000000..5dc0cac39db8 --- /dev/null +++ b/cui/uiconfig/ui/queryupdategalleryfilelistdialog.ui @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <!-- interface-requires gtk+ 3.0 --> + <object class="GtkMessageDialog" id="QueryUpdateFileListDialog"> + <property name="can_focus">False</property> + <property name="border_width">12</property> + <property name="title" translatable="yes">Update the file list?</property> + <property name="resizable">False</property> + <property name="type_hint">dialog</property> + <property name="skip_taskbar_hint">True</property> + <property name="message_type">question</property> + <property name="buttons">yes-no</property> + <property name="text" translatable="yes">Do you want to update the file list?</property> + <child internal-child="vbox"> + <object class="GtkBox" id="messagedialog-vbox4"> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">24</property> + <child internal-child="action_area"> + <object class="GtkButtonBox" id="messagedialog-action_area4"> + <property name="can_focus">False</property> + <property name="layout_style">end</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="pack_type">end</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + </object> +</interface> |