|
Wt examples
4.12.1
|
A specialized standard item model which report a specific drag and drop mime type. More...
Public Member Functions | |
| FileModel () | |
| Constructor. More... | |
| virtual std::string | mimeType () const |
| Return the mime type. More... | |
Public Member Functions inherited from Wt::WStandardItemModel | |
| WStandardItemModel () | |
| WStandardItemModel (int rows, int columns) | |
| ~WStandardItemModel () | |
| void | clear () |
| WStandardItem * | invisibleRootItem () const |
| WModelIndex | indexFromItem (const WStandardItem *item) const |
| WStandardItem * | itemFromIndex (const WModelIndex &index) const |
| void | appendColumn (std::vector< std::unique_ptr< WStandardItem > > items) |
| void | insertColumn (int column, std::vector< std::unique_ptr< WStandardItem > > items) |
| void | appendRow (std::vector< std::unique_ptr< WStandardItem > > items) |
| void | insertRow (int row, std::vector< std::unique_ptr< WStandardItem > > items) |
| void | appendRow (std::unique_ptr< WStandardItem > item) |
| void | insertRow (int row, std::unique_ptr< WStandardItem > item) |
| WStandardItem * | item (int row, int column=0) const |
| void | setItem (int row, int column, std::unique_ptr< WStandardItem > item) |
| WStandardItem * | itemPrototype () const |
| void | setItemPrototype (std::unique_ptr< WStandardItem > item) |
| std::vector< std::unique_ptr< WStandardItem > > | takeColumn (int column) |
| std::vector< std::unique_ptr< WStandardItem > > | takeRow (int row) |
| std::unique_ptr< WStandardItem > | takeItem (int row, int column=0) |
| void | setHeaderFlags (int section, Orientation orientation, WFlags< HeaderFlag > flags) |
| void | setSortRole (ItemDataRole role) |
| ItemDataRole | sortRole () const |
| virtual void | sort (int column, SortOrder order=SortOrder::Ascending) override |
| Signal< WStandardItem * > & | itemChanged () |
| bool | insertRow (int row, const WModelIndex &parent=WModelIndex()) |
| bool | insertColumn (int column, const WModelIndex &parent=WModelIndex()) |
Public Member Functions inherited from Wt::WAbstractItemModel | |
| WAbstractItemModel () | |
| virtual int | columnCount (const WModelIndex &parent=WModelIndex()) const=0 |
| virtual int | rowCount (const WModelIndex &parent=WModelIndex()) const=0 |
| virtual WFlags< ItemFlag > | flags (const WModelIndex &index) const |
| virtual WFlags< HeaderFlag > | headerFlags (int section, Orientation orientation=Orientation::Horizontal) const |
| virtual bool | hasChildren (const WModelIndex &index) const |
| virtual WModelIndex | parent (const WModelIndex &index) const=0 |
| virtual cpp17::any | data (const WModelIndex &index, ItemDataRole role=ItemDataRole::Display) const=0 |
| virtual DataMap | itemData (const WModelIndex &index) const |
| virtual cpp17::any | headerData (int section, Orientation orientation=Orientation::Horizontal, ItemDataRole role=ItemDataRole::Display) const |
| virtual WModelIndex | index (int row, int column, const WModelIndex &parent=WModelIndex()) const=0 |
| 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 | insertRows (int row, int count, const WModelIndex &parent=WModelIndex()) |
| virtual bool | removeColumns (int column, int count, const WModelIndex &parent=WModelIndex()) |
| virtual bool | removeRows (int row, int count, const WModelIndex &parent=WModelIndex()) |
| virtual bool | setData (const WModelIndex &index, const cpp17::any &value, ItemDataRole role=ItemDataRole::Edit) |
| virtual bool | setItemData (const WModelIndex &index, const DataMap &values) |
| virtual bool | setHeaderData (int section, Orientation orientation, const cpp17::any &value, ItemDataRole role=ItemDataRole::Edit) |
| bool | setHeaderData (int section, const cpp17::any &value) |
| virtual void | expandColumn (int column) |
| virtual void | collapseColumn (int column) |
| virtual void * | toRawIndex (const WModelIndex &index) const |
| virtual WModelIndex | fromRawIndex (void *rawIndex) 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 () |
Public Member Functions inherited from Wt::WObject | |
| 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) |
Public Member Functions inherited from Wt::Core::observable | |
| 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 |
Static Public Attributes | |
| static WString | dateDisplayFormat |
| Date display format. More... | |
| static WString | dateEditFormat |
| Date edit format. More... | |
Additional Inherited Members | |
Public Types inherited from Wt::WAbstractItemModel | |
| typedef std::map< ItemDataRole, cpp17::any > | DataMap |
Public Types inherited from Wt::WObject | |
| typedef void(WObject::* | Method) () |
Protected Member Functions inherited from Wt::WStandardItemModel | |
| virtual void | copyData (const WModelIndex &sIndex, const WModelIndex &dIndex) override |
Protected Member Functions inherited from Wt::WAbstractItemModel | |
| 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 () |
Protected Member Functions inherited from Wt::WObject | |
| virtual WStatelessSlot * | getStateless (Method method) |
A specialized standard item model which report a specific drag and drop mime type.
A specific drag and drop mime type instead of the generic abstract item model is returned by the model.
Definition at line 51 of file TreeViewDragDrop.C.
|
inline |
|
inlinevirtual |
Return the mime type.
Reimplemented from Wt::WAbstractItemModel.
Definition at line 61 of file TreeViewDragDrop.C.
|
static |
Date display format.
Definition at line 66 of file TreeViewDragDrop.C.
|
static |
Date edit format.
Definition at line 69 of file TreeViewDragDrop.C.