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.
7 #ifndef PREFDLG_H_INCLUDED
8 #define PREFDLG_H_INCLUDED
11 #include "PrefHandler.h"
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';
31 class PrefWindow
: public BWindow
34 PrefWindow(const BMessenger
&messenger
);
35 virtual ~PrefWindow();
38 virtual bool QuitRequested();
39 virtual void MessageReceived(BMessage
*msg
);
45 void _SaveRequested(BMessage
*msg
);
46 BRect
_CenteredRect(BRect rect
);
49 PrefHandler
*fPreviousPref
;
50 BFilePanel
*fSavePanel
;
52 BButton
*fSaveAsFileButton
,
56 AppearancePrefView
*fAppearanceView
;
59 BMessenger fTerminalMessenger
;
62 #endif // PREFDLG_H_INCLUDED