6 Copyright (c) 1991-2000, Be Incorporated. All rights reserved.
8 Permission is hereby granted, free of charge, to any person obtaining a copy of
9 this software and associated documentation files (the "Software"), to deal in
10 the Software without restriction, including without limitation the rights to
11 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
12 of the Software, and to permit persons to whom the Software is furnished to do
13 so, subject to the following conditions:
15 The above copyright notice and this permission notice applies to all licensees
16 and shall be included in all copies or substantial portions of the Software.
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF TITLE, MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 BE INCORPORATED BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
22 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION
23 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 Except as contained in this notice, the name of Be Incorporated shall not be
26 used in advertising or otherwise to promote the sale, use or other dealings in
27 this Software without prior written authorization from Be Incorporated.
29 Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks
30 of Be Incorporated in the United States and other countries. Other brand product
31 names are registered trademarks or trademarks of their respective holders.
34 #ifndef _SETTINGS_VIEWS_H
35 #define _SETTINGS_VIEWS_H
38 #include <GroupView.h>
40 #include "TrackerSettings.h"
43 const uint32 kSettingsContentsModified
= 'Scmo';
56 class SettingsView
: public BGroupView
{
58 SettingsView(const char* name
);
59 virtual ~SettingsView();
61 virtual void SetDefaults();
62 virtual bool IsDefaultable() const;
63 virtual void Revert();
64 virtual void ShowCurrentSettings();
65 virtual void RecordRevertSettings();
66 virtual bool IsRevertable() const;
69 typedef BGroupView _inherited
;
73 class DesktopSettingsView
: public SettingsView
{
75 DesktopSettingsView();
77 virtual void MessageReceived(BMessage
* message
);
78 virtual void AttachedToWindow();
80 virtual void SetDefaults();
81 virtual bool IsDefaultable() const;
82 virtual void Revert();
83 virtual void ShowCurrentSettings();
84 virtual void RecordRevertSettings();
85 virtual bool IsRevertable() const;
90 BRadioButton
* fShowDisksIconRadioButton
;
91 BRadioButton
* fMountVolumesOntoDesktopRadioButton
;
92 BCheckBox
* fMountSharedVolumesOntoDesktopCheckBox
;
95 bool fMountVolumesOntoDesktop
;
96 bool fMountSharedVolumesOntoDesktop
;
97 bool fIntegrateNonBootBeOSDesktops
;
98 bool fEjectWhenUnmounting
;
100 typedef SettingsView _inherited
;
104 class WindowsSettingsView
: public SettingsView
{
106 WindowsSettingsView();
108 virtual void MessageReceived(BMessage
* message
);
109 virtual void AttachedToWindow();
111 virtual void SetDefaults();
112 virtual bool IsDefaultable() const;
113 virtual void Revert();
114 virtual void ShowCurrentSettings();
115 virtual void RecordRevertSettings();
116 virtual bool IsRevertable() const;
119 BCheckBox
* fShowFullPathInTitleBarCheckBox
;
120 BCheckBox
* fSingleWindowBrowseCheckBox
;
121 BCheckBox
* fShowNavigatorCheckBox
;
122 BCheckBox
* fOutlineSelectionCheckBox
;
123 BCheckBox
* fSortFolderNamesFirstCheckBox
;
124 BCheckBox
* fHideDotFilesCheckBox
;
125 BCheckBox
* fTypeAheadFilteringCheckBox
;
127 bool fShowFullPathInTitleBar
;
128 bool fSingleWindowBrowse
;
130 bool fTransparentSelection
;
131 bool fSortFolderNamesFirst
;
133 bool fTypeAheadFiltering
;
135 typedef SettingsView _inherited
;
139 class SpaceBarSettingsView
: public SettingsView
{
141 SpaceBarSettingsView();
142 virtual ~SpaceBarSettingsView();
144 virtual void MessageReceived(BMessage
* message
);
145 virtual void AttachedToWindow();
147 virtual void SetDefaults();
148 virtual bool IsDefaultable() const;
149 virtual void Revert();
150 virtual void ShowCurrentSettings();
151 virtual void RecordRevertSettings();
152 virtual bool IsRevertable() const;
155 BCheckBox
* fSpaceBarShowCheckBox
;
156 BColorControl
* fColorControl
;
157 BMenuField
* fColorPicker
;
161 rgb_color fUsedSpaceColor
;
162 rgb_color fFreeSpaceColor
;
163 rgb_color fWarningSpaceColor
;
165 typedef SettingsView _inherited
;
169 class AutomountSettingsPanel
: public SettingsView
{
171 AutomountSettingsPanel();
172 virtual ~AutomountSettingsPanel();
174 virtual bool IsDefaultable() const;
175 virtual void Revert();
176 virtual void ShowCurrentSettings();
177 virtual void RecordRevertSettings();
178 virtual bool IsRevertable() const;
181 virtual void MessageReceived(BMessage
* message
);
182 virtual void AttachedToWindow();
185 void _SendSettings(bool rescan
);
186 void _GetSettings(BMessage
* reply
) const;
187 void _ParseSettings(const BMessage
& settings
);
189 BRadioButton
* fInitialDontMountCheck
;
190 BRadioButton
* fInitialMountAllBFSCheck
;
191 BRadioButton
* fInitialMountAllCheck
;
192 BRadioButton
* fInitialMountRestoreCheck
;
194 BRadioButton
* fScanningDisabledCheck
;
195 BRadioButton
* fAutoMountAllBFSCheck
;
196 BRadioButton
* fAutoMountAllCheck
;
198 BCheckBox
* fEjectWhenUnmountingCheckBox
;
200 BButton
* fMountAllNow
;
203 BMessage fInitialSettings
;
205 typedef SettingsView _inherited
;
209 } // namespace BPrivate
211 using namespace BPrivate
;
214 #endif // _SETTINGS_VIEWS_H