GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
MainWidget.h
Go to the documentation of this file.
1#line 2 "src/Gui/MainWidget.h"
2
3#ifndef __GUI_MAINWIDGET_H___
4#define __GUI_MAINWIDGET_H___
5
6/*
7** STATUS_BAR_CLOCK
8** I like the idea of a clock on the status bar,
9** it can be subtly handy if the PC you're on
10** doesn't have a clock immediately visible.
11** But, this WTimer based update machine is
12** taxing on the server as it continually stuffs
13** events to a browser that might not be responding.
14** It creates problems. So, for now, we'll not use it.
15*/
16//#define STATUS_BAR_CLOCK
17
18#include <Wt/WContainerWidget.h>
19#include <Wt/WNavigationBar.h>
20#include <Wt/WToolBar.h>
21
22#include "CentralWidget.h"
23#include "MainMenu.h"
24#include "ToolBar.h"
25
26namespace GCW {
27 namespace Gui {
28
29/*!
30** \brief Site Main Widget
31**
32** This is the GnuCashew main site container. It contains
33** a top-line menu navigation bar, a push-button tool bar,
34** bottom-line status bar, and the main central workspace
35** area for the account tree view and other panes.
36**
37** \image html MainWidget.png width=480
38**
39** \ref see also; CentralWidget
40**
41*/
44{
45 public:
46
47 MainWidget();
48
49 auto navBar ()-> Wt::WNavigationBar * { return m_navBar ; }
50 auto toolBar ()-> Wt::WToolBar * { return m_toolBar ; }
53
54 auto load() -> void ;
56 auto open_properties() -> void ;
57 auto open_aboutWidget() -> void ;
58 auto openSelectedAccount() -> void ;
59 auto test() -> void ;
60
61 auto setBasicLedger()-> void ;
62 auto setAutosplit()-> void ;
63 auto setTransaction()-> void ;
64 auto setDoubleLine()-> void ;
65
66 private:
67
68 auto do_statusBarUpdate()-> void ;
69
75
76#ifdef STATUS_BAR_CLOCK
78#endif
79
80}; // endclass MainWidget
81
82 } // endnamespace Gui {
83} // endnamespace GCW {
84
85#endif // #ifndef __MAINWIDGET_H___
86
87
Main GnuCashew Central Widget.
Site Main Menu.
Definition MainMenu.h:21
Site Main Widget.
Definition MainWidget.h:44
Wt::WToolBar * m_toolBar
Definition MainWidget.h:72
auto setTransaction() -> void
auto open_aboutWidget() -> void
auto test() -> void
GCW::Gui::MainMenu * m_mainMenu
Definition MainWidget.h:71
auto openSelectedAccount() -> void
auto open_properties() -> void
auto centralWidget() -> CentralWidget *
Definition MainWidget.h:52
auto setDoubleLine() -> void
auto toolBar() -> Wt::WToolBar *
Definition MainWidget.h:50
auto open_customersOverview() -> void
auto setBasicLedger() -> void
auto navBar() -> Wt::WNavigationBar *
Definition MainWidget.h:49
auto statusBar() -> Wt::WContainerWidget *
Definition MainWidget.h:51
auto do_statusBarUpdate() -> void
CentralWidget * m_centralWidget
Definition MainWidget.h:74
Wt::WContainerWidget * m_statusBar
Definition MainWidget.h:73
auto setAutosplit() -> void
Wt::WNavigationBar * m_navBar
Definition MainWidget.h:70
auto load() -> void
Widget * addNew(Args &&...args)
Definition App.h:18