Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifdef HAVE_CONFIG_H
00012 # include <config.h>
00013 #endif
00014
00015
00016 #include "fox16_gui_updater_l.hpp"
00017
00018 #include <gwenhywfar/debug.h>
00019
00020
00021
00022
00023 FXDEFMAP(FOX16_GuiUpdater) FOX16_GuiUpdaterMap[]={
00024 FXMAPFUNC(SEL_CHORE, FOX16_GuiUpdater::ID_CHORE, FOX16_GuiUpdater::onChore),
00025 };
00026
00027
00028 FXIMPLEMENT(FOX16_GuiUpdater, FXObject, FOX16_GuiUpdaterMap, ARRAYNUMBER(FOX16_GuiUpdaterMap))
00029
00030
00031
00032 FOX16_GuiUpdater::FOX16_GuiUpdater()
00033 :FXObject()
00034 , m_guiIdleFlag(0)
00035 {
00036 }
00037
00038
00039
00040 FOX16_GuiUpdater::~FOX16_GuiUpdater() {
00041 }
00042
00043
00044
00045
00046 void FOX16_GuiUpdater::guiUpdate() {
00047 FXApp *a=FXApp::instance();
00048
00049 a->addChore(this, ID_CHORE);
00050 a->flush(true);
00051
00052 m_guiIdleFlag=0;
00053 a->runUntil(m_guiIdleFlag);
00054 }
00055
00056
00057
00058 long FOX16_GuiUpdater::onChore(FXObject*, FXSelector, void*){
00059 m_guiIdleFlag=1;
00060 return 1;
00061 }
00062