KWWidgets
Examples/Cxx/WizardDialog/vtkKWMyOperand2Step.h
Go to the documentation of this file.
1 #ifndef __vtkKWMyOperand2Step_h
2 #define __vtkKWMyOperand2Step_h
3 
4 #include "vtkKWWizardStep.h"
5 
7 class vtkKWSpinBox;
8 
10 {
11 public:
12  static vtkKWMyOperand2Step* New();
13  vtkTypeRevisionMacro(vtkKWMyOperand2Step,vtkKWWizardStep);
14 
15  // Description:
16  // Show/hide the UI, validate the step.
17  virtual void ShowUserInterface();
18  virtual void HideUserInterface();
19  virtual void Validate();
20 
21  // Description:
22  // Check if the operand is valid
23  //BTX
24  enum
25  {
26  Operand2IsValid = 0,
29  };
30  //ETX
31  virtual int IsOperand2Valid();
32 
33  // Description:
34  // Get the operand value
35  virtual double GetOperand2Value();
36 
37  // Description:
38  // Set/Get the wizard widget this step should install its UI in.
39  vtkGetObjectMacro(WizardDialog, vtkKWMyWizardDialog);
40  virtual void SetWizardDialog(vtkKWMyWizardDialog*);
41 
42  // Description:
43  // Callbacks
44  virtual int Operand2EntryChangedCallback(const char *value);
45 
46 protected:
49 
52 
53 private:
54  vtkKWMyOperand2Step(const vtkKWMyOperand2Step&); // Not implemented.
55  void operator=(const vtkKWMyOperand2Step&); // Not implemented.
56 };
57 
58 #endif