00001 #include "gwindow.h" 00002 #include "gwindowgui.h" 00003 #include "mwindow.h" 00004 #include "mwindowgui.h" 00005 00006 GWindow::GWindow(MWindow *mwindow) 00007 : Thread(1, 0, 0) 00008 { 00009 this->mwindow = mwindow; 00010 } 00011 00012 void GWindow::run() 00013 { 00014 gui->run_window(); 00015 } 00016 00017 void GWindow::create_objects() 00018 { 00019 int w, h; 00020 00021 00022 GWindowGUI::calculate_extents(mwindow->gui, &w, &h); 00023 gui = new GWindowGUI(mwindow, w, h); 00024 gui->create_objects(); 00025 } 00026 00027 00028
1.4.4