transportque tweaks for shuttle, fixes videoscope/undo hangs
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / reindex.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  */
21
22 #ifndef REINDEX_H
23 #define REINDEX_H
24
25 class ReIndex;
26
27 #include "indexfile.h"
28 #include "guicast.h"
29 #include "mainmenu.h"
30 #include "mwindow.h"
31 #include "thread.h"
32
33 class ReIndex : public BC_MenuItem, public Thread
34 {
35 public:
36         ReIndex(MWindow *mwindow);
37         ~ReIndex();
38         void run();
39         handle_event();
40
41         MWindow *mwindow;
42 };
43
44 class ReIndexOkButton;
45 class ReIndexCancelButton;
46 class ReIndexTextBox;
47
48 class ReIndexWindow : public BC_Window
49 {
50 public:
51         ReIndexWindow(char *display = "");
52         ~ReIndexWindow();
53         create_objects();
54
55         MWindow *mwindow;
56         long sample_rate;
57         ReIndexOkButton *ok;
58         ReIndexCancelButton *cancel;
59 };
60
61 class ReIndexOkButton : public BC_Button
62 {
63 public:
64         ReIndexOkButton(ReIndexWindow *window);
65
66         handle_event();
67         keypress_event();
68
69         ReIndexWindow *window;
70 };
71
72 class ReIndexCancelButton : public BC_Button
73 {
74 public:
75         ReIndexCancelButton(ReIndexWindow *window);
76
77         handle_event();
78         keypress_event();
79
80         ReIndexWindow *window;
81 };
82
83 #endif