Move processNextEvent() code into sub functions
This commit is contained in:
parent
396525d80f
commit
e29e58acb6
|
@ -1,3 +1,6 @@
|
|||
2016-06-25 Markus Gans <guru.mail@muenster.de>
|
||||
* Move processNextEvent() code into sub functions
|
||||
|
||||
2016-06-22 Markus Gans <guru.mail@muenster.de>
|
||||
* Adding required updateTerminal() calls for FMenuBar
|
||||
|
||||
|
|
24
src/fapp.cpp
24
src/fapp.cpp
|
@ -1218,14 +1218,8 @@ int FApplication::processTimerEvent()
|
|||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
bool FApplication::processNextEvent()
|
||||
void FApplication::processTerminalUpdate()
|
||||
{
|
||||
int num_events = 0;
|
||||
|
||||
processKeyboardEvent();
|
||||
processMouseEvent();
|
||||
processResizeEvent();
|
||||
|
||||
if ( terminal_update_pending )
|
||||
{
|
||||
if ( ! input_data_pending )
|
||||
|
@ -1245,7 +1239,11 @@ bool FApplication::processNextEvent()
|
|||
else
|
||||
skipped_terminal_update++;
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
void FApplication::processCloseWidget()
|
||||
{
|
||||
if ( close_widget && ! close_widget->empty() )
|
||||
{
|
||||
widgetList::iterator iter;
|
||||
|
@ -1258,6 +1256,18 @@ bool FApplication::processNextEvent()
|
|||
}
|
||||
close_widget->clear();
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
bool FApplication::processNextEvent()
|
||||
{
|
||||
int num_events = 0;
|
||||
|
||||
processKeyboardEvent();
|
||||
processMouseEvent();
|
||||
processResizeEvent();
|
||||
processTerminalUpdate();
|
||||
processCloseWidget();
|
||||
|
||||
sendQueuedEvents();
|
||||
num_events += processTimerEvent();
|
||||
|
|
|
@ -137,6 +137,8 @@ class FApplication : public FWidget
|
|||
void processMouseEvent();
|
||||
void processResizeEvent();
|
||||
int processTimerEvent();
|
||||
void processTerminalUpdate();
|
||||
void processCloseWidget();
|
||||
bool processNextEvent();
|
||||
friend class FDialog;
|
||||
friend class FWidget;
|
||||
|
|
Loading…
Reference in New Issue