00001 /**************************************************************************** 00002 ** ui.h extension file, included from the uic-generated form implementation. 00003 ** 00004 ** If you want to add, delete, or rename functions or slots, use 00005 ** Qt Designer to update this file, preserving your code. 00006 ** 00007 ** You should not define a constructor or destructor in this file. 00008 ** Instead, write your code in functions called init() and destroy(). 00009 ** These will automatically be called by the form's constructor and 00010 ** destructor. 00011 *****************************************************************************/ 00012 #include "Util/Timer.H" 00013 #include "Util/Types.H" 00014 #include "Util/log.H" 00015 void BeoBotQtMainForm::init() 00016 { 00017 startTimer(100); 00018 } 00019 00020 void BeoBotQtMainForm::displayFunc() 00021 { 00022 float fx, fy; 00023 map->returnSelectedCoord(fx, fy); 00024 displayCoord->setText(QString(sformat("x:%f y:%f", fx, fy))); 00025 } 00026 00027 void BeoBotQtMainForm::timerEvent( QTimerEvent *e ) 00028 { 00029 displayFunc(); 00030 }