better name for the interface function actually to launch the UI
This commit is contained in:
parent
4fc1126a28
commit
5e9b3be985
3 changed files with 9 additions and 9 deletions
|
|
@ -61,7 +61,7 @@ namespace gui {
|
|||
: theGUI_("lumieraorg_Gui", 1, 1, "lumieraorg_GuiStarterPlugin") // load GuiStarterPlugin
|
||||
{
|
||||
ASSERT (theGUI_);
|
||||
bool res = this->kickOff (terminationHandle);
|
||||
bool res = this->launchUI (terminationHandle);
|
||||
|
||||
if (!res || lumiera_error_peek())
|
||||
throw lumiera::error::Fatal("failed to bring up GUI",lumiera_error());
|
||||
|
|
@ -70,9 +70,9 @@ namespace gui {
|
|||
~GuiRunner () { }
|
||||
|
||||
|
||||
bool kickOff (Subsys::SigTerm& terminationHandle)
|
||||
bool launchUI (Subsys::SigTerm& terminationHandle) override
|
||||
{
|
||||
return theGUI_->kickOff (reinterpret_cast<void*> (&terminationHandle));
|
||||
return theGUI_->launchUI (reinterpret_cast<void*> (&terminationHandle));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ namespace gui {
|
|||
* This is an facade interface to the GUI subsystem, but it is setup
|
||||
* somewhat special, as its sole purpose is to expose the subsystem
|
||||
* descriptor, which, when started, loads the GUI as a plugin and
|
||||
* invokes \c kickOff(term) there. For the implementation see
|
||||
* invokes `launchUI(term)` there. For the implementation see
|
||||
* gui::GuiRunner (guifacade.cpp) and guistart.cpp (the plugin).
|
||||
*
|
||||
* @note this facade is intended to be used by Lumiera main solely.
|
||||
|
|
@ -99,7 +99,7 @@ namespace gui {
|
|||
* @internal this function is invoked automatically during the GUI
|
||||
* loading and startup process. Don't call it manually.
|
||||
*/
|
||||
virtual bool kickOff (lumiera::Subsys::SigTerm&) =0;
|
||||
virtual bool launchUI (lumiera::Subsys::SigTerm&) =0;
|
||||
|
||||
|
||||
protected:
|
||||
|
|
@ -108,7 +108,7 @@ namespace gui {
|
|||
|
||||
/** interface of the GuiStarterPlugin */
|
||||
LUMIERA_INTERFACE_DECLARE (lumieraorg_Gui, 1,
|
||||
LUMIERA_INTERFACE_SLOT (bool, kickOff, (void*))
|
||||
LUMIERA_INTERFACE_SLOT (bool, launchUI, (void*))
|
||||
);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ namespace gui {
|
|||
|
||||
|
||||
bool
|
||||
kickOff (Subsys::SigTerm& terminationHandle)
|
||||
launchUI (Subsys::SigTerm& terminationHandle)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -245,10 +245,10 @@ extern "C" { /* ================== define a lumieraorg_Gui instance ============
|
|||
, LUMIERA_INTERFACE_REF(lumieraorg_interfacedescriptor, 0, lumieraorg_GuiStarterPlugin_descriptor)
|
||||
, NULL /* on open */
|
||||
, NULL /* on close */
|
||||
, LUMIERA_INTERFACE_INLINE (kickOff,
|
||||
, LUMIERA_INTERFACE_INLINE (launchUI,
|
||||
bool, (void* termSig),
|
||||
{
|
||||
return gui::kickOff (*reinterpret_cast<Subsys::SigTerm *> (termSig));
|
||||
return gui::launchUI (*reinterpret_cast<Subsys::SigTerm *> (termSig));
|
||||
}
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue