00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <gtkmm.h>
00024 #include <nobug.h>
00025
00026 #ifdef ENABLE_NLS
00027 # include <libintl.h>
00028 #endif
00029
00030 #include "gtk-lumiera.hpp"
00031 #include "window-manager.hpp"
00032 #include "workspace/workspace-window.hpp"
00033 #include "model/project.hpp"
00034
00035 extern "C" {
00036 #include "common/interface.h"
00037 }
00038
00039 NOBUG_CPP_DEFINE_FLAG(gui);
00040
00041 using namespace Gtk;
00042 using namespace Glib;
00043 using namespace gui;
00044 using namespace gui::workspace;
00045 using namespace gui::model;
00046
00047 GtkLumiera the_application;
00048
00049 int
00050 main (int argc, char *argv[])
00051 {
00052 return the_application.main(argc, argv);
00053 }
00054
00055
00056
00057 namespace gui {
00058
00059 int
00060 GtkLumiera::main(int argc, char *argv[])
00061 {
00062 NOBUG_INIT;
00063
00064 Main kit(argc, argv);
00065
00066 Glib::set_application_name(AppTitle);
00067
00068 Project project;
00069 WindowManager window_manager;
00070
00071 window_manager.set_theme("lumiera_ui.rc");
00072
00073 WorkspaceWindow main_window(&project);
00074
00075 kit.run(main_window);
00076 }
00077
00078 Glib::ustring
00079 GtkLumiera::get_home_data_path()
00080 {
00081 const ustring app_name("lumiera");
00082 const ustring path(Glib::get_home_dir());
00083 return ustring::compose("%1/.%2", path, app_name);
00084 }
00085
00086 GtkLumiera&
00087 application()
00088 {
00089 return the_application;
00090 }
00091
00092 }
00093
00094