KWWidgets
debian/kwwidgets-examples/usr/share/doc/kwwidgets-examples/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
12 {
13 public:
14 
15  // Get the type
16 
17  enum WidgetType
18  {
22  };
23  virtual int GetType() = 0;
24  virtual void Create(vtkKWWidget *parent, vtkKWWindow *win) = 0;
25 
27  virtual ~KWWidgetsTourItem() {};
28 };
29 
30 typedef KWWidgetsTourItem* (*KWWidgetsTourItemEntryPoint)();
31 //ETX
32 
33 //----------------------------------------------------------------------------
34 //BTX
35 typedef struct
36 {
37  const char *Name;
40 //ETX
41 
42 //----------------------------------------------------------------------------
44 class vtkKWWindow;
46 class vtkKWWidgetsTourExampleInternals;
47 
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:
74 
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