00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWApplicationSettingsInterface.h,v $ 00004 00005 Copyright (c) Kitware, Inc. 00006 All rights reserved. 00007 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notice for more information. 00012 00013 =========================================================================*/ 00023 #ifndef __vtkKWApplicationSettingsInterface_h 00024 #define __vtkKWApplicationSettingsInterface_h 00025 00026 #include "vtkKWUserInterfacePanel.h" 00027 00028 class vtkKWCheckButton; 00029 class vtkKWFrame; 00030 class vtkKWFrameWithLabel; 00031 class vtkKWPushButton; 00032 class vtkKWWindow; 00033 class vtkKWMenuButtonWithLabel; 00034 00035 class KWWIDGETS_EXPORT vtkKWApplicationSettingsInterface : public vtkKWUserInterfacePanel 00036 { 00037 public: 00038 static vtkKWApplicationSettingsInterface* New(); 00039 vtkTypeRevisionMacro(vtkKWApplicationSettingsInterface,vtkKWUserInterfacePanel); 00040 void PrintSelf(ostream& os, vtkIndent indent); 00041 00043 00045 vtkGetObjectMacro(Window, vtkKWWindow); 00046 virtual void SetWindow(vtkKWWindow*); 00048 00050 virtual void Create(vtkKWApplication *app); 00051 00054 virtual void Update(); 00055 00057 00058 virtual void ConfirmExitCallback(); 00059 virtual void SaveUserInterfaceGeometryCallback(); 00060 virtual void SplashScreenVisibilityCallback(); 00061 virtual void BalloonHelpVisibilityCallback(); 00062 virtual void ResetDragAndDropCallback(); 00063 virtual void FlatFrameCallback(); 00064 virtual void FlatButtonsCallback(); 00065 virtual void DPICallback(double dpi); 00066 virtual void ViewPanelPositionCallback(); 00068 00075 virtual void UpdateEnableState(); 00076 00078 00079 static const char *PrintSettingsLabel; 00080 //ETX 00082 00083 protected: 00084 vtkKWApplicationSettingsInterface(); 00085 ~vtkKWApplicationSettingsInterface(); 00086 00087 vtkKWWindow *Window; 00088 00089 // Interface settings 00090 00091 vtkKWFrameWithLabel *InterfaceSettingsFrame; 00092 00093 vtkKWCheckButton *ConfirmExitCheckButton; 00094 vtkKWCheckButton *SaveUserInterfaceGeometryCheckButton; 00095 vtkKWCheckButton *SplashScreenVisibilityCheckButton; 00096 vtkKWCheckButton *BalloonHelpVisibilityCheckButton; 00097 vtkKWMenuButtonWithLabel *ViewPanelPositionOptionMenu; 00098 00099 // Interface customization 00100 00101 vtkKWFrameWithLabel *InterfaceCustomizationFrame; 00102 vtkKWPushButton *ResetDragAndDropButton; 00103 00104 // Toolbar settings 00105 00106 vtkKWFrameWithLabel *ToolbarSettingsFrame; 00107 vtkKWCheckButton *FlatFrameCheckButton; 00108 vtkKWCheckButton *FlatButtonsCheckButton; 00109 00110 // Print settings 00111 00112 vtkKWFrameWithLabel *PrintSettingsFrame; 00113 vtkKWMenuButtonWithLabel *DPIOptionMenu; 00114 00115 private: 00116 vtkKWApplicationSettingsInterface(const vtkKWApplicationSettingsInterface&); // Not implemented 00117 void operator=(const vtkKWApplicationSettingsInterface&); // Not Implemented 00118 }; 00119 00120 #endif 00121 00122