xref: /haiku/src/preferences/appearance/APRWindow.cpp (revision 0c93c0a807b27096abbfad677436afb7d1712d4a)
1  /*
2   * Copyright 2002-2006, Haiku. All rights reserved.
3   * Distributed under the terms of the MIT License.
4   *
5   * Authors:
6   *		DarkWyrm (darkwyrm@earthlink.net)
7   */
8  
9  #include <Messenger.h>
10  #include "APRWindow.h"
11  #include "APRView.h"
12  #include "defs.h"
13  
14  APRWindow::APRWindow(BRect frame)
15   :	BWindow(frame, "Appearance", B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE,
16   			B_ALL_WORKSPACES )
17  {
18  	APRView *colorview = new APRView(Bounds(),"Colors",B_FOLLOW_ALL, B_WILL_DRAW);
19  	AddChild(colorview);
20  }
21  
22  bool
23  APRWindow::QuitRequested(void)
24  {
25  	be_app->PostMessage(B_QUIT_REQUESTED);
26  	return(true);
27  }
28