Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
25e71834
Kaydet (Commit)
25e71834
authored
Agu 25, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert RELATION_DESIGN_SAVEMODIFIED with custom buttons to .ui
Change-Id: Ifc0ccdf278e9f249845cf8bc12eece8f5a5f0d86
üst
35376f92
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
87 additions
and
10 deletions
+87
-10
UIConfig_dbaccess.mk
dbaccess/UIConfig_dbaccess.mk
+1
-0
dbu_resource.hrc
dbaccess/source/ui/inc/dbu_resource.hrc
+0
-1
RelationController.cxx
dbaccess/source/ui/relationdesign/RelationController.cxx
+3
-2
relation.src
dbaccess/source/ui/relationdesign/relation.src
+0
-7
designsavemodifieddialog.ui
dbaccess/uiconfig/ui/designsavemodifieddialog.ui
+83
-0
No files found.
dbaccess/UIConfig_dbaccess.mk
Dosyayı görüntüle @
25e71834
...
...
@@ -28,6 +28,7 @@ $(eval $(call gb_UIConfig_add_uifiles,dbaccess, \
dbaccess/uiconfig/ui/dbwizmysqlnativepage \
dbaccess/uiconfig/ui/dbwizspreadsheetpage \
dbaccess/uiconfig/ui/dbwiztextpage \
dbaccess/uiconfig/ui/designsavemodifieddialog \
dbaccess/uiconfig/ui/directsqldialog \
dbaccess/uiconfig/ui/emptypage \
dbaccess/uiconfig/ui/fielddialog \
...
...
dbaccess/source/ui/inc/dbu_resource.hrc
Dosyayı görüntüle @
25e71834
...
...
@@ -101,7 +101,6 @@
// query boxes
#define TABLE_DESIGN_SAVEMODIFIED RID_QUERYBOX_START + 5
#define RELATION_DESIGN_SAVEMODIFIED RID_QUERYBOX_START + 9
#define TABLE_DESIGN_ALL_ROWS_DELETED RID_QUERYBOX_START + 13
// images
...
...
dbaccess/source/ui/relationdesign/RelationController.cxx
Dosyayı görüntüle @
25e71834
...
...
@@ -56,7 +56,7 @@
#include <com/sun/star/io/XActiveDataSink.hpp>
#include "sqlmessage.hxx"
#include "RelationController.hxx"
#include <vcl/
msgbox
.hxx>
#include <vcl/
layout
.hxx>
#include "TableWindowData.hxx"
#include "UITools.hxx"
#include "RTableConnectionData.hxx"
...
...
@@ -255,7 +255,8 @@ short ORelationController::saveModified()
short
nSaved
=
RET_YES
;
if
(
haveDataSource
()
&&
isModified
())
{
QueryBox
aQry
(
getView
(),
ModuleRes
(
RELATION_DESIGN_SAVEMODIFIED
));
MessageDialog
aQry
(
getView
(),
"DesignSaveModifiedDialog"
,
"dbaccess/ui/designsavemodifieddialog.ui"
);
nSaved
=
aQry
.
Execute
();
if
(
nSaved
==
RET_YES
)
Execute
(
ID_BROWSER_SAVEDOC
,
Sequence
<
PropertyValue
>
());
...
...
dbaccess/source/ui/relationdesign/relation.src
Dosyayı görüntüle @
25e71834
...
...
@@ -47,13 +47,6 @@ String STR_RELATIONDESIGN_NOT_AVAILABLE
Text [ en-US ] = "The database does not support relations." ;
};
QueryBox RELATION_DESIGN_SAVEMODIFIED
{
Buttons = WB_YES_NO_CANCEL ;
DefButton = WB_DEF_YES ;
Message [ en-US ] = "The relation design has been changed.\nDo you want to save the changes?" ;
};
String STR_QUERY_REL_DELETE_WINDOW
{
Text [ en-US ] = "When you delete this table all corresponding relations will be deleted as well. Continue?";
...
...
dbaccess/uiconfig/ui/designsavemodifieddialog.ui
0 → 100644
Dosyayı görüntüle @
25e71834
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface>
<requires
lib=
"gtk+"
version=
"3.0"
/>
<object
class=
"GtkMessageDialog"
id=
"DesignSaveModifiedDialog"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
12
</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=
"text"
translatable=
"yes"
>
Do you want to save the changes?
</property>
<property
name=
"secondary_text"
translatable=
"yes"
>
The relation design has been changed.
</property>
<child
internal-child=
"vbox"
>
<object
class=
"GtkBox"
id=
"messagedialog-vbox"
>
<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_area"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"layout_style"
>
end
</property>
<child>
<object
class=
"GtkButton"
id=
"no"
>
<property
name=
"label"
>
gtk-no
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"yes"
>
<property
name=
"label"
>
gtk-yes
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"can_default"
>
True
</property>
<property
name=
"has_default"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"cancel"
>
<property
name=
"label"
>
gtk-cancel
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
2
</property>
</packing>
</child>
</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>
<action-widgets>
<action-widget
response=
"3"
>
no
</action-widget>
<action-widget
response=
"2"
>
yes
</action-widget>
<action-widget
response=
"0"
>
cancel
</action-widget>
</action-widgets>
</object>
</interface>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment