Kaydet (Commit) 35376f92 authored tarafından Caolán McNamara's avatar Caolán McNamara

convert QUERY_BRW_SAVEMODIFIED with custom buttons to .ui

Change-Id: I248e7b14fdd89c3efca60dfce0b9b8dfd2693fa8
üst 58a7a9bf
......@@ -54,6 +54,7 @@ $(eval $(call gb_UIConfig_add_uifiles,dbaccess, \
dbaccess/uiconfig/ui/relationdialog \
dbaccess/uiconfig/ui/rowheightdialog \
dbaccess/uiconfig/ui/rtfcopytabledialog \
dbaccess/uiconfig/ui/saveindexdialog \
dbaccess/uiconfig/ui/savedialog \
dbaccess/uiconfig/ui/savemodifieddialog \
dbaccess/uiconfig/ui/specialjdbcconnectionpage \
......
......@@ -27,7 +27,6 @@
#include "indexfieldscontrol.hxx"
#include "indexcollection.hxx"
#include <vcl/layout.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/settings.hxx>
#include <com/sun/star/sdb/SQLContext.hpp>
#include "UITools.hxx"
......@@ -573,7 +572,8 @@ namespace dbaui
if (aSelected->isModified() || aSelected->isNew())
{
QueryBox aQuestion(this, ModuleRes(QUERY_SAVE_CURRENT_INDEX));
MessageDialog aQuestion(this, "SaveIndexDialog",
"dbaccess/ui/saveindexdialog.ui");
nResponse = aQuestion.Execute();
}
}
......
......@@ -63,16 +63,6 @@ String STR_NEED_INDEX_FIELDS
Text [ en-US ] = "The index must contain at least one field.";
};
QueryBox QUERY_SAVE_CURRENT_INDEX
{
Title [ en-US ] = "Exit Index Design";
Message [ en-US ] = "Do you want to save the changes made to the current index?";
Buttons = WB_YES_NO_CANCEL;
DefButton = WB_DEF_YES;
};
String STR_INDEX_NAME_ALREADY_USED
{
Text [ en-US ] = "There is already another index named \"$name$\".";
......
......@@ -101,7 +101,6 @@
// query boxes
#define TABLE_DESIGN_SAVEMODIFIED RID_QUERYBOX_START + 5
#define QUERY_SAVE_CURRENT_INDEX RID_QUERYBOX_START + 7
#define RELATION_DESIGN_SAVEMODIFIED RID_QUERYBOX_START + 9
#define TABLE_DESIGN_ALL_ROWS_DELETED RID_QUERYBOX_START + 13
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface>
<requires lib="gtk+" version="3.0"/>
<object class="GtkMessageDialog" id="SaveIndexDialog">
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="title" translatable="yes">Exit Index Design</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 made to the current index?</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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment