rework keyframe hide popup, keyframe auto render, textbox set_selection wide text
[goodguy/history.git] / cinelerra-5.1 / cinelerra / tipwindow.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 TIPWINDOW_H
23 #define TIPWINDOW_H
24
25 #include "bcdialog.h"
26 #include "guicast.h"
27 #include "mwindow.inc"
28 #include "tipwindow.inc"
29
30
31
32 // Tip of the day to be run at initialization
33
34
35 class TipWindow : public BC_DialogThread
36 {
37 public:
38         TipWindow(MWindow *mwindow);
39         ~TipWindow();
40         void handle_close_event(int result);
41
42         BC_Window* new_gui();
43         char* get_current_tip();
44         void next_tip();
45         void prev_tip();
46
47         MWindow *mwindow;
48         TipWindowGUI *gui;
49 };
50
51
52 class TipWindowGUI : public BC_Window
53 {
54 public:
55         TipWindowGUI(MWindow *mwindow, 
56                 TipWindow *thread,
57                 int x,
58                 int y);
59         void create_objects();
60         int keypress_event();
61         MWindow *mwindow;
62         TipWindow *thread;
63         BC_Title *tip_text;
64 };
65
66 class TipDisable : public BC_CheckBox
67 {
68 public:
69         TipDisable(MWindow *mwindow, TipWindowGUI *gui, int x, int y);
70         int handle_event();
71         TipWindowGUI *gui;
72         MWindow *mwindow;
73 };
74
75 class TipNext : public BC_Button
76 {
77 public:
78         TipNext(MWindow *mwindow, TipWindowGUI *gui, int x, int y);
79         int handle_event();
80         static int calculate_w(MWindow *mwindow);
81         TipWindowGUI *gui;
82         MWindow *mwindow;
83 };
84
85 class TipPrev : public BC_Button
86 {
87 public:
88         TipPrev(MWindow *mwindow, TipWindowGUI *gui, int x, int y);
89         int handle_event();
90         static int calculate_w(MWindow *mwindow);
91         TipWindowGUI *gui;
92         MWindow *mwindow;
93 };
94
95 class TipClose : public BC_Button
96 {
97 public:
98         TipClose(MWindow *mwindow, TipWindowGUI *gui, int x, int y);
99         int handle_event();
100         static int calculate_w(MWindow *mwindow);
101         static int calculate_h(MWindow *mwindow);
102         TipWindowGUI *gui;
103         MWindow *mwindow;
104 };
105
106
107
108 #endif