|
Wt examples
3.3.8
|
A specialized standard item model which report a specific drag and drop mime type. More...

Public Member Functions | |
| FileModel (WObject *parent) | |
| Constructor. More... | |
| virtual std::string | mimeType () const |
| Return the mime type. More... | |
Public Member Functions inherited from Wt::WStandardItemModel | |
| WStandardItemModel (WObject *parent=0) | |
| WStandardItemModel (int rows, int columns, WObject *parent=0) | |
| ~WStandardItemModel () | |
| void | clear () |
| WStandardItem * | invisibleRootItem () const |
| WModelIndex | indexFromItem (const WStandardItem *item) const |
| WStandardItem * | itemFromIndex (const WModelIndex &index) const |
| void | appendColumn (const std::vector< WStandardItem * > &items) |
| void | insertColumn (int column, const std::vector< WStandardItem * > &items) |
| void | appendRow (const std::vector< WStandardItem * > &items) |
| void | insertRow (int row, const std::vector< WStandardItem * > &items) |
| void | appendRow (WStandardItem *item) |
| void | insertRow (int row, WStandardItem *item) |
| WStandardItem * | item (int row, int column=0) const |
| void | setItem (int row, int column, WStandardItem *item) |
| WStandardItem * | itemPrototype () const |
| void | setItemPrototype (WStandardItem *item) |
| std::vector< WStandardItem * > | takeColumn (int column) |
| std::vector< WStandardItem * > | takeRow (int row) |
| WStandardItem * | takeItem (int row, int column=0) |
| void | setHeaderFlags (int section, Orientation orientation, WFlags< HeaderFlag > flags) |
| void | setSortRole (int role) |
| int | sortRole () const |
| virtual void | sort (int column, SortOrder order=AscendingOrder) |
| Signal< WStandardItem * > & | itemChanged () |
Public Member Functions inherited from Wt::WAbstractItemModel | |
| WAbstractItemModel (WObject *parent=0) | |
| 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=Horizontal) const |
| virtual bool | hasChildren (const WModelIndex &index) const |
| virtual WModelIndex | parent (const WModelIndex &index) const =0 |
| virtual boost::any | data (const WModelIndex &index, int role=DisplayRole) const =0 |
| virtual DataMap | itemData (const WModelIndex &index) const |
| virtual boost::any | headerData (int section, Orientation orientation=Horizontal, int role=DisplayRole) const |
| virtual WModelIndex | index (int row, int column, const WModelIndex &parent=WModelIndex()) const =0 |
| virtual WModelIndexList | match (const WModelIndex &start, int role, const boost::any &value, int hits=-1, WFlags< MatchFlag > flags=WFlags< MatchFlag >(MatchStartsWith|MatchWrap)) const |
| boost::any | data (int row, int column, int role=DisplayRole, 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 boost::any &value, int role=EditRole) |
| virtual bool | setItemData (const WModelIndex &index, const DataMap &values) |
| virtual bool | setHeaderData (int section, Orientation orientation, const boost::any &value, int role=EditRole) |
| bool | setHeaderData (int section, const boost::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) |
| 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 boost::any &value, int role=EditRole, 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 | |
| WObject (WObject *parent=0) | |
| virtual | ~WObject () |
| 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) |
| void | addChild (WObject *child) |
| virtual void | removeChild (WObject *child) |
| const std::vector< WObject * > & | children () const |
| WObject * | parent () const |
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< int, boost::any > | DataMap |
Public Types inherited from Wt::WObject | |
| typedef void(WObject::* | Method) () |
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) |
Static Protected Member Functions inherited from Wt::WObject | |
| static WObject * | sender () |
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 |
Constructor.
Definition at line 56 of file TreeViewDragDrop.C.
|
inlinevirtual |
Return the mime type.
Reimplemented from Wt::WAbstractItemModel.
Definition at line 61 of file TreeViewDragDrop.C.
1.8.11