initial commit
[goodguy/history.git] / cinelerra-5.0 / 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         void handle_close_event(int result);
40
41         BC_Window* new_gui();
42         char* get_current_tip();
43         void next_tip();
44         void prev_tip();
45
46         MWindow *mwindow;
47         TipWindowGUI *gui;
48 };
49
50
51 class TipWindowGUI : public BC_Window
52 {
53 public:
54         TipWindowGUI(MWindow *mwindow, 
55                 TipWindow *thread,
56                 int x,
57                 int y);
58         void create_objects();
59         int keypress_event();
60         MWindow *mwindow;
61         TipWindow *thread;
62         BC_Title *tip_text;
63 };
64
65 class TipDisable : public BC_CheckBox
66 {
67 public:
68         TipDisable(MWindow *mwindow, TipWindowGUI *gui, int x, int y);
69         int handle_event();
70         TipWindowGUI *gui;
71         MWindow *mwindow;
72 };
73
74 class TipNext : public BC_Button
75 {
76 public:
77         TipNext(MWindow *mwindow, TipWindowGUI *gui, int x, int y);
78         int handle_event();
79         static int calculate_w(MWindow *mwindow);
80         TipWindowGUI *gui;
81         MWindow *mwindow;
82 };
83
84 class TipPrev : public BC_Button
85 {
86 public:
87         TipPrev(MWindow *mwindow, TipWindowGUI *gui, int x, int y);
88         int handle_event();
89         static int calculate_w(MWindow *mwindow);
90         TipWindowGUI *gui;
91         MWindow *mwindow;
92 };
93
94 class TipClose : public BC_Button
95 {
96 public:
97         TipClose(MWindow *mwindow, TipWindowGUI *gui, int x, int y);
98         int handle_event();
99         static int calculate_w(MWindow *mwindow);
100         static int calculate_h(MWindow *mwindow);
101         TipWindowGUI *gui;
102         MWindow *mwindow;
103 };
104
105
106
107 #endif