forked from FNNDSC/KWWidgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtkKWApplicationSettingsInterface.h
117 lines (89 loc) · 3.87 KB
/
vtkKWApplicationSettingsInterface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/*=========================================================================
Module: $RCSfile: vtkKWApplicationSettingsInterface.h,v $
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkKWApplicationSettingsInterface - a user interface panel.
// .SECTION Description
// A concrete implementation of a user interface panel.
// See vtkKWUserInterfacePanel for a more detailed description.
// .SECTION See Also
// vtkKWUserInterfacePanel vtkKWUserInterfaceManager
#ifndef __vtkKWApplicationSettingsInterface_h
#define __vtkKWApplicationSettingsInterface_h
#include "vtkKWUserInterfacePanel.h"
class vtkKWCheckButton;
class vtkKWFrame;
class vtkKWFrameWithLabel;
class vtkKWPushButton;
class vtkKWWindow;
class vtkKWMenuButtonWithLabel;
class KWWidgets_EXPORT vtkKWApplicationSettingsInterface : public vtkKWUserInterfacePanel
{
public:
static vtkKWApplicationSettingsInterface* New();
vtkTypeMacro(vtkKWApplicationSettingsInterface,vtkKWUserInterfacePanel);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Create the widget.
virtual void Create();
// Description:
// Set/Get the window (do not ref count it since the window will ref count
// this widget).
vtkGetObjectMacro(Window, vtkKWWindow);
virtual void SetWindow(vtkKWWindow*);
// Description:
// Refresh the interface given the current value of the Window and its
// views/composites/widgets.
virtual void Update();
// Description:
// Update the "enable" state of the object and its internal parts.
// Depending on different Ivars (this->Enabled, the application's
// Limited Edition Mode, etc.), the "enable" state of the object is updated
// and propagated to its internal parts/subwidgets. This will, for example,
// enable/disable parts of the widget UI, enable/disable the visibility
// of 3D widgets, etc.
virtual void UpdateEnableState();
// Description:
// Callbacks. Internal, do not use.
virtual void PromptBeforeExitCallback(int state);
virtual void SendErrorLogBeforeExitCallback(int state);
virtual void SaveUserInterfaceGeometryCallback(int state);
virtual void SplashScreenVisibilityCallback(int state);
virtual void BalloonHelpVisibilityCallback(int state);
virtual void ResetDragAndDropCallback();
virtual void FlatToolbarsCallback(int state);
virtual void FlatToolbarWidgetsCallback(int state);
virtual void DPICallback(double dpi);
virtual void ViewPanelPositionCallback();
protected:
vtkKWApplicationSettingsInterface();
~vtkKWApplicationSettingsInterface();
vtkKWWindow *Window;
// Interface settings
vtkKWFrameWithLabel *InterfaceSettingsFrame;
vtkKWCheckButton *PromptBeforeExitCheckButton;
vtkKWCheckButton *SendErrorLogBeforeExitCheckButton;
vtkKWCheckButton *SaveUserInterfaceGeometryCheckButton;
vtkKWCheckButton *SplashScreenVisibilityCheckButton;
vtkKWCheckButton *BalloonHelpVisibilityCheckButton;
vtkKWMenuButtonWithLabel *ViewPanelPositionOptionMenu;
// Interface customization
vtkKWFrameWithLabel *InterfaceCustomizationFrame;
vtkKWPushButton *ResetDragAndDropButton;
// Toolbar settings
vtkKWFrameWithLabel *ToolbarSettingsFrame;
vtkKWCheckButton *FlatToolbarsCheckButton;
vtkKWCheckButton *FlatToolbarWidgetsCheckButton;
// Print settings
vtkKWFrameWithLabel *PrintSettingsFrame;
vtkKWMenuButtonWithLabel *DPIOptionMenu;
private:
vtkKWApplicationSettingsInterface(const vtkKWApplicationSettingsInterface&); // Not implemented
void operator=(const vtkKWApplicationSettingsInterface&); // Not Implemented
};
#endif