vfs: check userland buffers before reading them.
[haiku.git] / src / preferences / appearance / APRWindow.h
blob1907fc4964b71fbd97ab4f542fe01d4f11210cfd
1 /*
2 * Copyright 2002-2012, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * DarkWyrm (darkwyrm@earthlink.net)
7 * Alexander von Gluck, kallisti5@unixzen.com
8 * Stephan Aßmus <superstippi@gmx.de>
9 */
10 #ifndef APR_WINDOW_H
11 #define APR_WINDOW_H
14 #include <Application.h>
15 #include <Button.h>
16 #include <Window.h>
17 #include <Message.h>
18 #include <TabView.h>
20 class APRView;
21 class AntialiasingSettingsView;
22 class FontView;
23 class LookAndFeelSettingsView;
26 class APRWindow : public BWindow {
27 public:
28 APRWindow(BRect frame);
29 void MessageReceived(BMessage *message);
31 private:
32 void _UpdateButtons();
33 bool _IsDefaultable() const;
34 bool _IsRevertable() const;
36 APRView* fColorsView;
37 BButton* fDefaultsButton;
38 BButton* fRevertButton;
40 AntialiasingSettingsView* fAntialiasingSettings;
41 FontView* fFontSettings;
42 LookAndFeelSettingsView* fLookAndFeelSettings;
46 static const int32 kMsgUpdate = 'updt';
49 #endif