DynExp
Highly flexible laboratory automation for dynamically changing experiments.
DynExpDefinitions.h.in File Reference

Provides version and other meta information about DynExp as well as style definitions for the user interface. The file is processed by cmake to fill in cmake definitions. More...

Go to the source code of this file.

Classes

struct  DynExp::DefaultLocaleSeparator
 Default number separators used within DynExp. More...
 

Namespaces

 DynExp
 DynExp's main namespace contains the implementation of DynExp including classes to manage resources (DynExp objects like hardware adapters, instruments, and modules) as well as their dependencies and parameters.
 
 DynExpUI
 DynExp's user interface namespace contains user interface style definitions.
 
 DynExpUI::Icons
 Paths to icon resources contained in DynExpManager.qrc (main resources) and in QModules.qrc (module resources)
 
 DynExpUI::DarkPalette
 Styles to provide a dark user interface appearance.
 

Typedefs

using DynExp::ItemIDType = size_t
 ID type of objects/items managed by DynExp. More...
 

Enumerations

enum  : ItemIDType { DynExp::ItemIDNotSet = 0 }
 ID of an non-existent object/item. More...
 

Functions

 Q_DECLARE_METATYPE (QTreeWidgetItem *)
 
const QColor DynExpUI::DarkPalette::darkGray (53, 53, 53)
 
const QColor DynExpUI::DarkPalette::gray (128, 128, 128)
 
const QColor DynExpUI::DarkPalette::black (25, 25, 25)
 
const QColor DynExpUI::DarkPalette::blue (42, 130, 218)
 
const QColor DynExpUI::DarkPalette::green ("lime")
 
QPalette DynExpUI::DarkPalette::GetPalette ()
 
constexpr auto DynExpUI::DarkPalette::GetStyleSheet ()
 
static auto DynExpUI::MakePushButtonStyleSheet (const char *DefaultStyle, const char *HoverStyle)
 
QLinearGradient DynExpUI::GetDefaultLinearGradient ()
 
constexpr int CompilationYear ()
 Extracts the compilation year from the DATE macro. More...
 

Variables

constexpr auto DynExp::DynExpName = "DynExp"
 DynExp's name string More...
 
constexpr auto DynExp::DynExpVersion = "@PROJECT_VERSION@"
 DynExp's version string More...
 
constexpr auto DynExp::DynExpDescription = "Highly flexible laboratory automation for dynamically changing experiments."
 DynExp's description string More...
 
constexpr auto DynExp::DefaultLocale = "en_US.UTF8"
 Default locale string. More...
 
constexpr auto DynExpUI::Icons::DynExp = ":/DynExpManager/icons/DynExp.svg"
 
constexpr auto DynExpUI::Icons::New = ":/DynExpManager/icons/Document-new.svg"
 
constexpr auto DynExpUI::Icons::Open = ":/DynExpManager/icons/Document-open.svg"
 
constexpr auto DynExpUI::Icons::Save = ":/DynExpManager/icons/Document-save.svg"
 
constexpr auto DynExpUI::Icons::Delete = ":/DynExpManager/icons/Edit-delete.svg"
 
constexpr auto DynExpUI::Icons::HardwareAdapter = ":/DynExpManager/icons/Media-flash.svg"
 
constexpr auto DynExpUI::Icons::Instrument = ":/DynExpManager/icons/Utilities-system-monitor.svg"
 
constexpr auto DynExpUI::Icons::Module = ":/DynExpManager/icons/Application-x-executable.svg"
 
constexpr auto DynExpUI::Icons::UndockedWindow = ":/DynExpManager/icons/Preferences-system-windows.svg"
 
constexpr auto DynExpUI::Icons::Undo = ":/DynExpManager/icons/Edit-undo.svg"
 
constexpr auto DynExpUI::Icons::Ready = ":/DynExpManager/icons/Applications-system.svg"
 
constexpr auto DynExpUI::Icons::NotReady = ":/DynExpManager/icons/Emblem-system.svg"
 
constexpr auto DynExpUI::Icons::Running = ":/DynExpManager/icons/Media-playback-start.svg"
 
constexpr auto DynExpUI::Icons::Stopped = ":/DynExpManager/icons/Media-playback-stop.svg"
 
