|
Wt examples
3.3.6
|
Main application class. More...

Public Member Functions | |
| TreeViewDragDrop (const WEnvironment &env) | |
| Constructor. More... | |
| virtual | ~TreeViewDragDrop () |
Private Member Functions | |
| void | createUI () |
| Setup the user interface. More... | |
| WText * | createTitle (const WString &title) |
| Creates a title widget. More... | |
| WTreeView * | folderView () |
| Creates the folder WTreeView. More... | |
| WTableView * | fileView () |
| Creates the file table view (a WTableView) More... | |
| void | editFile (const WModelIndex &item) |
| Edit a particular row. More... | |
| WWidget * | pieChart () |
| Creates the chart. More... | |
| WWidget * | aboutDisplay () |
| Creates the hints text. More... | |
| void | folderChanged () |
| Change the filter on the file view when the selected folder changes. More... | |
| void | showPopup (const WModelIndex &item, const WMouseEvent &event) |
| Show a popup for a folder item. More... | |
| void | popupAction () |
| Process the result of the popup menu. More... | |
| void | dialogDone () |
| Process the result of the message box. More... | |
| void | populateFiles () |
| Populate the files model. More... | |
| void | convertToDate (WStandardItem *item) |
| Convert a string to a date. More... | |
| void | convertToNumber (WStandardItem *item) |
| Convert a string to a number. More... | |
| void | populateFolders () |
| Populate the folders model. More... | |
| WStandardItem * | createFolderItem (const WString &location, const std::string &folderId=std::string()) |
| Create a folder item. More... | |
Private Attributes | |
| WStandardItemModel * | folderModel_ |
| The folder model (used by folderView_) More... | |
| WStandardItemModel * | fileModel_ |
| The file model (used by fileView_) More... | |
| WSortFilterProxyModel * | fileFilterModel_ |
| The sort filter proxy model that adapts fileModel_. More... | |
| std::map< std::string, WString > | folderNameMap_ |
| Maps folder id's to folder descriptions. More... | |
| WTreeView * | folderView_ |
| The folder view. More... | |
| WTableView * | fileView_ |
| The file view. More... | |
| WPopupMenu * | popup_ |
| Popup menu on the folder view. More... | |
| WMessageBox * | popupActionBox_ |
| Message box to confirm the poup menu action. More... | |
Main application class.
Definition at line 237 of file TreeViewDragDrop.C.
|
inline |
Constructor.
Definition at line 242 of file TreeViewDragDrop.C.
|
inlinevirtual |
Definition at line 279 of file TreeViewDragDrop.C.
|
inlineprivate |
Creates the hints text.
Definition at line 457 of file TreeViewDragDrop.C.
|
inlineprivate |
Convert a string to a date.
Definition at line 588 of file TreeViewDragDrop.C.
|
inlineprivate |
Convert a string to a number.
Definition at line 595 of file TreeViewDragDrop.C.
|
inlineprivate |
Create a folder item.
Configures flags for drag and drop support.
Definition at line 632 of file TreeViewDragDrop.C.
|
inlineprivate |
Creates a title widget.
Definition at line 347 of file TreeViewDragDrop.C.
|
inlineprivate |
Setup the user interface.
Definition at line 311 of file TreeViewDragDrop.C.
|
inlineprivate |
Process the result of the message box.
Definition at line 548 of file TreeViewDragDrop.C.
|
inlineprivate |
|
inlineprivate |
Creates the file table view (a WTableView)
Definition at line 386 of file TreeViewDragDrop.C.
|
inlineprivate |
Change the filter on the file view when the selected folder changes.
Definition at line 466 of file TreeViewDragDrop.C.
|
inlineprivate |
Creates the folder WTreeView.
Definition at line 357 of file TreeViewDragDrop.C.
|
inlineprivate |
Creates the chart.
Definition at line 428 of file TreeViewDragDrop.C.
|
inlineprivate |
Populate the files model.
Data (and headers) is read from the CSV file data/files.csv. We add icons to the first column, resolve the folder id to the actual folder name, and configure item flags, and parse date values.
Definition at line 560 of file TreeViewDragDrop.C.
|
inlineprivate |
Populate the folders model.
Definition at line 602 of file TreeViewDragDrop.C.
|
inlineprivate |
Process the result of the popup menu.
Definition at line 527 of file TreeViewDragDrop.C.
|
inlineprivate |
Show a popup for a folder item.
Definition at line 485 of file TreeViewDragDrop.C.
|
private |
The sort filter proxy model that adapts fileModel_.
Definition at line 292 of file TreeViewDragDrop.C.
|
private |
The file model (used by fileView_)
Definition at line 289 of file TreeViewDragDrop.C.
|
private |
The file view.
Definition at line 301 of file TreeViewDragDrop.C.
|
private |
The folder model (used by folderView_)
Definition at line 286 of file TreeViewDragDrop.C.
|
private |
Maps folder id's to folder descriptions.
Definition at line 295 of file TreeViewDragDrop.C.
|
private |
The folder view.
Definition at line 298 of file TreeViewDragDrop.C.
|
private |
Popup menu on the folder view.
Definition at line 304 of file TreeViewDragDrop.C.
|
private |
Message box to confirm the poup menu action.
Definition at line 307 of file TreeViewDragDrop.C.
1.8.13