GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
CentralWidget.h
Go to the documentation of this file.
1#line 2 "src/Gui/CentralWidget.h"
2
3#ifndef __GUI_CENTRALWIDGET_H___
4#define __GUI_CENTRALWIDGET_H___
5
6#include <Wt/WContainerWidget.h>
7#include <Wt/WGridLayout.h>
8#include <Wt/WTabWidget.h>
9
10#include "AccountsTreeView.h"
12#include "Customer/MainWidget.h"
13
14namespace GCW {
15 namespace Gui {
16 class AccountsTreeView;
17
18/*!
19** \brief Main GnuCashew Central Widget
20**
21** This widget acts as a 'tab widget manager' for controlling
22** what views (widgets) are presented to the user in the main
23** central display widget. The central widget fills up the
24** lion's share of the MainWidget area.
25**
26** \ref see also; MainWidget
27**
28*/
31{
32 public:
33
35
36 auto tabWidget() -> Wt::WTabWidget * { return m_tabWidget; }
40
41 auto open_AccountRegister ( const std::string & _accountGuid )-> void;
42 auto open_CustomersWidget ( )-> void;
43 auto open_EmployeesWidget ( )-> void;
44 auto open_CustomerReportWidget ( const std::string & _customerGuid )-> void;
45 auto open_GeneralJournal ( )-> void;
46 auto open_TablesWidget ( )-> void;
47
48#ifdef ENABLE_BILLPAY
49 auto open_BillPayWidget ( )-> void;
50#endif
51
52 /*!
53 ** \brief Index of Tab matching 'text'
54 **
55 ** Return the index of the tab with the
56 ** matching text.
57 **
58 ** This is used when opening new windows. When opening a new window, the
59 ** system will first check if the window is already open. For instance,
60 ** if the "Customers Widget" is requested, the system will first check, by
61 ** way of "tab-name" if there is a tab that is already open. If so, the
62 ** user is switched to the open tab, rather than creating a new tab.
63 **
64 */
65 auto tabIndex( const std::string & _text )-> int ;
66
68
69 auto test()-> void ;
70
71 private:
72
77
78}; // endclass CentralWidget
79
80 } // endnamespace Gui {
81} // endnamespace GCW {
82
83#endif // end#ifndef __CENTRALWIDGET_H___
84
85
Main GnuCashew Central Widget.
auto tabWidget() -> Wt::WTabWidget *
auto customersWidget() -> GCW::Gui::Customer::MainWidget *
auto open_AccountRegister(const std::string &_accountGuid) -> void
auto open_EmployeesWidget() -> void
auto open_GeneralJournal() -> void
auto activateAccountsTreeView() -> void
GCW::Gui::AccountsTreeView * m_accountsTreeView
auto accountsTreeView() -> GCW::Gui::AccountsTreeView *
Wt::WGridLayout * m_gridLayout
CentralWidget()
Central Widget.
auto open_CustomerReportWidget(const std::string &_customerGuid) -> void
auto open_TablesWidget() -> void
auto open_CustomersWidget() -> void
auto currentAccountRegister() -> Gui::AccountRegister::Widget *
Wt::WTabWidget * m_tabWidget
GCW::Gui::Customer::MainWidget * m_customersWidget
Widget * addNew(Args &&...args)
virtual int tabIndex() const override
Definition App.h:18