KWWidgets
Examples/Cxx/WizardDialog/vtkKWMyOperand1Step.h
Go to the documentation of this file.
1 #ifndef __vtkKWMyOperand1Step_h
2 #define __vtkKWMyOperand1Step_h
3 
4 #include "vtkKWWizardStep.h"
5 
7 class vtkKWEntry;
9 
11 {
12 public:
13  static vtkKWMyOperand1Step* New();
14  vtkTypeRevisionMacro(vtkKWMyOperand1Step,vtkKWWizardStep);
15 
16  // Description:
17  // Show/hide the UI, validate the step.
18  virtual void ShowUserInterface();
19  virtual void HideUserInterface();
20  virtual void Validate();
21 
22  // Description:
23  // Check if the operand is valid
24  //BTX
25  enum
26  {
27  Operand1IsValid = 0,
30  };
31  //ETX
32  virtual int IsOperand1Valid();
33 
34  // Description:
35  // Get the operand value
36  virtual double GetOperand1Value();
37 
38  // Description:
39  // Set/Get the wizard widget this step should install its UI in.
40  vtkGetObjectMacro(WizardDialog, vtkKWMyWizardDialog);
41  virtual void SetWizardDialog(vtkKWMyWizardDialog*);
42 
43  // Description:
44  // Get the input to that can be used to branch when the operator
45  // requires only one operand.
47 
48  // Description:
49  // Callbacks
50  virtual int Operand1EntryChangedCallback(const char *value);
51 
52 protected:
55 
59 
60 private:
61  vtkKWMyOperand1Step(const vtkKWMyOperand1Step&); // Not implemented.
62  void operator=(const vtkKWMyOperand1Step&); // Not implemented.
63 };
64 
65 #endif