00001 /* 00002 * uvsim.cc 00003 * Copyright (C) Travis Ramp 2009 <travman21@soureceforge.net> 00004 * 00005 * uvsim.cc is free software: you can redistribute it and/or modify it 00006 * under the terms of the GNU General Public License as published by the 00007 * Free Software Foundation, either version 3 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * uvsim.cc is distributed in the hope that it will be useful, but 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 * See the GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along 00016 * with this program. If not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 #include <gtkmm.h> 00019 #include <string> 00020 #include "MainWindow.h" 00021 00022 using namespace uvsim; 00023 00024 int main (int argc, char * argv[]) 00025 { 00026 MainWindow * pMainWindow; //Create pointer to object pMainWindow from class MainWindow 00027 //uvsim::RealtimeThread *thread1; 00028 //pthread_t thread; 00029 Gtk::Main kit(argc,argv); 00030 std::string dataDir = DATADIR, gladeFile; 00031 gladeFile = dataDir+="/data/guiTest.glade"; 00032 std::cout << gladeFile << std::endl; 00033 Glib::RefPtr<Gtk::Builder> glade = Gtk::Builder::create_from_file(gladeFile.c_str()); //Load glade file 00034 glade->get_widget_derived("mainWindow", pMainWindow); //Load Widget "mainWindow" 00035 kit.run(*pMainWindow); //Run MainWindow 00036 return 0; 00037 } 00038 // vim:ts=4:sw=4