KWWidgets
Main Page
Classes
Files
File List
File Members
Examples
Cxx
WidgetsTour
Examples/Cxx/WidgetsTour/vtkKWWidgetsTourExample.h
Go to the documentation of this file.
1
#ifndef __vtkKWWidgetsTourExample_h
2
#define __vtkKWWidgetsTourExample_h
3
4
#include "vtkKWObject.h"
5
6
class
vtkKWWidget
;
7
class
vtkKWWindow
;
8
9
//----------------------------------------------------------------------------
10
//BTX
11
class
KWWidgetsTourItem
12
{
13
public
:
14
15
// Get the type
16
17
enum
WidgetType
18
{
19
TypeCore
,
20
TypeComposite
,
21
TypeVTK
22
};
23
virtual
int
GetType
() = 0;
24
virtual
void
Create
(
vtkKWWidget
*parent,
vtkKWWindow
*win) = 0;
25
26
KWWidgetsTourItem
() {};
27
virtual
~KWWidgetsTourItem
() {};
28
};
29
30
typedef
KWWidgetsTourItem
* (*KWWidgetsTourItemEntryPoint)();
31
//ETX
32
33
//----------------------------------------------------------------------------
34
//BTX
35
typedef
struct
36
{
37
const
char
*Name;
38
KWWidgetsTourItemEntryPoint
EntryPoint;
39
}
KWWidgetsTourNode
;
40
//ETX
41
42
//----------------------------------------------------------------------------
43
class
vtkKWTreeWithScrollbars
;
44
class
vtkKWWindow
;
45
class
vtkKWTextWithScrollbarsWithLabel
;
46
class
vtkKWWidgetsTourExampleInternals;
47
48
class
vtkKWWidgetsTourExample
:
public
vtkKWObject
49
{
50
public
:
51
static
vtkKWWidgetsTourExample
*
New
();
52
vtkTypeRevisionMacro(
vtkKWWidgetsTourExample
,
vtkKWObject
);
53
54
// Description:
55
// Run the example.
56
int
Run
(
int
argc,
char
*argv[]);
57
58
// Description:
59
// Select specific example
60
virtual
void
SelectExample
(
const
char
*name);
61
62
// Description:
63
// Callbacks
64
virtual
void
SelectionChangedCallback
();
65
66
// Description:
67
// Get path to example data
68
static
const
char
*
GetPathToExampleData
(
69
vtkKWApplication
*app,
const
char
*name);
70
71
protected
:
72
vtkKWWidgetsTourExample
();
73
~vtkKWWidgetsTourExample
();
74
75
vtkKWTreeWithScrollbars
*
WidgetsTree
;
76
vtkKWWindow
*
Window
;
77
vtkKWTextWithScrollbarsWithLabel
*
CxxSourceText
;
78
vtkKWTextWithScrollbarsWithLabel
*
PythonSourceText
;
79
vtkKWTextWithScrollbarsWithLabel
*
TclSourceText
;
80
81
// PIMPL Encapsulation for STL containers
82
//BTX
83
vtkKWWidgetsTourExampleInternals *
Internals
;
84
//ETX
85
86
private
:
87
vtkKWWidgetsTourExample
(
const
vtkKWWidgetsTourExample
&);
// Not implemented.
88
void
operator=(
const
vtkKWWidgetsTourExample
&);
// Not implemented.
89
};
90
91
#endif
Generated on Thu Apr 18 2013 08:50:51 for KWWidgets by
1.8.1.2