GnuCashew ~ GnuCash Enabled Web
GCW
Public Member Functions | Private Attributes | List of all members
GCW::Gui::CentralWidget Class Reference

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::AccountsTreeViewm_accountsTreeView = nullptr
 
GCW::Gui::Customer::MainWidgetm_customersWidget = nullptr
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CentralWidget()

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.

Member Function Documentation

◆ accountsTreeView()

auto GCW::Gui::CentralWidget::accountsTreeView ( ) -> GCW::Gui::AccountsTreeView *
inline

Definition at line 37 of file CentralWidget.h.

References m_accountsTreeView.

Referenced by CentralWidget().

◆ customersWidget()

auto GCW::Gui::CentralWidget::customersWidget ( ) -> GCW::Gui::Customer::MainWidget *
inline

Definition at line 38 of file CentralWidget.h.

References m_customersWidget.

◆ open_AccountRegister()

auto GCW::Gui::CentralWidget::open_AccountRegister ( const std::string &  _accountGuid) -> void

◆ open_BillPayWidget()

auto GCW::Gui::CentralWidget::open_BillPayWidget ( ) -> void

Definition at line 316 of file CentralWidget.cpp.

References TR8.

Referenced by GCW::Gui::MainMenu::MainMenu().

◆ open_CustomerReportWidget()

auto GCW::Gui::CentralWidget::open_CustomerReportWidget ( const std::string &  _customerGuid) -> void

◆ open_CustomersWidget()

auto GCW::Gui::CentralWidget::open_CustomersWidget ( ) -> void

Definition at line 216 of file CentralWidget.cpp.

References TR8.

Referenced by GCW::Gui::MainMenu::MainMenu().

◆ open_EmployeesWidget()

auto GCW::Gui::CentralWidget::open_EmployeesWidget ( ) -> void

Definition at line 266 of file CentralWidget.cpp.

References TR8.

Referenced by GCW::Gui::MainMenu::MainMenu().

◆ open_TablesWidget()

auto GCW::Gui::CentralWidget::open_TablesWidget ( ) -> void

Definition at line 355 of file CentralWidget.cpp.

Referenced by GCW::Gui::MainMenu::MainMenu().

◆ tabIndex()

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().

◆ tabWidget()

auto GCW::Gui::CentralWidget::tabWidget ( ) -> Wt::WTabWidget *
inline

Definition at line 36 of file CentralWidget.h.

References m_tabWidget.

Referenced by CentralWidget().

◆ test()

auto GCW::Gui::CentralWidget::test ( ) -> void

Definition at line 405 of file CentralWidget.cpp.

Member Data Documentation

◆ m_accountsTreeView

GCW::Gui::AccountsTreeView* GCW::Gui::CentralWidget::m_accountsTreeView = nullptr
private

Definition at line 68 of file CentralWidget.h.

Referenced by accountsTreeView(), and CentralWidget().

◆ m_customersWidget

GCW::Gui::Customer::MainWidget* GCW::Gui::CentralWidget::m_customersWidget = nullptr
private

Definition at line 69 of file CentralWidget.h.

Referenced by customersWidget().

◆ m_gridLayout

Wt::WGridLayout* GCW::Gui::CentralWidget::m_gridLayout = nullptr
private

Definition at line 66 of file CentralWidget.h.

Referenced by CentralWidget().

◆ m_tabWidget

Wt::WTabWidget* GCW::Gui::CentralWidget::m_tabWidget = nullptr
private

Definition at line 67 of file CentralWidget.h.

Referenced by CentralWidget(), and tabWidget().


The documentation for this class was generated from the following files: