mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
Formatting, added icons for callsign
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||||
* contained in the LICENSE file.
|
* contained in the LICENSE file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
* contained in the LICENSE file.
|
* contained in the LICENSE file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//! \file
|
||||||
|
|
||||||
#ifndef BLACKCORE_CONTEXT_H
|
#ifndef BLACKCORE_CONTEXT_H
|
||||||
#define BLACKCORE_CONTEXT_H
|
#define BLACKCORE_CONTEXT_H
|
||||||
|
|
||||||
|
|||||||
@@ -95,9 +95,9 @@ namespace BlackCore
|
|||||||
*/
|
*/
|
||||||
void CContextNetwork::gracefulShutdown()
|
void CContextNetwork::gracefulShutdown()
|
||||||
{
|
{
|
||||||
if (this->m_vatsimBookingReader) this->m_vatsimBookingReader->quit();
|
if (this->m_vatsimBookingReader) { this->m_vatsimBookingReader->quit(); }
|
||||||
if (this->m_vatsimDataFileReader) this->m_vatsimDataFileReader->quit();
|
if (this->m_vatsimDataFileReader) { this->m_vatsimDataFileReader->quit(); }
|
||||||
if (this->isConnected()) this->disconnectFromNetwork();
|
if (this->isConnected()) { this->disconnectFromNetwork(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ namespace BlackGui
|
|||||||
enum SettingTab
|
enum SettingTab
|
||||||
{
|
{
|
||||||
SettingTabNetwork = 0,
|
SettingTabNetwork = 0,
|
||||||
SettingTabAircraft,
|
|
||||||
SettingTabAircraftAudio,
|
SettingTabAircraftAudio,
|
||||||
SettingTabSimulator,
|
SettingTabSimulator,
|
||||||
SettingTabGui,
|
SettingTabGui,
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ namespace BlackMisc
|
|||||||
if ("FSS" == sfx) { return CIconList::iconByIndex(CIcons::NetworkRoleFss); }
|
if ("FSS" == sfx) { return CIconList::iconByIndex(CIcons::NetworkRoleFss); }
|
||||||
if ("ATIS" == sfx) { return CIconList::iconByIndex(CIcons::AviationAtis); }
|
if ("ATIS" == sfx) { return CIconList::iconByIndex(CIcons::AviationAtis); }
|
||||||
if ("EXAM" == sfx) { return CIconList::iconByIndex(CIcons::NetworkRoleMnt); }
|
if ("EXAM" == sfx) { return CIconList::iconByIndex(CIcons::NetworkRoleMnt); }
|
||||||
if ("VATSIM" == sfx) { return CIconList::iconByIndex(CIcons::NetworkVatsimLogo); }
|
if ("VATSIM" == sfx) { return CIconList::iconByIndex(CIcons::NetworkVatsimLogoWhite); }
|
||||||
return CIconList::iconByIndex(CIcons::NetworkRoleUnknown);
|
return CIconList::iconByIndex(CIcons::NetworkRoleUnknown);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -85,6 +85,8 @@
|
|||||||
<file>icons/vatsim/SUP.png</file>
|
<file>icons/vatsim/SUP.png</file>
|
||||||
<file>icons/vatsim/VatsimLogo16.png</file>
|
<file>icons/vatsim/VatsimLogo16.png</file>
|
||||||
<file>icons/vatsim/VatsimLogo32.png</file>
|
<file>icons/vatsim/VatsimLogo32.png</file>
|
||||||
|
<file>icons/vatsim/VatsimLogoWhite16.png</file>
|
||||||
|
<file>icons/vatsim/VatsimLogoWhite32.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/diagona">
|
<qresource prefix="/diagona">
|
||||||
<file>icons/diagona/icons/application-cloud.png</file>
|
<file>icons/diagona/icons/application-cloud.png</file>
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ namespace BlackMisc
|
|||||||
static const CIconList icons(
|
static const CIconList icons(
|
||||||
{
|
{
|
||||||
// keep indexes alphabetically sorted and in sync with CIcons
|
// keep indexes alphabetically sorted and in sync with CIcons
|
||||||
|
// req. for "iconByIndex"
|
||||||
CIcon(CIcons::ApplicationIconAircrafts, "aircrafts"),
|
CIcon(CIcons::ApplicationIconAircrafts, "aircrafts"),
|
||||||
CIcon(CIcons::ApplicationIconAtc, "ATC"),
|
CIcon(CIcons::ApplicationIconAtc, "ATC"),
|
||||||
CIcon(CIcons::ApplicationIconAudio, "audio"),
|
CIcon(CIcons::ApplicationIconAudio, "audio"),
|
||||||
@@ -76,6 +77,7 @@ namespace BlackMisc
|
|||||||
CIcon(CIcons::NetworkRoleTower, "ATC tower"),
|
CIcon(CIcons::NetworkRoleTower, "ATC tower"),
|
||||||
CIcon(CIcons::NetworkRoleUnknown, "unknown"),
|
CIcon(CIcons::NetworkRoleUnknown, "unknown"),
|
||||||
CIcon(CIcons::NetworkVatsimLogo, "VATSIM"),
|
CIcon(CIcons::NetworkVatsimLogo, "VATSIM"),
|
||||||
|
CIcon(CIcons::NetworkVatsimLogoWhite, "VATSIM"),
|
||||||
CIcon(CIcons::NotSet, "?"),
|
CIcon(CIcons::NotSet, "?"),
|
||||||
CIcon(CIcons::StandardIconAppAircrafts16, "aircrafts"),
|
CIcon(CIcons::StandardIconAppAircrafts16, "aircrafts"),
|
||||||
CIcon(CIcons::StandardIconAppAtc16, "ATC"),
|
CIcon(CIcons::StandardIconAppAtc16, "ATC"),
|
||||||
|
|||||||
@@ -463,6 +463,18 @@ namespace BlackMisc
|
|||||||
return pm;
|
return pm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const QPixmap &CIcons::vatsimLogoWhite16()
|
||||||
|
{
|
||||||
|
static const QPixmap pm(":/vatsim/icons/vatsim/VatsimLogoWhite16.png");
|
||||||
|
return pm;
|
||||||
|
}
|
||||||
|
|
||||||
|
const QPixmap &CIcons::vatsimLogoWhite32()
|
||||||
|
{
|
||||||
|
static const QPixmap pm(":/vatsim/icons/vatsim/VatsimLogoWhite32.png");
|
||||||
|
return pm;
|
||||||
|
}
|
||||||
|
|
||||||
const QPixmap &CIcons::capabilityVoice()
|
const QPixmap &CIcons::capabilityVoice()
|
||||||
{
|
{
|
||||||
static const QPixmap pm(":/diagona/icons/diagona/icons/headphone.png");
|
static const QPixmap pm(":/diagona/icons/diagona/icons/headphone.png");
|
||||||
@@ -537,6 +549,7 @@ namespace BlackMisc
|
|||||||
case NetworkRoleTower: return roleTower();
|
case NetworkRoleTower: return roleTower();
|
||||||
case NetworkRoleUnknown: return roleUnknown();
|
case NetworkRoleUnknown: return roleUnknown();
|
||||||
case NetworkVatsimLogo: return vatsimLogo16();
|
case NetworkVatsimLogo: return vatsimLogo16();
|
||||||
|
case NetworkVatsimLogoWhite: return vatsimLogoWhite16();
|
||||||
case NotSet: return empty();
|
case NotSet: return empty();
|
||||||
case StandardIconAppAircrafts16: return appAircrafts16();
|
case StandardIconAppAircrafts16: return appAircrafts16();
|
||||||
case StandardIconAppAtc16: return appAtc16();
|
case StandardIconAppAtc16: return appAtc16();
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ namespace BlackMisc
|
|||||||
NetworkRoleTower,
|
NetworkRoleTower,
|
||||||
NetworkRoleUnknown,
|
NetworkRoleUnknown,
|
||||||
NetworkVatsimLogo,
|
NetworkVatsimLogo,
|
||||||
|
NetworkVatsimLogoWhite,
|
||||||
NotSet,
|
NotSet,
|
||||||
StandardIconAppAircrafts16,
|
StandardIconAppAircrafts16,
|
||||||
StandardIconAppAtc16,
|
StandardIconAppAtc16,
|
||||||
@@ -462,6 +463,12 @@ namespace BlackMisc
|
|||||||
//! VATSIM logo
|
//! VATSIM logo
|
||||||
static const QPixmap &vatsimLogo32();
|
static const QPixmap &vatsimLogo32();
|
||||||
|
|
||||||
|
//! VATSIM logo
|
||||||
|
static const QPixmap &vatsimLogoWhite16();
|
||||||
|
|
||||||
|
//! VATSIM logo
|
||||||
|
static const QPixmap &vatsimLogoWhite32();
|
||||||
|
|
||||||
//! Full voice capability
|
//! Full voice capability
|
||||||
static const QPixmap &capabilityVoice();
|
static const QPixmap &capabilityVoice();
|
||||||
|
|
||||||
|
|||||||
BIN
src/blackmisc/icons/vatsim/VatsimLogoWhite16.png
Normal file
BIN
src/blackmisc/icons/vatsim/VatsimLogoWhite16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 819 B |
BIN
src/blackmisc/icons/vatsim/VatsimLogoWhite32.png
Normal file
BIN
src/blackmisc/icons/vatsim/VatsimLogoWhite32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
Reference in New Issue
Block a user