mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +08:00
refs #441 Rename COriginator to CIdentifier and rename COriginatorAware to CIdentifiable.
This commit is contained in:
@@ -43,7 +43,7 @@ using namespace BlackMisc::Hardware;
|
||||
*/
|
||||
SwiftGuiStd::SwiftGuiStd(BlackGui::CEnableForFramelessWindow::WindowMode windowMode, QWidget *parent) :
|
||||
QMainWindow(parent, CEnableForFramelessWindow::modeToWindowFlags(windowMode)),
|
||||
COriginatorAware(this),
|
||||
CIdentifiable(this),
|
||||
CEnableForFramelessWindow(windowMode, true, "framelessMainWindow", this),
|
||||
ui(new Ui::SwiftGuiStd)
|
||||
{
|
||||
@@ -115,7 +115,7 @@ void SwiftGuiStd::performGracefulShutdown()
|
||||
// tell context GUI is going down
|
||||
if (this->getIContextApplication())
|
||||
{
|
||||
this->getIContextApplication()->unregisterApplication(originator());
|
||||
this->getIContextApplication()->unregisterApplication(identifier());
|
||||
}
|
||||
|
||||
// allow some other parts to react
|
||||
@@ -313,7 +313,7 @@ void SwiftGuiStd::setContextAvailability()
|
||||
}
|
||||
else
|
||||
{
|
||||
this->m_coreAvailable = isMyOriginator(this->getIContextApplication()->registerApplication(getCurrentTimestampOriginator()));
|
||||
this->m_coreAvailable = isMyIdentifier(this->getIContextApplication()->registerApplication(getCurrentTimestampIdentifier()));
|
||||
}
|
||||
this->m_contextNetworkAvailable = this->m_coreAvailable || this->getIContextNetwork()->isUsingImplementingObject();
|
||||
this->m_contextAudioAvailable = this->m_coreAvailable || this->getIContextAudio()->isUsingImplementingObject();
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "blackgui/managedstatusbar.h"
|
||||
#include "blackmisc/network/textmessage.h"
|
||||
#include "blackmisc/loghandler.h"
|
||||
#include "blackmisc/originatoraware.h"
|
||||
#include "blackmisc/identifiable.h"
|
||||
#include "blacksound/soundgenerator.h"
|
||||
#include <QMainWindow>
|
||||
#include <QTextEdit>
|
||||
@@ -46,7 +46,7 @@ namespace Ui { class SwiftGuiStd; }
|
||||
//! swift GUI
|
||||
class SwiftGuiStd :
|
||||
public QMainWindow,
|
||||
public BlackMisc::COriginatorAware,
|
||||
public BlackMisc::CIdentifiable,
|
||||
public BlackGui::CEnableForFramelessWindow,
|
||||
public BlackGui::Components::CEnableForRuntime
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user