debian/kwwidgets-examples/usr/share/doc/kwwidgets-examples/examples/Cxx/WizardDialog/vtkKWMyOperand1Step.h

Go to the documentation of this file.
00001 #ifndef __vtkKWMyOperand1Step_h
00002 #define __vtkKWMyOperand1Step_h
00003 
00004 #include "vtkKWWizardStep.h"
00005 
00006 class vtkKWMyWizardDialog;
00007 class vtkKWEntry;
00008 class vtkKWStateMachineInput;
00009 
00010 class vtkKWMyOperand1Step : public vtkKWWizardStep
00011 {
00012 public:
00013   static vtkKWMyOperand1Step* New();
00014   vtkTypeRevisionMacro(vtkKWMyOperand1Step,vtkKWWizardStep);
00015 
00016   // Description:
00017   // Show/hide the UI, validate the step.
00018   virtual void ShowUserInterface();
00019   virtual void HideUserInterface();
00020   virtual void Validate();
00021 
00022   // Description:
00023   // Check if the operand is valid
00024   //BTX
00025   enum 
00026   {
00027     Operand1IsValid = 0,
00028     Operand1IsEmpty,
00029     Operand1IsNegative
00030   };
00031   //ETX
00032   virtual int IsOperand1Valid();
00033 
00034   // Description:
00035   // Get the operand value
00036   virtual double GetOperand1Value();
00037 
00038   // Description:
00039   // Set/Get the wizard widget this step should install its UI in.
00040   vtkGetObjectMacro(WizardDialog, vtkKWMyWizardDialog);
00041   virtual void SetWizardDialog(vtkKWMyWizardDialog*);
00042  
00043   // Description:
00044   // Get the input to that can be used to branch when the operator
00045   // requires only one operand.
00046   vtkGetObjectMacro(Operand1ValidationSucceededForOneOperandInput, vtkKWStateMachineInput);
00047 
00048   // Description:
00049   // Callbacks
00050   virtual int Operand1EntryChangedCallback(const char *value);
00051 
00052 protected:
00053   vtkKWMyOperand1Step();
00054   ~vtkKWMyOperand1Step();
00055 
00056   vtkKWStateMachineInput *Operand1ValidationSucceededForOneOperandInput;
00057   vtkKWEntry *Operand1Entry;
00058   vtkKWMyWizardDialog *WizardDialog;
00059 
00060 private:
00061   vtkKWMyOperand1Step(const vtkKWMyOperand1Step&);   // Not implemented.
00062   void operator=(const vtkKWMyOperand1Step&);  // Not implemented.
00063 };
00064 
00065 #endif

Generated by  doxygen 1.6.2