1#line 2 "src/Gui/BillPay/ToolBar.cpp"
3#include <Wt/WHBoxLayout.h>
5#include <Wt/WContainerWidget.h>
6#include <Wt/WPushButton.h>
7#include <Wt/WComboBox.h>
9#include "../../Glb/Core.h"
21 auto lw =
setLayout( std::make_unique< Wt::WHBoxLayout >() );
22 auto table =
lw->
addWidget( std::make_unique< Wt::WTable >() );
23 table->
setAttributeValue(
"style",
"border-spacing:10px;border-collapse:separate;" );
24 lw->
addWidget( std::make_unique< Wt::WContainerWidget >(), 1 );
30 m_year = table-> elementAt( 0,
col++ )->
addWidget( std::make_unique< YearSelector >() );
35 auto pbAdd = table-> elementAt( 0,
col++ )->
addWidget( std::make_unique< Wt::WPushButton >(
TR(
"gcw.billPay.lbl.add") ) );
42 auto pbEdit = table-> elementAt( 0,
col++ )->
addWidget( std::make_unique< Wt::WPushButton >(
TR(
"gcw.billPay.lbl.edit") ) );
49 m_inactive = table-> elementAt( 0,
col++ )->
addWidget( std::make_unique< Wt::WCheckBox >(
TR(
"gcw.billPay.lbl.inactive") ) );
56 item.modify()-> setVar(
"showInactive",
m_inactive-> valueText() );
64 m_summary = table-> elementAt( 0,
col++ )->
addWidget( std::make_unique< Wt::WCheckBox >(
TR(
"gcw.billPay.lbl.summary") ) );
71 item.modify()-> setVar(
"showSummary",
m_summary-> valueText() );
81 auto pbImport = table-> elementAt( 0,
col++ )->
addWidget( std::make_unique< Wt::WPushButton >(
"import" ) );
82 auto pbExport = table-> elementAt( 0,
col++ )->
addWidget( std::make_unique< Wt::WPushButton >(
"export" ) );
99 return inactiveButton()-> checkState() == Wt::CheckState::Checked?
true:
false;
106 return summaryButton()-> checkState() == Wt::CheckState::Checked?
true:
false;
void emit(A... args) const
int stoi(const std::string &value)
Convert a String to an Integer.
auto configItem() -> GCW::Dbo::Vars::Item::Ptr
Config Item.