Improve haddock documentation
This commit is contained in:
parent
d5b8eeeb49
commit
0ee52c5bdd
20
Gtk.hs
20
Gtk.hs
@ -13,23 +13,41 @@ import Text.Read
|
|||||||
import Util
|
import Util
|
||||||
|
|
||||||
|
|
||||||
|
-- |Monolithic object passed to various GUI functions in order
|
||||||
|
-- to keep the API stable and not alter the parameters too much.
|
||||||
|
-- This only holds GUI widgets that are needed to be read during
|
||||||
|
-- runtime.
|
||||||
data MyGUI = MkMyGUI {
|
data MyGUI = MkMyGUI {
|
||||||
|
-- |main Window
|
||||||
win :: Window,
|
win :: Window,
|
||||||
|
-- |delete Button
|
||||||
dB :: Button,
|
dB :: Button,
|
||||||
|
-- |save Button
|
||||||
sB :: Button,
|
sB :: Button,
|
||||||
|
-- |quit Button
|
||||||
qB :: Button,
|
qB :: Button,
|
||||||
|
-- |file chooser button
|
||||||
fB :: FileChooserButton,
|
fB :: FileChooserButton,
|
||||||
|
-- |drawing area
|
||||||
da :: DrawingArea,
|
da :: DrawingArea,
|
||||||
|
-- |scaler for point thickness
|
||||||
hs :: HScale,
|
hs :: HScale,
|
||||||
|
-- |entry widget for lower x bound
|
||||||
xl :: Entry,
|
xl :: Entry,
|
||||||
|
-- |entry widget for upper x bound
|
||||||
xu :: Entry,
|
xu :: Entry,
|
||||||
|
-- |entry widget for lower y bound
|
||||||
yl :: Entry,
|
yl :: Entry,
|
||||||
|
-- |entry widget for upper y bound
|
||||||
yu :: Entry,
|
yu :: Entry,
|
||||||
|
-- |about dialog
|
||||||
aD :: AboutDialog,
|
aD :: AboutDialog,
|
||||||
|
-- |combo box for choosing the algorithm
|
||||||
cB :: ComboBox
|
cB :: ComboBox
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
-- |The glade file to load the UI from.
|
||||||
gladeFile :: FilePath
|
gladeFile :: FilePath
|
||||||
gladeFile = "gtk2.glade"
|
gladeFile = "gtk2.glade"
|
||||||
|
|
||||||
@ -57,7 +75,7 @@ makeMyGladeGUI = do
|
|||||||
return $ MkMyGUI win' dB' sB' qB' fB' da' hs' xl' xu' yl' yu' aD' cB'
|
return $ MkMyGUI win' dB' sB' qB' fB' da' hs' xl' xu' yl' yu' aD' cB'
|
||||||
|
|
||||||
|
|
||||||
-- |Handle the whole GTK gui.
|
-- |Main entry point for the GTK GUI routines.
|
||||||
makeGUI :: FilePath -> IO ()
|
makeGUI :: FilePath -> IO ()
|
||||||
makeGUI startFile = do
|
makeGUI startFile = do
|
||||||
homedir <- getHomeDirectory
|
homedir <- getHomeDirectory
|
||||||
|
Loading…
Reference in New Issue
Block a user