KWWidgets
debian/kwwidgets-examples/usr/share/doc/kwwidgets-examples/examples/Cxx/Tutorial1/Step3/vtkKWMyWidget.h
Go to the documentation of this file.
1 #ifndef __vtkKWMyWidget_h
2 #define __vtkKWMyWidget_h
3 
4 #include "vtkKWCompositeWidget.h"
5 
6 class vtkKWLabel;
7 class vtkKWCheckButton;
8 
10 {
11 public:
12  static vtkKWMyWidget* New();
13  vtkTypeRevisionMacro(vtkKWMyWidget,vtkKWCompositeWidget);
14 
15  // Description:
16  // Get the internal widgets.
17  vtkGetObjectMacro(Label, vtkKWLabel);
18  vtkGetObjectMacro(CheckButton, vtkKWCheckButton);
19 
20 protected:
21  vtkKWMyWidget();
23 
26 
27  // Description:
28  // Create the widget.
29  virtual void CreateWidget();
30 
31  // Description:
32  // Update the label's aspect according to the checkbutton's state.
33  virtual void UpdateLabel();
34 
35  // Description:
36  // Processes the events that are passed through CallbackCommand (or others).
37  virtual void ProcessCallbackCommandEvents(
38  vtkObject *caller, unsigned long event, void *calldata);
39 
40 private:
41  vtkKWMyWidget(const vtkKWMyWidget&); // Not implemented.
42  void operator=(const vtkKWMyWidget&); // Not implemented.
43 };
44 
45 #endif