xref: /haiku/src/apps/patchbay/PatchWin.cpp (revision f73f5d4c42a01ece688cbb57b5d332cc0f68b2c6)
1 /* PatchWin.cpp
2  * ------------
3  * Implements the main PatchBay window class.
4  *
5  * Copyright 2013, Haiku, Inc. All rights reserved.
6  * Distributed under the terms of the MIT License.
7  *
8  * Revisions by Pete Goodeve
9  *
10  * Copyright 1999, Be Incorporated.   All Rights Reserved.
11  * This file may be used under the terms of the Be Sample Code License.
12  */
13 
14 #include "PatchWin.h"
15 
16 #include <Application.h>
17 
18 #include "PatchView.h"
19 
20 
21 PatchWin::PatchWin()
22 	:
23 	BWindow(BRect(50, 50, 450, 450), "Patch Bay", B_TITLED_WINDOW, 0)
24 {
25 	BRect r = Bounds();
26 	fPatchView = new PatchView(r);
27 	AddChild(fPatchView);
28 	Show();
29 }
30 
31 
32 bool
33 PatchWin::QuitRequested()
34 {
35 	be_app->PostMessage(B_QUIT_REQUESTED);
36 	return true;
37 }
38