00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00043 #ifndef __vtkKWUserInterfacePanel_h
00044 #define __vtkKWUserInterfacePanel_h
00045
00046 #include "vtkKWObject.h"
00047
00048 class vtkKWIcon;
00049 class vtkKWUserInterfaceManager;
00050 class vtkKWWidget;
00051
00052 class KWWidgets_EXPORT vtkKWUserInterfacePanel : public vtkKWObject
00053 {
00054
00055 public:
00056 static vtkKWUserInterfacePanel* New();
00057 vtkTypeRevisionMacro(vtkKWUserInterfacePanel,vtkKWObject);
00058 void PrintSelf(ostream& os, vtkIndent indent);
00059
00061
00068 virtual void SetUserInterfaceManager(vtkKWUserInterfaceManager*);
00069 vtkGetObjectMacro(UserInterfaceManager, vtkKWUserInterfaceManager);
00071
00073
00074 vtkGetStringMacro(Name);
00075 vtkSetStringMacro(Name);
00077
00079
00085 virtual void Create();
00086 virtual int IsCreated();
00088
00090
00092 virtual void SetEnabled(int);
00093 vtkBooleanMacro(Enabled, int);
00094 vtkGetMacro(Enabled, int);
00096
00098
00103 virtual int AddPage(const char *title,
00104 const char *balloon = 0,
00105 vtkKWIcon *icon = 0);
00106 virtual int RemovePage(const char *title);
00108
00110
00111 virtual void SetPageTitle(int id, const char *title);
00112 virtual void SetPageBalloonHelpString(int id, const char *str);
00113 virtual void SetPageIcon(int id, vtkKWIcon *icon);
00114 virtual void SetPageIconToPredefinedIcon(int id, int icon_index);
00116
00118
00122 virtual vtkKWWidget *GetPageWidget(int id);
00123 virtual vtkKWWidget *GetPageWidget(const char *title);
00125
00129 virtual vtkKWWidget *GetPagesParentWidget();
00130
00132
00137 virtual void RaisePage(int id);
00138 virtual void RaisePage(const char *title);
00140
00142
00150 virtual int Show();
00151 virtual int Raise();
00152 virtual int IsVisible();
00154
00156 virtual void Update();
00157
00164 virtual void UpdateEnableState() {};
00165
00166
00167
00168 protected:
00169 vtkKWUserInterfacePanel();
00170 ~vtkKWUserInterfacePanel();
00171
00172 vtkKWUserInterfaceManager *UserInterfaceManager;
00173
00174 char *Name;
00175
00176
00177
00178 private:
00179
00180 int Enabled;
00181 int PanelIsCreated;
00182
00183 vtkKWUserInterfacePanel(const vtkKWUserInterfacePanel&);
00184 void operator=(const vtkKWUserInterfacePanel&);
00185 };
00186
00187 #endif
00188
00189