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

Bill Pay Widget. More...

#include <MainWidget.h>

Inherits Wt::WContainerWidget.

Public Member Functions

 MainWidget ()
 

Private Member Functions

auto buildContent () -> void
 
auto do_addClicked () -> void
 
auto do_editClicked () -> void
 
auto do_disabledClicked () -> void
 
auto do_summaryClicked () -> void
 
auto addClicked () -> void
 
auto editClicked (TableView *_table, Wt::WModelIndex _index) -> void
 
auto openEditor (const std::string &_bpGuid) -> void
 
auto buttonChanged (Wt::WRadioButton *_button) -> void
 
auto setMonth (int _month) -> void
 
auto refreshViews () -> void
 
auto importClicked () -> void
 
auto exportClicked () -> void
 
auto on_headerClicked (int _col, const Wt::WMouseEvent _me) -> void
 

Private Attributes

std::unique_ptr< EditWidgetDialogm_dialog
 
Wt::Core::observing_ptr< EditWidgetm_editWidget
 
ToolBarm_toolBar = nullptr
 
TableViewm_pendingView = nullptr
 
TableViewm_paidView = nullptr
 
TableViewm_unpaidView = nullptr
 
TableViewm_disabledView = nullptr
 
SummaryWidgetm_summaryView = nullptr
 
Wt::WModelIndex m_selectedIndex
 Selected Index. More...
 
int m_selectedMonth = -1
 
Wt::WHBoxLayout * m_hlw = nullptr
 

Detailed Description

Bill Pay Widget.

Definition at line 23 of file MainWidget.h.

Constructor & Destructor Documentation

◆ MainWidget()

GCW::Gui::BillPay::MainWidget::MainWidget ( )

Definition at line 10 of file MainWidget.cpp.

References buildContent().

Member Function Documentation

◆ addClicked()

auto GCW::Gui::BillPay::MainWidget::addClicked ( ) -> void
private

Definition at line 220 of file MainWidget.cpp.

References GCW::app().

◆ buildContent()

auto GCW::Gui::BillPay::MainWidget::buildContent ( ) -> void
private

◆ buttonChanged()

auto GCW::Gui::BillPay::MainWidget::buttonChanged ( Wt::WRadioButton *  _button) -> void
private

Definition at line 245 of file MainWidget.cpp.

◆ do_addClicked()

auto GCW::Gui::BillPay::MainWidget::do_addClicked ( ) -> void
private

Definition at line 202 of file MainWidget.cpp.

Referenced by buildContent().

◆ do_disabledClicked()

auto GCW::Gui::BillPay::MainWidget::do_disabledClicked ( ) -> void
private

Definition at line 269 of file MainWidget.cpp.

Referenced by buildContent().

◆ do_editClicked()

auto GCW::Gui::BillPay::MainWidget::do_editClicked ( ) -> void
private

Definition at line 210 of file MainWidget.cpp.

References GCW::Gui::BillPay::asString().

Referenced by buildContent().

◆ do_summaryClicked()

auto GCW::Gui::BillPay::MainWidget::do_summaryClicked ( ) -> void
private

Definition at line 277 of file MainWidget.cpp.

Referenced by buildContent().

◆ editClicked()

auto GCW::Gui::BillPay::MainWidget::editClicked ( TableView _table,
Wt::WModelIndex  _index 
) -> void
private

Definition at line 229 of file MainWidget.cpp.

References GCW::Gui::BillPay::asString().

◆ exportClicked()

auto GCW::Gui::BillPay::MainWidget::exportClicked ( ) -> void
private

Definition at line 323 of file MainWidget.cpp.

Referenced by buildContent().

◆ importClicked()

auto GCW::Gui::BillPay::MainWidget::importClicked ( ) -> void
private

Definition at line 315 of file MainWidget.cpp.

Referenced by buildContent().

◆ on_headerClicked()

auto GCW::Gui::BillPay::MainWidget::on_headerClicked ( int  _col,
const Wt::WMouseEvent  _me 
) -> void
private

Definition at line 331 of file MainWidget.cpp.

Referenced by buildContent().

◆ openEditor()

auto GCW::Gui::BillPay::MainWidget::openEditor ( const std::string &  _bpGuid) -> void
private

Definition at line 156 of file MainWidget.cpp.

References TR.

◆ refreshViews()

auto GCW::Gui::BillPay::MainWidget::refreshViews ( ) -> void
private

Definition at line 307 of file MainWidget.cpp.

◆ setMonth()

auto GCW::Gui::BillPay::MainWidget::setMonth ( int  _month) -> void
private

Definition at line 290 of file MainWidget.cpp.

References GCW::app(), and GCW::Gui::BillPay::configItem().

Member Data Documentation

◆ m_dialog

std::unique_ptr< EditWidgetDialog > GCW::Gui::BillPay::MainWidget::m_dialog
private

Definition at line 46 of file MainWidget.h.

◆ m_disabledView

TableView* GCW::Gui::BillPay::MainWidget::m_disabledView = nullptr
private

Definition at line 61 of file MainWidget.h.

◆ m_editWidget

Wt::Core::observing_ptr< EditWidget > GCW::Gui::BillPay::MainWidget::m_editWidget
private

Definition at line 55 of file MainWidget.h.

◆ m_hlw

Wt::WHBoxLayout* GCW::Gui::BillPay::MainWidget::m_hlw = nullptr
private

Definition at line 81 of file MainWidget.h.

◆ m_paidView

TableView* GCW::Gui::BillPay::MainWidget::m_paidView = nullptr
private

Definition at line 59 of file MainWidget.h.

◆ m_pendingView

TableView* GCW::Gui::BillPay::MainWidget::m_pendingView = nullptr
private

Definition at line 58 of file MainWidget.h.

◆ m_selectedIndex

Wt::WModelIndex GCW::Gui::BillPay::MainWidget::m_selectedIndex
private

Selected Index.

When single-clicking through the interface, the currently selected (clicked) item, so that if the 'edit' button is hit, we'll know which was the last item clicked. This is important because there are three possible table-views containing items, and we're never sure which was the last table clicked in. So, on-click, in any of the three tables, the clicked-item index will be stored here.

Definition at line 77 of file MainWidget.h.

◆ m_selectedMonth

int GCW::Gui::BillPay::MainWidget::m_selectedMonth = -1
private

Definition at line 78 of file MainWidget.h.

◆ m_summaryView

SummaryWidget* GCW::Gui::BillPay::MainWidget::m_summaryView = nullptr
private

Definition at line 62 of file MainWidget.h.

◆ m_toolBar

ToolBar* GCW::Gui::BillPay::MainWidget::m_toolBar = nullptr
private

Definition at line 57 of file MainWidget.h.

◆ m_unpaidView

TableView* GCW::Gui::BillPay::MainWidget::m_unpaidView = nullptr
private

Definition at line 60 of file MainWidget.h.


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