Wt examples
3.3.12
tmp
package-src
examples
treeview-dragdrop
FolderView.h
Go to the documentation of this file.
1
// This may look like C code, but it's really -*- C++ -*-
2
/*
3
* Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
4
*
5
* See the LICENSE file for terms of use.
6
*/
7
#ifndef FOLDER_VIEW_H_
8
#define FOLDER_VIEW_H_
9
10
#include <Wt/WTreeView>
11
16
19
class
FolderView
:
public
Wt::WTreeView
20
{
21
public
:
26
static
const
char
*
FileSelectionMimeType
;
27
30
FolderView
(
Wt::WContainerWidget
*
parent
= 0);
31
32
protected
:
35
virtual
void
dropEvent
(
const
Wt::WDropEvent
&event,
36
const
Wt::WModelIndex
&target);
37
};
38
41
#endif
// FOLDER_VIEW_H_
FolderView
A specialized treeview that supports a custom drop event.
Definition
FolderView.h:20
FolderView::dropEvent
virtual void dropEvent(const Wt::WDropEvent &event, const Wt::WModelIndex &target)
Drop event.
Definition
FolderView.C:28
FolderView::FileSelectionMimeType
static const char * FileSelectionMimeType
Constant that indicates the mime type for a selection of files.
Definition
FolderView.h:26
Wt::WContainerWidget
Wt::WDropEvent
Wt::WModelIndex
Wt::WTreeView
Wt::WWidget::parent
WWidget * parent() const
Generated on Fri May 17 2024 for
the C++ Web Toolkit (Wt)
by
1.9.8