Add algorithm combo box
Currently a no-op.
This commit is contained in:
parent
6c728324fd
commit
d5b8eeeb49
7
Gtk.hs
7
Gtk.hs
@ -25,7 +25,8 @@ data MyGUI = MkMyGUI {
|
|||||||
xu :: Entry,
|
xu :: Entry,
|
||||||
yl :: Entry,
|
yl :: Entry,
|
||||||
yu :: Entry,
|
yu :: Entry,
|
||||||
aD :: AboutDialog
|
aD :: AboutDialog,
|
||||||
|
cB :: ComboBox
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -51,8 +52,9 @@ makeMyGladeGUI = do
|
|||||||
yl' <- xmlGetWidget xml castToEntry "ylD"
|
yl' <- xmlGetWidget xml castToEntry "ylD"
|
||||||
yu' <- xmlGetWidget xml castToEntry "yuD"
|
yu' <- xmlGetWidget xml castToEntry "yuD"
|
||||||
aD' <- xmlGetWidget xml castToAboutDialog "aboutdialog"
|
aD' <- xmlGetWidget xml castToAboutDialog "aboutdialog"
|
||||||
|
cB' <- xmlGetWidget xml castToComboBox "comboalgo"
|
||||||
|
|
||||||
return $ MkMyGUI win' dB' sB' qB' fB' da' hs' xl' xu' yl' yu' aD'
|
return $ MkMyGUI win' dB' sB' qB' fB' da' hs' xl' xu' yl' yu' aD' cB'
|
||||||
|
|
||||||
|
|
||||||
-- |Handle the whole GTK gui.
|
-- |Handle the whole GTK gui.
|
||||||
@ -74,6 +76,7 @@ makeGUI startFile = do
|
|||||||
else do
|
else do
|
||||||
_ <- fileChooserSetFilename (fB mygui) startFile
|
_ <- fileChooserSetFilename (fB mygui) startFile
|
||||||
return ()
|
return ()
|
||||||
|
comboBoxSetActive (cB mygui) 0
|
||||||
|
|
||||||
-- callbacks
|
-- callbacks
|
||||||
_ <- onDestroy (win mygui) mainQuit
|
_ <- onDestroy (win mygui) mainQuit
|
||||||
|
14
gtk2.glade
14
gtk2.glade
@ -378,7 +378,7 @@ Malte Flender <malte.flender@fh-bielefeld.de></property>
|
|||||||
</widget>
|
</widget>
|
||||||
<widget class="GtkWindow" id="window1">
|
<widget class="GtkWindow" id="window1">
|
||||||
<property name="width_request">600</property>
|
<property name="width_request">600</property>
|
||||||
<property name="height_request">700</property>
|
<property name="height_request">750</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="type_hint">dialog</property>
|
<property name="type_hint">dialog</property>
|
||||||
<child>
|
<child>
|
||||||
@ -698,6 +698,18 @@ Malte Flender <malte.flender@fh-bielefeld.de></property>
|
|||||||
<property name="position">3</property>
|
<property name="position">3</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkComboBox" id="comboalgo">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="items" translatable="yes">Show points</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">False</property>
|
||||||
|
<property name="position">4</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
Reference in New Issue
Block a user