GTK: implement fileinfo dialog wrt #32

This commit is contained in:
2016-04-19 21:05:29 +02:00
parent a7ba20ae00
commit a61b409486
6 changed files with 298 additions and 38 deletions

View File

@@ -30,6 +30,7 @@ import Control.Concurrent.STM
TVar
)
import Graphics.UI.Gtk
import Graphics.UI.Gtk hiding (MenuBar)
import HSFM.FileSystem.FileOperations
import HSFM.FileSystem.FileType
import System.INotify.ByteString
@@ -50,8 +51,27 @@ import System.INotify.ByteString
-- runtime.
data MyGUI = MkMyGUI {
-- |main Window
rootWin :: Window
, menubarFileQuit :: ImageMenuItem
rootWin :: Window
-- widgets on the main window
, upViewB :: Button
, homeViewB :: Button
, refreshViewB :: Button
, urlBar :: Entry
, statusBar :: Statusbar
, clearStatusBar :: Button
, settings :: TVar FMSettings
, scroll :: ScrolledWindow
, fprop :: FilePropertyGrid
-- sub-widgets
, menubar :: MenuBar
, rcmenu :: RightClickMenu
}
data MenuBar = MkMenuBar {
menubarFileQuit :: ImageMenuItem
, menubarFileOpen :: ImageMenuItem
, menubarFileExecute :: ImageMenuItem
, menubarFileNew :: ImageMenuItem
@@ -63,7 +83,10 @@ data MyGUI = MkMyGUI {
, menubarViewTree :: ImageMenuItem
, menubarViewIcon :: ImageMenuItem
, menubarHelpAbout :: ImageMenuItem
, rcMenu :: Menu
}
data RightClickMenu = MkRightClickMenu {
rcMenu :: Menu
, rcFileOpen :: ImageMenuItem
, rcFileExecute :: ImageMenuItem
, rcFileNewRegFile :: ImageMenuItem
@@ -73,14 +96,16 @@ data MyGUI = MkMyGUI {
, rcFileRename :: ImageMenuItem
, rcFilePaste :: ImageMenuItem
, rcFileDelete :: ImageMenuItem
, upViewB :: Button
, homeViewB :: Button
, refreshViewB :: Button
, urlBar :: Entry
, statusBar :: Statusbar
, clearStatusBar :: Button
, settings :: TVar FMSettings
, scroll :: ScrolledWindow
, rcFileProperty :: ImageMenuItem
}
data FilePropertyGrid = MkFilePropertyGrid {
fpropGrid :: Grid
, fpropFnEntry :: Entry
, fpropLocEntry :: Entry
, fpropTsEntry :: Entry
, fpropModEntry :: Entry
, fpropAcEntry :: Entry
}