|
UniWidgets
1.0.0
|
00001 #ifndef _FAILUREDIALOG_H 00002 #define _FAILUREDIALOG_H 00003 // ------------------------------------------------------------------------- 00010 // ------------------------------------------------------------------------- 00011 #include <gtkmm.h> 00012 #include <glibmm.h> 00013 #include <libglademm.h> 00014 #include <iostream> 00015 #include <ctime> 00016 // ------------------------------------------------------------------------- 00023 class FailureDialog 00024 { 00025 public: 00029 FailureDialog(Glib::RefPtr<Gnome::Glade::Xml> gxml); 00030 00031 ~FailureDialog(){}; 00032 00040 bool show (const char *command, int max_code, const char *messages[], bool show_always = false); 00041 00045 void show_simple (Glib::ustring message); 00046 00047 private: 00048 Gtk::Dialog *failure_dialog; 00049 Gtk::Label *failure_message; 00050 /* закрыть окно */ 00051 void hide(); 00052 }; 00053 00054 #endif /* _FAILUREDIALOG_H */
1.7.6.1