00001 #ifndef TIPWINDOW_H
00002 #define TIPWINDOW_H
00003
00004 #include "bcdialog.h"
00005 #include "guicast.h"
00006 #include "mwindow.inc"
00007 #include "tipwindow.inc"
00008
00009
00010
00011
00012
00013
00014 class TipWindow : public BC_DialogThread
00015 {
00016 public:
00017 TipWindow(MWindow *mwindow);
00018
00019 BC_Window* new_gui();
00020 char* get_current_tip();
00021 void next_tip();
00022 void prev_tip();
00023
00024 MWindow *mwindow;
00025 TipWindowGUI *gui;
00026 };
00027
00028
00029 class TipWindowGUI : public BC_Window
00030 {
00031 public:
00032 TipWindowGUI(MWindow *mwindow,
00033 TipWindow *thread,
00034 int x,
00035 int y);
00036 void create_objects();
00037 int keypress_event();
00038 MWindow *mwindow;
00039 TipWindow *thread;
00040 BC_Title *tip_text;
00041 };
00042
00043 class TipDisable : public BC_CheckBox
00044 {
00045 public:
00046 TipDisable(MWindow *mwindow, TipWindowGUI *gui, int x, int y);
00047 int handle_event();
00048 TipWindowGUI *gui;
00049 MWindow *mwindow;
00050 };
00051
00052 class TipNext : public BC_Button
00053 {
00054 public:
00055 TipNext(MWindow *mwindow, TipWindowGUI *gui, int x, int y);
00056 int handle_event();
00057 static int calculate_w(MWindow *mwindow);
00058 TipWindowGUI *gui;
00059 MWindow *mwindow;
00060 };
00061
00062 class TipPrev : public BC_Button
00063 {
00064 public:
00065 TipPrev(MWindow *mwindow, TipWindowGUI *gui, int x, int y);
00066 int handle_event();
00067 static int calculate_w(MWindow *mwindow);
00068 TipWindowGUI *gui;
00069 MWindow *mwindow;
00070 };
00071
00072 class TipClose : public BC_Button
00073 {
00074 public:
00075 TipClose(MWindow *mwindow, TipWindowGUI *gui, int x, int y);
00076 int handle_event();
00077 static int calculate_w(MWindow *mwindow);
00078 static int calculate_h(MWindow *mwindow);
00079 TipWindowGUI *gui;
00080 MWindow *mwindow;
00081 };
00082
00083
00084
00085 #endif