KWWidgets
Examples/Cxx/WizardDialog/vtkKWMyOperand2Step.h
Go to the documentation of this file.
00001 #ifndef __vtkKWMyOperand2Step_h
00002 #define __vtkKWMyOperand2Step_h
00003 
00004 #include "vtkKWWizardStep.h"
00005 
00006 class vtkKWMyWizardDialog;
00007 class vtkKWSpinBox;
00008 
00009 class vtkKWMyOperand2Step : public vtkKWWizardStep
00010 {
00011 public:
00012   static vtkKWMyOperand2Step* New();
00013   vtkTypeRevisionMacro(vtkKWMyOperand2Step,vtkKWWizardStep);
00014 
00015   // Description:
00016   // Show/hide the UI, validate the step.
00017   virtual void ShowUserInterface();
00018   virtual void HideUserInterface();
00019   virtual void Validate();
00020 
00021   // Description:
00022   // Check if the operand is valid
00023   //BTX
00024   enum 
00025   {
00026     Operand2IsValid = 0,
00027     Operand2IsEmpty,
00028     Operand2IsZero
00029   };
00030   //ETX
00031   virtual int IsOperand2Valid();
00032 
00033   // Description:
00034   // Get the operand value
00035   virtual double GetOperand2Value();
00036 
00037   // Description:
00038   // Set/Get the wizard widget this step should install its UI in.
00039   vtkGetObjectMacro(WizardDialog, vtkKWMyWizardDialog);
00040   virtual void SetWizardDialog(vtkKWMyWizardDialog*);
00041 
00042   // Description:
00043   // Callbacks
00044   virtual int Operand2EntryChangedCallback(const char *value);
00045 
00046 protected:
00047   vtkKWMyOperand2Step();
00048   ~vtkKWMyOperand2Step();
00049 
00050   vtkKWSpinBox *Operand2SpinBox;
00051   vtkKWMyWizardDialog *WizardDialog;
00052 
00053 private:
00054   vtkKWMyOperand2Step(const vtkKWMyOperand2Step&);   // Not implemented.
00055   void operator=(const vtkKWMyOperand2Step&);  // Not implemented.
00056 };
00057 
00058 #endif