gwenhywfar
4.6.0beta
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
gui
fox16
fox16_gui_updater.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
begin : Fri Jan 22 2010
3
copyright : (C) 2010 by Martin Preuss
4
email : martin@libchipcard.de
5
6
***************************************************************************
7
* Please see toplevel file COPYING for license details *
8
***************************************************************************/
9
10
11
#ifdef HAVE_CONFIG_H
12
# include <config.h>
13
#endif
14
15
16
#include "
fox16_gui_updater_l.hpp
"
17
18
#include <gwenhywfar/debug.h>
19
20
21
22
23
FXDEFMAP
(
FOX16_GuiUpdater
) FOX16_GuiUpdaterMap[]={
24
FXMAPFUNC(SEL_CHORE,
FOX16_GuiUpdater::ID_CHORE
,
FOX16_GuiUpdater::onChore
),
25
};
26
27
28
FXIMPLEMENT
(
FOX16_GuiUpdater
, FXObject, FOX16_GuiUpdaterMap, ARRAYNUMBER(FOX16_GuiUpdaterMap))
29
30
31
32
FOX16_GuiUpdater
::
FOX16_GuiUpdater
()
33
:FXObject()
34
, m_guiIdleFlag(0)
35
{
36
}
37
38
39
40
FOX16_GuiUpdater::~FOX16_GuiUpdater
() {
41
}
42
43
44
45
46
void
FOX16_GuiUpdater::guiUpdate
() {
47
FXApp *a=FXApp::instance();
48
49
a->addChore(
this
,
ID_CHORE
);
50
a->flush(
true
);
51
52
m_guiIdleFlag
=0;
53
a->runUntil(
m_guiIdleFlag
);
54
}
55
56
57
58
long
FOX16_GuiUpdater::onChore
(FXObject*, FXSelector,
void
*){
59
m_guiIdleFlag
=1;
60
return
1;
61
}
62
Generated on Sun May 26 2013 16:42:53 for gwenhywfar by
1.8.1.2