diff options
author | Raúl Benencia <rul@kalgan.cc> | 2013-09-03 00:00:50 -0300 |
---|---|---|
committer | Raúl Benencia <rul@kalgan.cc> | 2013-09-03 00:00:50 -0300 |
commit | e41dd5091f597e2252deb9ecbde900eda7c15614 (patch) | |
tree | b60a532b67aa9932dd0af9a00daf5735e496812b /State.hs | |
parent | 56b4aef769386e9fbe3b074698451e8b74489d61 (diff) |
Sorted index mode
Diffstat (limited to 'State.hs')
-rw-r--r-- | State.hs | 53 |
1 files changed, 1 insertions, 52 deletions
@@ -14,58 +14,7 @@ import UI.NCurses(ColorID(..), defaultColorID) import Network.Email.Mailbox(Flag(..), Flags) import System.FilePath -data Mode = MaildirMode | IndexMode | EmailMode | ComposeMode - -data LazymailState = LazymailState { - mode :: Mode - , basePath :: FilePath - , screenRows :: Int - , screenColumns :: Int - , currentRow :: Int - , columnPadding :: Int - , exitRequested :: Bool - , statusBar :: Bool - , maildirState :: MaildirState - , indexState :: IndexState - , emailState :: EmailState - , composeState :: ComposeState - , colorStyle :: ColorStyle -} - -data MaildirState = MaildirState { - selectedRowMD :: Int - , selectedMD :: String - , detectedMDs :: [(FilePath, String)] - , scrollRowMD :: Int - , scrollBufferMD :: [(FilePath, String)] -} - -data IndexState = IndexState { - selectedRowIn :: Int - , selectedEmailPath :: FilePath - , selectedEmails :: [(FilePath, String)] - , scrollRowIn :: Int - , currentInLen :: Int - , scrollBufferIn :: [(FilePath, String)] -} - -data ComposeState = ComposeState { - composition :: Maybe String -} - -data EmailState = EmailState { - scrollRowEm :: Int - , bodyStartRow :: Int - , emailLines :: [String] - , currentEmail :: MIMEValue -} - -data ColorStyle = ColorStyle { - baseColorID :: ColorID - , selectionColorID :: ColorID - , statusBarColorID :: ColorID - , headerColorID :: ColorID -} +import Types initialState = LazymailState { mode = MaildirMode |