00001 #ifndef FLIPWINDOW_H 00002 #define FLIPWINDOW_H 00003 00004 #include "bcbase.h" 00005 00006 class InvertThread; 00007 class InvertWindow; 00008 00009 #include "filexml.h" 00010 #include "mutex.h" 00011 #include "invert.h" 00012 00013 class InvertThread : public Thread 00014 { 00015 public: 00016 InvertThread(InvertMain *client); 00017 ~InvertThread(); 00018 00019 void run(); 00020 00021 Mutex gui_started; // prevent loading data until the GUI is started 00022 InvertMain *client; 00023 InvertWindow *window; 00024 }; 00025 00026 class InvertToggle; 00027 00028 class InvertWindow : public BC_Window 00029 { 00030 public: 00031 InvertWindow(InvertMain *client); 00032 ~InvertWindow(); 00033 00034 int create_objects(); 00035 int close_event(); 00036 00037 InvertMain *client; 00038 InvertToggle *invert; 00039 }; 00040 00041 class InvertToggle : public BC_CheckBox 00042 { 00043 public: 00044 InvertToggle(InvertMain *client, int *output, int x, int y); 00045 ~InvertToggle(); 00046 int handle_event(); 00047 00048 InvertMain *client; 00049 int *output; 00050 }; 00051 00052 00053 #endif
1.5.5