mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T203, OS icons
(icons from wikipedia marked as public domain)
This commit is contained in:
@@ -576,4 +576,9 @@
|
||||
<file>icons/famfamfam/icons/silk/controller_delete.png</file>
|
||||
<file>icons/famfamfam/icons/silk/controller_error.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/os">
|
||||
<file>icons/os/linux_24.png</file>
|
||||
<file>icons/os/macos_24.png</file>
|
||||
<file>icons/os/windows_24.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@@ -58,8 +58,8 @@ namespace BlackMisc
|
||||
* the derived class uses this macro to disambiguate the inherited members.
|
||||
*/
|
||||
# define BLACKMISC_DECLARE_USING_MIXIN_ICON(DERIVED) \
|
||||
using ::BlackMisc::Mixin::Icon<DERIVED>::toIcon; \
|
||||
using ::BlackMisc::Mixin::Icon<DERIVED>::toPixmap;
|
||||
using ::BlackMisc::Mixin::Icon<DERIVED>::toIcon; \
|
||||
using ::BlackMisc::Mixin::Icon<DERIVED>::toPixmap;
|
||||
} // Mixin
|
||||
|
||||
//! Value object for icons. An icon is stored in the global icon repository and
|
||||
|
||||
@@ -95,7 +95,11 @@ namespace BlackMisc
|
||||
CIcon(CIcons::NetworkVatsimLogo, "VATSIM"),
|
||||
CIcon(CIcons::NetworkVatsimLogoWhite, "VATSIM"),
|
||||
CIcon(CIcons::NotSet, "?"),
|
||||
CIcon(CIcons::StandardIconAppAircrafts16, "aircrafts"),
|
||||
CIcon(CIcons::OSAll, "All OS"),
|
||||
CIcon(CIcons::OSLinux, "Linux"),
|
||||
CIcon(CIcons::OSMacOs, "Mac OS"),
|
||||
CIcon(CIcons::OSWindows, "Windows"),
|
||||
CIcon(CIcons::StandardIconAppAircraft16, "aircraft"),
|
||||
CIcon(CIcons::StandardIconAppAtc16, "ATC"),
|
||||
CIcon(CIcons::StandardIconAppFlightPlan16, "flight plan"),
|
||||
CIcon(CIcons::StandardIconAppLog16, "log"),
|
||||
|
||||
@@ -472,6 +472,29 @@ namespace BlackMisc
|
||||
return pm;
|
||||
}
|
||||
|
||||
const QPixmap &CIcons::osAll()
|
||||
{
|
||||
return empty16();
|
||||
}
|
||||
|
||||
const QPixmap &CIcons::osLinux()
|
||||
{
|
||||
static const QPixmap pm(":/os/icons/os/linux_24.png");
|
||||
return pm;
|
||||
}
|
||||
|
||||
const QPixmap &CIcons::osMac()
|
||||
{
|
||||
static const QPixmap pm(":/os/icons/os/macos_24.png");
|
||||
return pm;
|
||||
}
|
||||
|
||||
const QPixmap &CIcons::osWindows()
|
||||
{
|
||||
static const QPixmap pm(":/os/icons/os/windows_24.png");
|
||||
return pm;
|
||||
}
|
||||
|
||||
const QPixmap &CIcons::preloader64()
|
||||
{
|
||||
static const QPixmap pm(":/preloaders/icons/preloaders/FillingRing64.gif");
|
||||
@@ -1071,7 +1094,11 @@ namespace BlackMisc
|
||||
case NetworkVatsimLogo: return vatsimLogo16();
|
||||
case NetworkVatsimLogoWhite: return vatsimLogoWhite16();
|
||||
case NotSet: return empty();
|
||||
case StandardIconAppAircrafts16: return appAircraft16();
|
||||
case OSAll: return osAll();
|
||||
case OSLinux: return osLinux();
|
||||
case OSMacOs: return osMac();
|
||||
case OSWindows: return osWindows();
|
||||
case StandardIconAppAircraft16: return appAircraft16();
|
||||
case StandardIconAppAtc16: return appAtc16();
|
||||
case StandardIconAppFlightPlan16: return appFlightPlan16();
|
||||
case StandardIconAppLog16: return appLog16();
|
||||
@@ -1118,6 +1145,8 @@ namespace BlackMisc
|
||||
case StandardIconInfo16: return info16();
|
||||
case StandardIconJoystick16: return joystick16();
|
||||
case StandardIconLoad16: return load16();
|
||||
case StandardIconLockClosed16: return lockClosed16();
|
||||
case StandardIconLockOpen16: return lockOpen16();
|
||||
case StandardIconMonitorError16: return monitorError16();
|
||||
case StandardIconPaintCan16: return paintCan16();
|
||||
case StandardIconPaperPlane16: return paperPlane16();
|
||||
|
||||
@@ -89,7 +89,11 @@ namespace BlackMisc
|
||||
NetworkVatsimLogo,
|
||||
NetworkVatsimLogoWhite,
|
||||
NotSet,
|
||||
StandardIconAppAircrafts16,
|
||||
OSAll,
|
||||
OSLinux,
|
||||
OSMacOs,
|
||||
OSWindows,
|
||||
StandardIconAppAircraft16,
|
||||
StandardIconAppAtc16,
|
||||
StandardIconAppFlightPlan16,
|
||||
StandardIconAppLog16,
|
||||
@@ -440,6 +444,22 @@ namespace BlackMisc
|
||||
//! Database table
|
||||
static const QPixmap &databaseTable16();
|
||||
|
||||
// --------------------------------------------------
|
||||
// -- OS icons
|
||||
// --------------------------------------------------
|
||||
|
||||
//! All OS
|
||||
static const QPixmap &osAll();
|
||||
|
||||
//! Linux
|
||||
static const QPixmap &osLinux();
|
||||
|
||||
//! MacOS
|
||||
static const QPixmap &osMac();
|
||||
|
||||
//! Windows
|
||||
static const QPixmap &osWindows();
|
||||
|
||||
// --------------------------------------------------
|
||||
// -- Preloader icons
|
||||
// --------------------------------------------------
|
||||
|
||||
BIN
src/blackmisc/icons/os/linux_24.png
Normal file
BIN
src/blackmisc/icons/os/linux_24.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/blackmisc/icons/os/macos_24.png
Normal file
BIN
src/blackmisc/icons/os/macos_24.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 564 B |
BIN
src/blackmisc/icons/os/windows_24.png
Normal file
BIN
src/blackmisc/icons/os/windows_24.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 757 B |
Reference in New Issue
Block a user