GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
|
#include <InvoicesModel.h>
Public Member Functions | |
InvoicesModel () | |
InvoicesModel (const std::vector< Wt::WFormModel::Field > &_fields) | |
auto | setCustomerGuid (const std::string &_guid) -> void |
auto | refreshFromDisk () -> void |
Refresh From Disk. | |
![]() | |
QueryModel () | |
void | setQuery (const Query< Result > &query, bool keepColumns=false) |
Query< Result > | query () const |
int | addColumn (const std::string &field, const WString &header, WFlags< ItemFlag > flags=ItemFlag::Selectable) |
int | addColumn (const std::string &field, WFlags< ItemFlag > flags=ItemFlag::Selectable) |
void | setColumnFlags (int column, WFlags< ItemFlag > flags) |
WFlags< ItemFlag > | columnFlags (int column) const |
void | addAllFieldsAsColumns () |
Result | stableResultRow (int row) const |
const Result & | resultRow (int row) const |
virtual Result & | resultRow (int row) |
int | indexOf (const Result &row) const |
void | reload () |
void | setBatchSize (int count) |
int | batchSize () const |
const std::vector< FieldInfo > & | fields () const |
const FieldInfo & | fieldInfo (int column) const |
const std::string & | fieldName (int column) const |
virtual int | columnCount (const WModelIndex &parent=WModelIndex()) const override |
virtual int | rowCount (const WModelIndex &parent=WModelIndex()) const override |
virtual WFlags< ItemFlag > | flags (const WModelIndex &index) const override |
virtual cpp17::any | data (const WModelIndex &index, ItemDataRole role=ItemDataRole::Display) const override |
virtual cpp17::any | data (const WModelIndex &index, ItemDataRole role=ItemDataRole::Display) const=0 |
cpp17::any | data (int row, int column, ItemDataRole role=ItemDataRole::Display, const WModelIndex &parent=WModelIndex()) const |
virtual bool | setData (const WModelIndex &index, const cpp17::any &value, ItemDataRole role=ItemDataRole::Edit) override |
virtual bool | setData (const WModelIndex &index, const cpp17::any &value, ItemDataRole role=ItemDataRole::Edit) |
bool | setData (int row, int column, const cpp17::any &value, ItemDataRole role=ItemDataRole::Edit, const WModelIndex &parent=WModelIndex()) |
virtual void | sort (int column, SortOrder order=SortOrder::Ascending) override |
virtual std::string | createOrderBy (int column, SortOrder order) |
virtual bool | insertRows (int row, int count, const WModelIndex &parent=WModelIndex()) override |
virtual bool | removeRows (int row, int count, const WModelIndex &parent=WModelIndex()) override |
virtual bool | setHeaderData (int column, Orientation orientation, const cpp17::any &value, ItemDataRole role=ItemDataRole::Edit) override |
virtual cpp17::any | headerData (int section, Orientation orientation=Orientation::Horizontal, ItemDataRole role=ItemDataRole::Display) const override |
virtual void * | toRawIndex (const WModelIndex &index) const override |
virtual WModelIndex | fromRawIndex (void *rawIndex) const override |
![]() | |
WAbstractTableModel () | |
~WAbstractTableModel () | |
virtual WModelIndex | parent (const WModelIndex &index) const override |
virtual WModelIndex | index (int row, int column, const WModelIndex &parent=WModelIndex()) const override |
![]() | |
WAbstractItemModel () | |
virtual WFlags< HeaderFlag > | headerFlags (int section, Orientation orientation=Orientation::Horizontal) const |
virtual bool | hasChildren (const WModelIndex &index) const |
virtual DataMap | itemData (const WModelIndex &index) const |
virtual WModelIndexList | match (const WModelIndex &start, ItemDataRole role, const cpp17::any &value, int hits=-1, WFlags< MatchFlag > flags=WFlags< MatchFlag >(MatchFlag::StartsWith|MatchFlag::Wrap)) const |
cpp17::any | data (int row, int column, ItemDataRole role=ItemDataRole::Display, const WModelIndex &parent=WModelIndex()) const |
virtual bool | hasIndex (int row, int column, const WModelIndex &parent=WModelIndex()) const |
virtual bool | insertColumns (int column, int count, const WModelIndex &parent=WModelIndex()) |
virtual bool | removeColumns (int column, int count, const WModelIndex &parent=WModelIndex()) |
virtual bool | setItemData (const WModelIndex &index, const DataMap &values) |
bool | setHeaderData (int section, const cpp17::any &value) |
virtual void | expandColumn (int column) |
virtual void | collapseColumn (int column) |
virtual std::string | mimeType () const |
virtual std::vector< std::string > | acceptDropMimeTypes () const |
virtual void | dropEvent (const WDropEvent &e, DropAction action, int row, int column, const WModelIndex &parent) |
virtual void | dropEvent (const WDropEvent &e, DropAction action, const WModelIndex &index, Wt::Side side) |
bool | insertColumn (int column, const WModelIndex &parent=WModelIndex()) |
bool | insertRow (int row, const WModelIndex &parent=WModelIndex()) |
bool | removeColumn (int column, const WModelIndex &parent=WModelIndex()) |
bool | removeRow (int row, const WModelIndex &parent=WModelIndex()) |
bool | setData (int row, int column, const cpp17::any &value, ItemDataRole role=ItemDataRole::Edit, const WModelIndex &parent=WModelIndex()) |
virtual Signal< WModelIndex, int, int > & | columnsAboutToBeInserted () |
virtual Signal< WModelIndex, int, int > & | columnsAboutToBeRemoved () |
virtual Signal< WModelIndex, int, int > & | columnsInserted () |
virtual Signal< WModelIndex, int, int > & | columnsRemoved () |
virtual Signal< WModelIndex, int, int > & | rowsAboutToBeInserted () |
virtual Signal< WModelIndex, int, int > & | rowsAboutToBeRemoved () |
virtual Signal< WModelIndex, int, int > & | rowsInserted () |
virtual Signal< WModelIndex, int, int > & | rowsRemoved () |
virtual Signal< WModelIndex, WModelIndex > & | dataChanged () |
virtual Signal< Orientation, int, int > & | headerDataChanged () |
virtual Signal & | layoutAboutToBeChanged () |
virtual Signal & | layoutChanged () |
virtual Signal & | modelReset () |
![]() | |
void | addChild (std::unique_ptr< WObject > child) |
Child * | addChild (std::unique_ptr< Child > child) |
std::unique_ptr< WObject > | removeChild (WObject *child) |
std::unique_ptr< Child > | removeChild (Child *child) |
virtual const std::string | id () const |
virtual void | setObjectName (const std::string &name) |
virtual std::string | objectName () const |
void | resetLearnedSlots () |
void | resetLearnedSlot (void(T::*method)()) |
WStatelessSlot * | implementStateless (void(T::*method)()) |
WStatelessSlot * | implementStateless (void(T::*method)(), void(T::*undoMethod)()) |
void | isNotStateless () |
WStatelessSlot * | implementJavaScript (void(T::*method)(), const std::string &jsCode) |
![]() | |
observable () noexcept | |
virtual | ~observable () |
auto | bindSafe (void(C::*method)(Args...)) noexcept |
auto | bindSafe (void(C::*method)(Args...) const) const noexcept |
auto | bindSafe (const Function &function) noexcept |
Private Attributes | |
std::string | m_customerGuid |
std::vector< Wt::WFormModel::Field > | m_fields |
Additional Inherited Members | |
![]() | |
typedef std::map< ItemDataRole, cpp17::any > | DataMap |
![]() | |
typedef void(WObject::* | Method) () |
![]() | |
virtual Result | createRow () |
virtual void | addRow (Result &result) |
virtual void | deleteRow (Result &result) |
virtual long long | resultId (const Result &result) const |
virtual Result | resultById (long long id) const |
![]() | |
void | reset () |
WModelIndex | createIndex (int row, int column, void *ptr) const |
WModelIndex | createIndex (int row, int column, ::uint64_t id) const |
void | beginInsertColumns (const WModelIndex &parent, int first, int last) |
void | beginInsertRows (const WModelIndex &parent, int first, int last) |
void | beginRemoveColumns (const WModelIndex &parent, int first, int last) |
void | beginRemoveRows (const WModelIndex &parent, int first, int last) |
void | endInsertColumns () |
void | endInsertRows () |
void | endRemoveColumns () |
void | endRemoveRows () |
virtual void | copyData (const WModelIndex &sIndex, const WModelIndex &dIndex) |
![]() | |
virtual WStatelessSlot * | getStateless (Method method) |
Definition at line 14 of file InvoicesModel.h.
GCW::Eng::InvoicesModel::InvoicesModel | ( | ) |
Definition at line 6 of file InvoicesModel.cpp.
References refreshFromDisk().
GCW::Eng::InvoicesModel::InvoicesModel | ( | const std::vector< Wt::WFormModel::Field > & | _fields | ) |
Definition at line 14 of file InvoicesModel.cpp.
References refreshFromDisk().
auto GCW::Eng::InvoicesModel::refreshFromDisk | ( | ) | -> void |
Refresh From Disk.
Definition at line 40 of file InvoicesModel.cpp.
References GCW::app().
Referenced by InvoicesModel(), and InvoicesModel().
auto GCW::Eng::InvoicesModel::setCustomerGuid | ( | const std::string & | _guid | ) | -> void |
Definition at line 24 of file InvoicesModel.cpp.
|
private |
Definition at line 28 of file InvoicesModel.h.
|
private |
Definition at line 30 of file InvoicesModel.h.