GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Gui
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
"
11
#include "
AccountRegister/Widget.h
"
12
#include "
Customer/MainWidget.h
"
13
14
namespace
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
*/
29
class
CentralWidget
30
:
public
Wt::WContainerWidget
31
{
32
public
:
33
34
CentralWidget
();
35
36
auto
tabWidget
() ->
Wt::WTabWidget
* {
return
m_tabWidget
; }
37
auto
accountsTreeView
() ->
GCW::Gui::AccountsTreeView
* {
return
m_accountsTreeView
; }
38
auto
customersWidget
() ->
GCW::Gui::Customer::MainWidget
* {
return
m_customersWidget
; }
39
auto
activateAccountsTreeView
()->
void
;
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
67
auto
currentAccountRegister
()->
Gui::AccountRegister::Widget
* ;
68
69
auto
test
()->
void
;
70
71
private
:
72
73
Wt::WGridLayout
*
m_gridLayout
=
nullptr
;
74
Wt::WTabWidget
*
m_tabWidget
=
nullptr
;
75
GCW::Gui::AccountsTreeView
*
m_accountsTreeView
=
nullptr
;
76
GCW::Gui::Customer::MainWidget
*
m_customersWidget
=
nullptr
;
77
78
};
// endclass CentralWidget
79
80
}
// endnamespace Gui {
81
}
// endnamespace GCW {
82
83
#endif
// end#ifndef __CENTRALWIDGET_H___
84
85
AccountsTreeView.h
MainWidget.h
Widget.h
GCW::Gui::AccountRegister::Widget
AccountRegister.
Definition
Widget.h:48
GCW::Gui::AccountsTreeView
AccountsTreeView.
Definition
AccountsTreeView.h:37
GCW::Gui::CentralWidget
Main GnuCashew Central Widget.
Definition
CentralWidget.h:31
GCW::Gui::CentralWidget::tabWidget
auto tabWidget() -> Wt::WTabWidget *
Definition
CentralWidget.h:36
GCW::Gui::CentralWidget::customersWidget
auto customersWidget() -> GCW::Gui::Customer::MainWidget *
Definition
CentralWidget.h:38
GCW::Gui::CentralWidget::open_AccountRegister
auto open_AccountRegister(const std::string &_accountGuid) -> void
Definition
CentralWidget.cpp:105
GCW::Gui::CentralWidget::open_EmployeesWidget
auto open_EmployeesWidget() -> void
Definition
CentralWidget.cpp:283
GCW::Gui::CentralWidget::open_GeneralJournal
auto open_GeneralJournal() -> void
Definition
CentralWidget.cpp:367
GCW::Gui::CentralWidget::activateAccountsTreeView
auto activateAccountsTreeView() -> void
Definition
CentralWidget.cpp:80
GCW::Gui::CentralWidget::m_accountsTreeView
GCW::Gui::AccountsTreeView * m_accountsTreeView
Definition
CentralWidget.h:75
GCW::Gui::CentralWidget::test
auto test() -> void
Definition
CentralWidget.cpp:470
GCW::Gui::CentralWidget::accountsTreeView
auto accountsTreeView() -> GCW::Gui::AccountsTreeView *
Definition
CentralWidget.h:37
GCW::Gui::CentralWidget::m_gridLayout
Wt::WGridLayout * m_gridLayout
Definition
CentralWidget.h:73
GCW::Gui::CentralWidget::CentralWidget
CentralWidget()
Central Widget.
Definition
CentralWidget.cpp:33
GCW::Gui::CentralWidget::open_CustomerReportWidget
auto open_CustomerReportWidget(const std::string &_customerGuid) -> void
Definition
CentralWidget.cpp:183
GCW::Gui::CentralWidget::open_TablesWidget
auto open_TablesWidget() -> void
Definition
CentralWidget.cpp:400
GCW::Gui::CentralWidget::open_CustomersWidget
auto open_CustomersWidget() -> void
Definition
CentralWidget.cpp:237
GCW::Gui::CentralWidget::currentAccountRegister
auto currentAccountRegister() -> Gui::AccountRegister::Widget *
Definition
CentralWidget.cpp:173
GCW::Gui::CentralWidget::m_tabWidget
Wt::WTabWidget * m_tabWidget
Definition
CentralWidget.h:74
GCW::Gui::CentralWidget::m_customersWidget
GCW::Gui::Customer::MainWidget * m_customersWidget
Definition
CentralWidget.h:76
GCW::Gui::Customer::MainWidget
Customer Overview.
Definition
Customer/MainWidget.h:23
Wt::WContainerWidget
Wt::WContainerWidget::addNew
Widget * addNew(Args &&...args)
Wt::WGridLayout
Wt::WTabWidget
Wt::WWebWidget::tabIndex
virtual int tabIndex() const override
GCW
Definition
App.h:18
Generated on Sat Sep 13 2025 08:48:27 for GnuCashew ~ Web Application compatible with GnuCash sql data files. by
1.9.8