summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-08 15:49:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-08 15:53:17 +0100
commit3fc1e691c5e14f3b7a2579b563188e814f731cf6 (patch)
treee1f19e2f064e8bfb44b410eb65081e3ca890af51
parent1f7e6bdd23600cf118b786bbeb869949c36297e7 (diff)
Resolves: fdo#83501 STR_QUERY_* populate the join dialog
Change-Id: Id4cff969297009c9f9cd3323ac01c743b29ca6c4
-rw-r--r--dbaccess/source/ui/querydesign/querydlg.cxx5
-rw-r--r--dbaccess/uiconfig/ui/joindialog.ui61
2 files changed, 36 insertions, 30 deletions
diff --git a/dbaccess/source/ui/querydesign/querydlg.cxx b/dbaccess/source/ui/querydesign/querydlg.cxx
index b655a9b72ae4..23db605d8501 100644
--- a/dbaccess/source/ui/querydesign/querydlg.cxx
+++ b/dbaccess/source/ui/querydesign/querydlg.cxx
@@ -55,6 +55,11 @@ DlgQryJoin::DlgQryJoin( OQueryTableView * pParent,
, m_xConnection(_xConnection)
{
get(m_pML_HelpText, "helptext");
+ Size aSize(LogicToPixel(Size(179, 49), MAP_APPFONT));
+ //alternatively loop through the STR_QUERY_* strings with their STR_JOIN_TYPE_HINT
+ //suffix to find the longest entry at runtime
+ m_pML_HelpText->set_height_request(aSize.Height());
+ m_pML_HelpText->set_width_request(aSize.Width());
get(m_pLB_JoinType, "type");
get(m_pCBNatural, "natural");
get(m_pPB_OK, "ok");
diff --git a/dbaccess/uiconfig/ui/joindialog.ui b/dbaccess/uiconfig/ui/joindialog.ui
index 0c4add3ccf95..a7375e4355a5 100644
--- a/dbaccess/uiconfig/ui/joindialog.ui
+++ b/dbaccess/uiconfig/ui/joindialog.ui
@@ -3,6 +3,36 @@
<interface>
<requires lib="gtk+" version="3.0"/>
<!-- interface-requires LibreOffice 1.0 -->
+ <object class="GtkListStore" id="liststore1">
+ <columns>
+ <!-- column-name gchararray1 -->
+ <column type="gchararray"/>
+ <!-- column-name gint1 -->
+ <column type="gint"/>
+ </columns>
+ <data>
+ <row>
+ <col id="0" translatable="yes">Inner join</col>
+ <col id="1">1</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Left join</col>
+ <col id="1">2</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Right join</col>
+ <col id="1">3</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Full (outer) join</col>
+ <col id="1">4</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Cross join</col>
+ <col id="1">5</col>
+ </row>
+ </data>
+ </object>
<object class="GtkDialog" id="JoinDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
@@ -167,6 +197,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
+ <property name="yalign">0</property>
<property name="wrap">True</property>
<property name="max_width_chars">48</property>
</object>
@@ -333,34 +364,4 @@
<widget name="type"/>
</widgets>
</object>
- <object class="GtkListStore" id="liststore1">
- <columns>
- <!-- column-name gchararray1 -->
- <column type="gchararray"/>
- <!-- column-name gint1 -->
- <column type="gint"/>
- </columns>
- <data>
- <row>
- <col id="0" translatable="yes">Inner join</col>
- <col id="1">1</col>
- </row>
- <row>
- <col id="0" translatable="yes">Left join</col>
- <col id="1">2</col>
- </row>
- <row>
- <col id="0" translatable="yes">Right join</col>
- <col id="1">3</col>
- </row>
- <row>
- <col id="0" translatable="yes">Full (outer) join</col>
- <col id="1">4</col>
- </row>
- <row>
- <col id="0" translatable="yes">Cross join</col>
- <col id="1">5</col>
- </row>
- </data>
- </object>
</interface>