Kaydet (Commit) 3fc1e691 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#83501 STR_QUERY_* populate the join dialog

Change-Id: Id4cff969297009c9f9cd3323ac01c743b29ca6c4
üst 1f7e6bdd
...@@ -55,6 +55,11 @@ DlgQryJoin::DlgQryJoin( OQueryTableView * pParent, ...@@ -55,6 +55,11 @@ DlgQryJoin::DlgQryJoin( OQueryTableView * pParent,
, m_xConnection(_xConnection) , m_xConnection(_xConnection)
{ {
get(m_pML_HelpText, "helptext"); 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_pLB_JoinType, "type");
get(m_pCBNatural, "natural"); get(m_pCBNatural, "natural");
get(m_pPB_OK, "ok"); get(m_pPB_OK, "ok");
......
...@@ -3,6 +3,36 @@ ...@@ -3,6 +3,36 @@
<interface> <interface>
<requires lib="gtk+" version="3.0"/> <requires lib="gtk+" version="3.0"/>
<!-- interface-requires LibreOffice 1.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"> <object class="GtkDialog" id="JoinDialog">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="border_width">6</property> <property name="border_width">6</property>
...@@ -167,6 +197,7 @@ ...@@ -167,6 +197,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="yalign">0</property>
<property name="wrap">True</property> <property name="wrap">True</property>
<property name="max_width_chars">48</property> <property name="max_width_chars">48</property>
</object> </object>
...@@ -333,34 +364,4 @@ ...@@ -333,34 +364,4 @@
<widget name="type"/> <widget name="type"/>
</widgets> </widgets>
</object> </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> </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