Skip to content

Commit

Permalink
Convert a ComboBox to ComboBoxText
Browse files Browse the repository at this point in the history
Very much incomplete

Updates #770
  • Loading branch information
shawnlaffan committed Jul 2, 2020
1 parent ff7b275 commit d0876a0
Showing 1 changed file with 50 additions and 49 deletions.
99 changes: 50 additions & 49 deletions bin/ui/dlgImport1.ui
Original file line number Diff line number Diff line change
@@ -1,34 +1,6 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkListStore" id="model1">
<columns>
<column type="gchararray"/>
</columns>
<data>
<row>
<col id="0" translatable="yes">DEFAULT</col>
</row>
</data>
</object>
<object class="GtkListStore" id="model2">
<columns>
<column type="gchararray"/>
</columns>
<data>
<row>
<col id="0" translatable="yes">Text</col>
</row>
<row>
<col id="0" translatable="yes">Raster</col>
</row>
<row>
<col id="0" translatable="yes">Shapefile</col>
</row>
<row>
<col id="0" translatable="yes">Spreadsheet</col>
</row>
</data>
</object>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkDialog" id="dlgImport1">
<property name="visible">True</property>
<property name="can_focus">False</property>
Expand All @@ -39,7 +11,7 @@
<property name="icon_name">gtk-add</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox1">
<object class="GtkBox" id="dialog-vbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">5</property>
Expand Down Expand Up @@ -139,8 +111,9 @@
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="has_tooltip">True</property>
<property name="tooltip-text" translatable="yes">Check to off to import new data to an existing Basedata set</property>
<property name="tooltip_text" translatable="yes">Check to off to import new data to an existing Basedata set</property>
<property name="use_underline">True</property>
<property name="xalign">0.5</property>
<property name="draw_indicator">True</property>
</object>
</child>
Expand All @@ -157,13 +130,11 @@
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="has_tooltip">True</property>
<property name="tooltip-text" translatable="yes">Name for a new data set</property>
<property name="invisible_char">&#x25CF;</property>
<property name="tooltip_text" translatable="yes">Name for a new data set</property>
<property name="invisible_char"></property>
<property name="width_chars">20</property>
<property name="primary_icon_activatable">False</property>
<property name="secondary_icon_activatable">False</property>
<property name="primary_icon_sensitive">True</property>
<property name="secondary_icon_sensitive">True</property>
</object>
<packing>
<property name="expand">True</property>
Expand Down Expand Up @@ -207,7 +178,8 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="tooltip-text" translatable="yes">If checked then each imported file is assigned to a separate basedata. These will be created if they do not exist, and will use the file names as the basedata names (excluding the directory components). Turn off the New checkbox above if you want to import into existing basedatas (they will be created if they do not exist).</property>
<property name="tooltip_text" translatable="yes">If checked then each imported file is assigned to a separate basedata. These will be created if they do not exist, and will use the file names as the basedata names (excluding the directory components). Turn off the New checkbox above if you want to import into existing basedatas (they will be created if they do not exist).</property>
<property name="xalign">0.5</property>
<property name="draw_indicator">True</property>
</object>
<packing>
Expand Down Expand Up @@ -254,23 +226,21 @@
</packing>
</child>
<child>
<object class="GtkComboBox" id="format_box">
<object class="GtkComboBoxText" id="format_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip-text" translatable="yes">Select the type of input data you wish to use. </property>
<property name="active">0</property>
<property name="model">model2</property>
<child>
<object class="GtkCellRendererText" id="renderer2"/>
<attributes>
<attribute name="text">0</attribute>
</attributes>
</child>
<property name="entry_text_column">0</property>
<property name="id_column">1</property>
<items>
<item translatable="yes">Text</item>
<item translatable="yes">Raster</item>
<item translatable="yes">Shapefile</item>
<item translatable="yes">Spreadsheet</item>
</items>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="padding">54</property>
<property name="position">1</property>
</packing>
</child>
Expand Down Expand Up @@ -317,7 +287,7 @@
</packing>
</child>
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area1">
<object class="GtkButtonBox" id="dialog-action_area1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="layout_style">end</property>
Expand Down Expand Up @@ -405,4 +375,35 @@
<action-widget response="-5">btnNext</action-widget>
</action-widgets>
</object>
<object class="GtkListStore" id="model1">
<columns>
<!-- column-name gchararray -->
<column type="gchararray"/>
</columns>
<data>
<row>
<col id="0" translatable="yes">DEFAULT</col>
</row>
</data>
</object>
<object class="GtkListStore" id="model2">
<columns>
<!-- column-name gchararray -->
<column type="gchararray"/>
</columns>
<data>
<row>
<col id="0" translatable="yes">Text</col>
</row>
<row>
<col id="0" translatable="yes">Raster</col>
</row>
<row>
<col id="0" translatable="yes">Shapefile</col>
</row>
<row>
<col id="0" translatable="yes">Spreadsheet</col>
</row>
</data>
</object>
</interface>

0 comments on commit d0876a0

Please sign in to comment.