GnuCashew ~ GnuCash Enabled Web
GCW
|
Main GnuCashew Central Widget. More...
#include <CentralWidget.h>
Inherits Wt::WContainerWidget.
Public Member Functions | |
CentralWidget () | |
Central Widget. More... | |
auto | tabWidget () -> Wt::WTabWidget * |
auto | accountsTreeView () -> GCW::Gui::AccountsTreeView * |
auto | customersWidget () -> GCW::Gui::Customer::MainWidget * |
auto | open_AccountRegister (const std::string &_accountGuid) -> void |
auto | open_CustomersWidget () -> void |
auto | open_EmployeesWidget () -> void |
auto | open_CustomerReportWidget (const std::string &_customerGuid) -> void |
auto | open_BillPayWidget () -> void |
auto | open_TablesWidget () -> void |
auto | tabIndex (const std::string &_text) -> int |
Index of Tab matching 'text'. More... | |
auto | test () -> void |
Private Attributes | |
Wt::WGridLayout * | m_gridLayout = nullptr |
Wt::WTabWidget * | m_tabWidget = nullptr |
GCW::Gui::AccountsTreeView * | m_accountsTreeView = nullptr |
GCW::Gui::Customer::MainWidget * | m_customersWidget = nullptr |
Main GnuCashew Central Widget.
This widget acts as a 'tab widget manager' for controlling what views (widgets) are presented to the user in the main central display widget. The central widget fills up the lion's share of the MainWidget area.
see also; MainWidget
Definition at line 29 of file CentralWidget.h.
GCW::Gui::CentralWidget::CentralWidget | ( | ) |
Central Widget.
The CentralWidget is the component on the main user interface that acts as a tab widget for being able to select from one tab to another.
The first tab is usually the 'accounts' tab. This tab normally cannot be closed. The other tabs open and close on reports or other views as they are requested.
Definition at line 39 of file CentralWidget.cpp.
References accountsTreeView(), m_accountsTreeView, m_gridLayout, m_tabWidget, open_AccountRegister(), tabIndex(), tabWidget(), and TR.
|
inline |
Definition at line 37 of file CentralWidget.h.
References m_accountsTreeView.
Referenced by CentralWidget().
|
inline |
Definition at line 38 of file CentralWidget.h.
References m_customersWidget.
auto GCW::Gui::CentralWidget::open_AccountRegister | ( | const std::string & | _accountGuid | ) | -> void |
Definition at line 98 of file CentralWidget.cpp.
References GCW::app(), GCW::Dbo::Accounts::byGuid(), GCW::Dbo::Accounts::fullName(), and GCW::Dbo::Accounts::Field::name.
Referenced by CentralWidget().
auto GCW::Gui::CentralWidget::open_BillPayWidget | ( | ) | -> void |
Definition at line 316 of file CentralWidget.cpp.
References TR8.
Referenced by GCW::Gui::MainMenu::MainMenu().
auto GCW::Gui::CentralWidget::open_CustomerReportWidget | ( | const std::string & | _customerGuid | ) | -> void |
Definition at line 157 of file CentralWidget.cpp.
References GCW::Dbo::Customers::byGuid(), GCW::Dbo::Accounts::Field::name, and TR8.
auto GCW::Gui::CentralWidget::open_CustomersWidget | ( | ) | -> void |
Definition at line 216 of file CentralWidget.cpp.
References TR8.
Referenced by GCW::Gui::MainMenu::MainMenu().
auto GCW::Gui::CentralWidget::open_EmployeesWidget | ( | ) | -> void |
Definition at line 266 of file CentralWidget.cpp.
References TR8.
Referenced by GCW::Gui::MainMenu::MainMenu().
auto GCW::Gui::CentralWidget::open_TablesWidget | ( | ) | -> void |
Definition at line 355 of file CentralWidget.cpp.
Referenced by GCW::Gui::MainMenu::MainMenu().
auto GCW::Gui::CentralWidget::tabIndex | ( | const std::string & | _text | ) | -> int |
Index of Tab matching 'text'.
Return the index of the tab with the matching text.
This is used when opening new windows. When opening a new window, the system will first check if the window is already open. For instance, if the "Customers Widget" is requested, the system will first check, by way of "tab-name" if there is a tab that is already open. If so, the user is switched to the open tab, rather than creating a new tab.
Definition at line 86 of file CentralWidget.cpp.
Referenced by CentralWidget().
|
inline |
Definition at line 36 of file CentralWidget.h.
References m_tabWidget.
Referenced by CentralWidget().
auto GCW::Gui::CentralWidget::test | ( | ) | -> void |
Definition at line 405 of file CentralWidget.cpp.
|
private |
Definition at line 68 of file CentralWidget.h.
Referenced by accountsTreeView(), and CentralWidget().
|
private |
Definition at line 69 of file CentralWidget.h.
Referenced by customersWidget().
|
private |
Definition at line 66 of file CentralWidget.h.
Referenced by CentralWidget().
|
private |
Definition at line 67 of file CentralWidget.h.
Referenced by CentralWidget(), and tabWidget().