Wt examples  4.0.0
Classes | Functions | Variables
Drag and drop in WTreeView example

Classes

class  FolderView
 A specialized treeview that supports a custom drop event. More...
 
class  FileModel
 A specialized standard item model which report a specific drag and drop mime type. More...
 
class  FileEditDialog
 A dialog for editing a 'file'. More...
 
class  TreeViewDragDrop
 Main application class. More...
 

Functions

std::unique_ptr< WApplicationcreateApplication (const WEnvironment &env)
 
int main (int argc, char **argv)
 

Variables

static WString FileModel::dateDisplayFormat
 Date display format. More...
 
static WString FileModel::dateEditFormat
 Date edit format. More...
 

Detailed Description

Function Documentation

std::unique_ptr<WApplication> createApplication ( const WEnvironment env)

Definition at line 683 of file TreeViewDragDrop.C.

684 {
685  auto app = cpp14::make_unique<TreeViewDragDrop>(env);
686  app->setTwoPhaseRenderingThreshold(0);
687  app->setTitle("WTreeView Drag & Drop");
688  app->useStyleSheet("styles.css");
689  app->messageResourceBundle().use(WApplication::appRoot() + "about");
690  app->refresh();
691 
692  return std::move(app);
693 }
int main ( int  argc,
char **  argv 
)

Definition at line 695 of file TreeViewDragDrop.C.

696 {
697  return WRun(argc, argv, &createApplication);
698 }
std::unique_ptr< WApplication > createApplication(const WEnvironment &env)

Variable Documentation

WString FileModel::dateDisplayFormat
static

Date display format.

Definition at line 66 of file TreeViewDragDrop.C.

WString FileModel::dateEditFormat
static

Date edit format.

Definition at line 69 of file TreeViewDragDrop.C.


Generated on Mon Sep 4 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11