btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / terminal / PrefWindow.h
blob69e82b88a5e222a519f209e085ac5f7ac57ccf7b
1 /*
2 * Copyright 2007, Haiku, Inc.
3 * Copyright 2003-2004 Kian Duffy, myob@users.sourceforge.net
4 * Parts Copyright 1998-1999 Kazuho Okui and Takashi Murai.
5 * All rights reserved. Distributed under the terms of the MIT license.
6 */
7 #ifndef PREFDLG_H_INCLUDED
8 #define PREFDLG_H_INCLUDED
11 #include "PrefHandler.h"
13 #include <Box.h>
14 #include <Window.h>
16 // local messages
17 const ulong MSG_DEFAULTS_PRESSED = 'defl';
18 const ulong MSG_SAVEAS_PRESSED = 'canl';
19 const ulong MSG_REVERT_PRESSED = 'revt';
20 const ulong MSG_PREF_CLOSED = 'mspc';
22 class BButton;
23 class BFilePanel;
24 class BMessage;
25 class BRect;
26 class BTextControl;
28 class PrefHandler;
31 class PrefWindow : public BWindow
33 public:
34 PrefWindow(const BMessenger &messenger);
35 virtual ~PrefWindow();
37 virtual void Quit();
38 virtual bool QuitRequested();
39 virtual void MessageReceived(BMessage *msg);
41 private:
42 void _Save();
43 void _SaveAs();
44 void _Revert();
45 void _SaveRequested(BMessage *msg);
46 BRect _CenteredRect(BRect rect);
48 private:
49 PrefHandler *fPreviousPref;
50 BFilePanel *fSavePanel;
52 BButton *fSaveAsFileButton,
53 *fRevertButton,
54 *fDefaultsButton;
56 AppearancePrefView *fAppearanceView;
58 bool fDirty;
59 BMessenger fTerminalMessenger;
62 #endif // PREFDLG_H_INCLUDED