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

Customer Overview. More...

#include <MainWidget.h>

Inherits Wt::WContainerWidget.

Public Types

using Model = GCW::Eng::CustomersModel
 

Public Member Functions

 MainWidget ()
 
std::shared_ptr< Modelmodel () const
 
Wt::WTableView * view () const
 
Wt::Signal< std::string > & doubleClicked ()
 
std::string selectedAccount () const
 
void editAccount (const std::string &_accountGuid)
 
void editSelectedAccount ()
 
Wt::Json::Object toJson () const
 
bool fromJson (const Wt::Json::Object &_jobj)
 

Private Member Functions

void setModel ()
 
void doubleClicked (const Wt::WModelIndex &index, const Wt::WMouseEvent &event)
 

Private Attributes

Wt::WTableView * m_view = nullptr
 
std::shared_ptr< Modelm_model
 
std::vector< std::string > m_columns
 
Wt::Signal< std::string > m_doubleClicked
 
GCW::Gui::Customer::Invoicesm_invoicesView = nullptr
 

Detailed Description

Customer Overview.

Definition at line 21 of file MainWidget.h.

Member Typedef Documentation

◆ Model

Definition at line 25 of file MainWidget.h.

Constructor & Destructor Documentation

◆ MainWidget()

GCW::Gui::Customer::MainWidget::MainWidget ( )

Member Function Documentation

◆ doubleClicked() [1/2]

Wt::Signal< std::string >& GCW::Gui::Customer::MainWidget::doubleClicked ( )
inline

Definition at line 32 of file MainWidget.h.

References m_doubleClicked.

Referenced by MainWidget().

◆ doubleClicked() [2/2]

void GCW::Gui::Customer::MainWidget::doubleClicked ( const Wt::WModelIndex &  index,
const Wt::WMouseEvent &  event 
)
private

Definition at line 93 of file MainWidget.cpp.

◆ editAccount()

void GCW::Gui::Customer::MainWidget::editAccount ( const std::string &  _accountGuid)

◆ editSelectedAccount()

void GCW::Gui::Customer::MainWidget::editSelectedAccount ( )

◆ fromJson()

bool GCW::Gui::Customer::MainWidget::fromJson ( const Wt::Json::Object &  _jobj)

◆ model()

std::shared_ptr< Model > GCW::Gui::Customer::MainWidget::model ( ) const
inline

Definition at line 29 of file MainWidget.h.

References m_model.

Referenced by MainWidget().

◆ selectedAccount()

std::string GCW::Gui::Customer::MainWidget::selectedAccount ( ) const

◆ setModel()

void GCW::Gui::Customer::MainWidget::setModel ( )
private

Referenced by MainWidget().

◆ toJson()

Wt::Json::Object GCW::Gui::Customer::MainWidget::toJson ( ) const

◆ view()

Wt::WTableView* GCW::Gui::Customer::MainWidget::view ( ) const
inline

Definition at line 30 of file MainWidget.h.

References m_view.

Referenced by MainWidget().

Member Data Documentation

◆ m_columns

std::vector< std::string > GCW::Gui::Customer::MainWidget::m_columns
private

Definition at line 50 of file MainWidget.h.

◆ m_doubleClicked

Wt::Signal< std::string > GCW::Gui::Customer::MainWidget::m_doubleClicked
private

Definition at line 51 of file MainWidget.h.

Referenced by doubleClicked().

◆ m_invoicesView

GCW::Gui::Customer::Invoices* GCW::Gui::Customer::MainWidget::m_invoicesView = nullptr
private

Definition at line 52 of file MainWidget.h.

Referenced by MainWidget().

◆ m_model

std::shared_ptr< Model > GCW::Gui::Customer::MainWidget::m_model
private

Definition at line 49 of file MainWidget.h.

Referenced by MainWidget(), and model().

◆ m_view

Wt::WTableView* GCW::Gui::Customer::MainWidget::m_view = nullptr
private

Definition at line 48 of file MainWidget.h.

Referenced by MainWidget(), and view().


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