fix for vframe get_temp blunder, vicon zoom tweak
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / bcrename.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2010 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 BC_RENAME_H
23 #define BC_RENAME_H
24
25
26 #include "bcfilebox.inc"
27 #include "bcwindow.h"
28 #include "thread.h"
29
30
31 class BC_Rename : public BC_Window
32 {
33 public:
34         BC_Rename(BC_RenameThread *thread, int x, int y, BC_FileBox *filebox);
35         ~BC_Rename();
36
37         void create_objects();
38         const char* get_text();
39
40 private:
41         BC_TextBox *textbox;
42         BC_RenameThread *thread;
43 };
44
45 class BC_RenameThread : public Thread
46 {
47 public:
48         BC_RenameThread(BC_FileBox *filebox);
49         ~BC_RenameThread();
50
51         void run();
52         int interrupt();
53         int start_rename();
54
55         char orig_path[BCTEXTLEN];
56         char orig_name[BCTEXTLEN];
57
58 private:
59         Mutex *change_lock;
60         Condition *completion_lock;
61         BC_FileBox *filebox;
62         BC_Rename *window;
63 };
64
65
66
67
68
69 #endif