constexpr auto DynExpUI::Icons::Paused = ":/DynExpManager/icons/Media-playback-pause.svg"
 
constexpr auto DynExpUI::Icons::Info = ":/DynExpManager/icons/Emblem-notice.svg"
 
constexpr auto DynExpUI::Icons::Warning = ":/DynExpManager/icons/Emblem-important-yellow.svg"
 
constexpr auto DynExpUI::Icons::Error = ":/DynExpManager/icons/Dialog-error-round.svg"
 
constexpr auto DynExpUI::Icons::NotResponding = ":/DynExpManager/icons/Emblem-question.svg"
 
constexpr auto DynExpUI::Icons::Network = ":/DynExpManager/icons/Internet-web-browser.svg"
 
constexpr auto DynExpUI::Icons::Edit = ":/QModules/icons/Text-x-generic_with_pencil.svg"
 
constexpr auto DynExpUI::DefaultQChartTheme = QChart::ChartThemeDark
 
constexpr auto DynExpUI::DefaultQ3DTheme = Q3DTheme::ThemeStoneMoss
 
constexpr auto DynExpUI::PushButtonDefaultStyleSheet = "border:none;"
 
constexpr auto DynExpUI::StatusBarDefaultStyleSheet = "text-align:left center; padding-left:8px;"
 
constexpr auto DynExpUI::StatusBarReadyStyleSheetBright = "color: black;"
 
constexpr auto DynExpUI::StatusBarReadyStyleSheetDark = "color: white;"
 
constexpr auto DynExpUI::StatusBarRunningStyleSheet = "font-weight: bold; background-color:lime; color: black;"
 
constexpr auto DynExpUI::StatusBarWarningStyleSheet = "font-weight: bold; background-color: orange; color: black;"
 
constexpr auto DynExpUI::StatusBarErrorStyleSheet = "font-weight: bold; background-color: red; color: white;"
 
constexpr auto DynExpUI::StatusBarBusyStyleSheet = "font-weight: bold; color: white; background-color: #2A82DA;"
 
constexpr auto DynExpUI::StatusBarReadyStyleSheetHover = "background-color: darkgray;"
 
constexpr auto DynExpUI::StatusBarRunningStyleSheetHover = "background-color: lightgreen;"
 
constexpr auto DynExpUI::StatusBarWarningStyleSheetHover = "background-color: lightsalmon;"
 
constexpr auto DynExpUI::StatusBarErrorStyleSheetHover = "background-color: salmon;"
 
constexpr auto DynExpUI::StatusBarBusyStyleSheetHover = "background-color: #6da9e6;"
 
static const auto DynExpUI::PushButtonReadyStyleSheetBright = MakePushButtonStyleSheet(StatusBarReadyStyleSheetBright, StatusBarReadyStyleSheetHover)
 
static const auto DynExpUI::PushButtonReadyStyleSheetDark = MakePushButtonStyleSheet(StatusBarReadyStyleSheetDark, StatusBarReadyStyleSheetHover)
 
static const auto DynExpUI::PushButtonRunningStyleSheet = MakePushButtonStyleSheet(StatusBarRunningStyleSheet, StatusBarRunningStyleSheetHover)
 
static const auto DynExpUI::PushButtonWarningStyleSheet = MakePushButtonStyleSheet(StatusBarWarningStyleSheet, StatusBarWarningStyleSheetHover)
 
static const auto DynExpUI::PushButtonErrorStyleSheet = MakePushButtonStyleSheet(StatusBarErrorStyleSheet, StatusBarErrorStyleSheetHover)
 
static const auto DynExpUI::PushButtonBusyStyleSheet = MakePushButtonStyleSheet(StatusBarBusyStyleSheet, StatusBarBusyStyleSheetHover)
 

Detailed Description

Provides version and other meta information about DynExp as well as style definitions for the user interface. The file is processed by cmake to fill in cmake definitions.

Definition in file DynExpDefinitions.h.in.

Function Documentation

◆ CompilationYear()

constexpr int CompilationYear ( )
constexpr

Extracts the compilation year from the DATE macro.

Returns
Year when DynExp was built

Definition at line 149 of file DynExpDefinitions.h.in.

◆ Q_DECLARE_METATYPE()

Q_DECLARE_METATYPE ( QTreeWidgetItem *  )