Credit Andrew - fix vorbis audio which was scratchy and ensure aging plugin does...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / testwindow.h
1 /*
2  * This program is free software; you can redistribute it and/or modify it
3  * under the terms of the GNU General Public License as published
4  * by the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful, but
8  * WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10  * General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public
13  * License along with this program; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
15  * USA
16  */
17
18 #ifndef __TESTWINDOW_H__
19 #define __TESTWINDOW_H__
20
21 #include "bcwindow.h"
22 #include "bcsignals.h"
23 #include "bccolors.h"
24 #include "fonts.h"
25 #include "thread.h"
26
27 class TestWindowGUI : public BC_Window
28 {
29         int tx, ty;
30         int last_x, last_y;
31         int in_motion;
32 public:
33         int button_press_event();
34         int button_release_event();
35         int cursor_motion_event();
36         TestWindowGUI();
37         ~TestWindowGUI();
38 };
39
40
41 class TestWindow : public Thread
42 {
43         TestWindowGUI *gui;
44 public:
45         TestWindow() : Thread(1,0,0) { gui = new TestWindowGUI(); start(); }
46         ~TestWindow() { delete gui; }
47         void run() { gui->run_window(); }
48 };
49
50 #endif