/home/fwph/code/wurde/modules/eye/GUI.cpp

Go to the documentation of this file.
00001 // generated by Fast Light User Interface Designer (fluid) version 1.0107
00002 
00003 #include "GUI.h"
00004 
00005 GuiControl * GUI::make_view_window() {
00006   Fl_Double_Window* w;
00007   { Fl_Double_Window* o = mViewWindow = new Fl_Double_Window(350, 270, "The Eye");
00008     w = o;
00009     o->user_data((void*)(this));
00010     mViewBox = new Fl_Box(15, 15, 320, 240, "");
00011     o->end();
00012   }
00013   return new GuiControl();
00014 }
00015 
00016 GUI::GUI() {
00017   mGuiControl = make_view_window();
00018 mViewWindow->show();
00019 mGuiControl->SetUI(this);
00020 gettimeofday(&mPreTime, NULL);
00021 }
00022 
00023 void GUI::Tick() {
00024   //char asdf[256];
00025 //sprintf(asdf, "Tick: %i\n");
00026 //mStatusBox->insert(asdf);
00027 //mStatusBox->move_up();
00028 
00029 gettimeofday(&mPostTime, NULL);
00030 mDTime = (mPostTime.tv_sec - mPreTime.tv_sec) + (mPostTime.tv_usec - mPreTime.tv_usec) / 1000.0;
00031 
00032 //QueryPerformanceCounter(&mPostTime);
00033 //mDTime = (mPostTime.QuadPart - mPreTime.QuadPart) * 1.0 / mFrequency.QuadPart;
00034 
00035 mGuiControl->Tick(mDTime);
00036 //mWorldView->SetWindowPosition(mViewWindow->x(), mViewWindow->y());
00037 mPreTime = mPostTime;
00038 }
00039 
00040 GUI::~GUI() {
00041   if(mGuiControl) {
00042         delete mGuiControl;
00043         mGuiControl = NULL;
00044 }
00045 }

Generated on Thu Feb 1 15:31:52 2007 for WURDE by  doxygen 1.5.1