00001 /* 00002 ClanGUI, copyrights by various people. Have a look in the CREDITS file. 00003 00004 This sourcecode is distributed using the Library GNU Public Licence, 00005 version 2 or (at your option) any later version. Please read LICENSE 00006 for details. 00007 */ 00008 00009 #ifndef header_dialog_generic 00010 #define header_dialog_generic 00011 00012 #include "API/GUI/messagebox.h" 00013 #include "API/GUI/button.h" 00014 #include "API/GUI/label.h" 00015 00016 class CL_MessageBox_Generic 00017 { 00018 public: 00019 static CL_ComponentOptions create_options( 00020 const std::string &title, 00021 const std::string &text, 00022 const std::string &button1, 00023 const std::string &button2, 00024 const std::string &button3); 00025 00026 CL_MessageBox_Generic(CL_MessageBox *self, const CL_ComponentOptions &options, CL_StyleManager *style); 00027 ~CL_MessageBox_Generic() {}; 00028 00029 void set_text(const std::string &text); 00030 00031 std::string text; 00032 00033 CL_MessageBox *messagebox; 00034 00035 CL_Label *label_text; 00036 CL_Button *button[3]; 00037 00038 CL_Signal_v0 sig_button[3]; 00039 00040 CL_Slot slot_on_button[3]; 00041 void on_button(int button); 00042 00043 int result_button; 00044 }; 00045 00046 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001