00001 #ifndef QUESTION_H 00002 #define QUESTION_H 00003 00004 #include "guicast.h" 00005 #include "mwindow.inc" 00006 00007 class QuestionWindow : public BC_Window 00008 { 00009 public: 00010 QuestionWindow(MWindow *mwindow); 00011 ~QuestionWindow(); 00012 00013 int create_objects(char *string, int use_cancel); 00014 MWindow *mwindow; 00015 }; 00016 00017 class QuestionYesButton : public BC_GenericButton 00018 { 00019 public: 00020 QuestionYesButton(MWindow *mwindow, QuestionWindow *window, int x, int y); 00021 00022 int handle_event(); 00023 int keypress_event(); 00024 00025 QuestionWindow *window; 00026 }; 00027 00028 class QuestionNoButton : public BC_GenericButton 00029 { 00030 public: 00031 QuestionNoButton(MWindow *mwindow, QuestionWindow *window, int x, int y); 00032 00033 int handle_event(); 00034 int keypress_event(); 00035 00036 QuestionWindow *window; 00037 }; 00038 00039 #endif
1.5.5