00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00021 #ifndef __vtkKWPushButtonWithMenu_h
00022 #define __vtkKWPushButtonWithMenu_h
00023
00024 #include "vtkKWPushButton.h"
00025
00026 class vtkKWMenu;
00027
00028 class KWWIDGETS_EXPORT vtkKWPushButtonWithMenu : public vtkKWPushButton
00029 {
00030 public:
00031 static vtkKWPushButtonWithMenu* New();
00032 vtkTypeRevisionMacro(vtkKWPushButtonWithMenu, vtkKWPushButton);
00033 void PrintSelf(ostream& os, vtkIndent indent);
00034
00036 virtual void Create(vtkKWApplication *app);
00037
00039
00040 void AddCheckButton(const char* label, const char* varName,
00041 int defaultState, const char* help);
00042 int GetCheckButtonState(const char* varName);
00043 void SetCheckButtonState(const char* varName, int state);
00045
00047 vtkKWMenu* GetMenu();
00048
00050 void PopupCallback(int x, int y);
00051
00058 virtual void UpdateEnableState();
00059
00060 protected:
00061 vtkKWPushButtonWithMenu();
00062 ~vtkKWPushButtonWithMenu();
00063
00064 vtkKWMenu *Menu;
00065
00066 private:
00067 vtkKWPushButtonWithMenu(const vtkKWPushButtonWithMenu&);
00068 void operator=(const vtkKWPushButtonWithMenu&);
00069 };
00070
00071 #endif
00072