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_AccountBySplit ( const std::string & _splitGuid )-> void;
43 auto open_CustomersWidget ( )-> void;
44 auto open_EmployeesWidget ( )-> void;
45 auto open_CustomerReportWidget ( const std::string & _customerGuid )-> void;
46 auto open_GeneralJournal ( )-> void;
47 auto open_TablesWidget ( )-> void;
48
49#ifdef ENABLE_BILLPAY
50 auto open_BillPayWidget ( )-> void;
51#endif
52
53 /*!
54 ** \brief Index of Tab matching 'text'
55 **
56 ** Return the index of the tab with the
57 ** matching text.
58 **
59 ** This is used when opening new windows. When opening a new window, the
60 ** system will first check if the window is already open. For instance,
61 ** if the "Customers Widget" is requested, the system will first check, by
62 ** way of "tab-name" if there is a tab that is already open. If so, the
63 ** user is switched to the open tab, rather than creating a new tab.
64 **
65 */
66 auto tabIndex( const std::string & _text )-> int ;
67
69
70 auto test()-> void ;
71
72 private:
73
78
79}; // endclass CentralWidget
80
81 } // endnamespace Gui {
82} // endnamespace GCW {
83
84#endif // end#ifndef __CENTRALWIDGET_H___
85
86
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
auto open_AccountBySplit(const std::string &_splitGuid) -> void
Widget * addNew(Args &&...args)
virtual int tabIndex() const override
Definition App.h:18