Added FApplication::processExternalUserEvent()

This commit is contained in:
Markus Gans 2020-05-26 21:55:22 +02:00
parent 45ddbd88d3
commit a0e1115ff6
3 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,8 @@
2020-05-26 Markus Gans <guru.mail@muenster.de>
* FWidgetColors now uses polymorphism, so you can now easily
create your own widget color theme
* FApplication has got the new virtual method processExternalUserEvent()
for user code
2020-05-24 Markus Gans <guru.mail@muenster.de>
* New class FStringStream implements input and output operations

View File

@ -262,6 +262,12 @@ bool FApplication::removeQueuedEvent (const FObject* receiver)
return retval;
}
//----------------------------------------------------------------------
void FApplication::processExternalUserEvent()
{
// This method can be overloaded and replaced by own code
}
//----------------------------------------------------------------------
FWidget* FApplication::processParameters (const int& argc, char* argv[])
{
@ -1154,6 +1160,7 @@ bool FApplication::processNextEvent()
processTerminalUpdate();
processCloseWidget();
processLogger();
processExternalUserEvent();
sendQueuedEvents();
num_events += processTimerEvent();

View File

@ -129,6 +129,7 @@ class FApplication : public FWidget
void sendQueuedEvents();
bool eventInQueue();
bool removeQueuedEvent (const FObject*);
virtual void processExternalUserEvent();
static FWidget* processParameters (const int&, char*[]);
static void showParameterUsage ()
#if defined(__clang__) || defined(__GNUC__)