mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
committed by
Mathew Sutcliffe
parent
bcb00b1b91
commit
52f0756597
@@ -26,6 +26,7 @@ using namespace BlackGui;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
//! [CSwiftGuiStdApplication]
|
||||
QApplication qa(argc, argv);
|
||||
CGuiApplication a("swift core", CIcons::swiftNova24());
|
||||
a.addWindowStateOption();
|
||||
@@ -40,6 +41,7 @@ int main(int argc, char *argv[])
|
||||
CCoreFacadeConfig::forCoreAllLocalInDBus(dBusAdress) :
|
||||
CCoreFacadeConfig::forCoreAllLocalInDBusNoAudio(dBusAdress));
|
||||
a.start();
|
||||
//! [CSwiftGuiStdApplication]
|
||||
|
||||
if (!QSystemTrayIcon::isSystemTrayAvailable())
|
||||
{
|
||||
|
||||
@@ -22,7 +22,9 @@
|
||||
|
||||
namespace Ui { class CSwiftCore; }
|
||||
|
||||
//! swift core control
|
||||
/*!
|
||||
* swift core control GUI
|
||||
*/
|
||||
class CSwiftCore :
|
||||
public BlackGui::CSystemTrayWindow,
|
||||
public BlackGui::IMainWindowAccess,
|
||||
@@ -44,7 +46,7 @@ private slots:
|
||||
void ps_stopCorePressed();
|
||||
void ps_appendLogMessage(const BlackMisc::CStatusMessage &message);
|
||||
void ps_p2pModeToggled(bool checked);
|
||||
//! }@
|
||||
//! @}
|
||||
|
||||
//! Style sheet has changed
|
||||
virtual void ps_onStyleSheetsChanged();
|
||||
@@ -56,7 +58,7 @@ private:
|
||||
void initLogDisplay();
|
||||
void initStyleSheet();
|
||||
void initDBusMode();
|
||||
//! }@
|
||||
//! @}
|
||||
|
||||
void startCore(const QString &dBusAdress);
|
||||
void stopCore();
|
||||
|
||||
Reference in New Issue
Block a user