main.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <tools/firestation/firestation.h>
00024 #include <libglademm/xml.h>
00025 #include <iostream>
00026
00027 using namespace std;
00028
00029 int main(int argc, char** argv)
00030 {
00031 try
00032 {
00033 Gtk::Main kit(argc, argv);
00034 #ifdef GLIBMM_EXCEPTIONS_ENABLED
00035 Glib::RefPtr<Gnome::Glade::Xml> refXml = Gnome::Glade::Xml::create(RESDIR"/guis/firestation/firestation.glade");
00036 #else
00037 std::auto_ptr<Gnome::Glade::XmlError> error;
00038 Glib::RefPtr<Gnome::Glade::Xml> refXml = Gnome::Glade::Xml::create(RESDIR"/guis/firestation/firestation.glade", "", "", error);
00039 #endif
00040 Firestation firestation(refXml);
00041 kit.run( firestation.get_window() );
00042 return 0;
00043 }
00044 catch (std::exception const& e)
00045 {
00046 std::cerr << "Error: " << e.what() << std::endl;
00047 return -1;
00048 }
00049 }