31 constexpr auto DynExpDescription =
"Highly flexible laboratory automation for dynamically changing experiments.";
44 virtual std::string
do_grouping()
const override {
return ""; }
69 constexpr auto DynExp =
":/DynExpManager/icons/DynExp.svg";
70 constexpr auto New =
":/DynExpManager/icons/Document-new.svg";
71 constexpr auto Open =
":/DynExpManager/icons/Document-open.svg";
72 constexpr auto Save =
":/DynExpManager/icons/Document-save.svg";
73 constexpr auto Delete =
":/DynExpManager/icons/Edit-delete.svg";
75 constexpr auto Instrument =
":/DynExpManager/icons/Utilities-system-monitor.svg";
76 constexpr auto Module =
":/DynExpManager/icons/Application-x-executable.svg";
77 constexpr auto UndockedWindow =
":/DynExpManager/icons/Preferences-system-windows.svg";
78 constexpr auto Undo =
":/DynExpManager/icons/Edit-undo.svg";
79 constexpr auto Ready =
":/DynExpManager/icons/Applications-system.svg";
80 constexpr auto NotReady =
":/DynExpManager/icons/Emblem-system.svg";
81 constexpr auto Running =
":/DynExpManager/icons/Media-playback-start.svg";
82 constexpr auto Stopped =
":/DynExpManager/icons/Media-playback-stop.svg";
83 constexpr auto Paused =
":/DynExpManager/icons/Media-playback-pause.svg";
84 constexpr auto Info =
":/DynExpManager/icons/Emblem-notice.svg";
85 constexpr auto Warning =
":/DynExpManager/icons/Emblem-important-yellow.svg";
86 constexpr auto Error =
":/DynExpManager/icons/Dialog-error-round.svg";
87 constexpr auto NotResponding =
":/DynExpManager/icons/Emblem-question.svg";
88 constexpr auto Network =
":/DynExpManager/icons/Internet-web-browser.svg";
89 constexpr auto Edit =
":/QModules/icons/Text-x-generic_with_pencil.svg";
98 const QColor
gray(128, 128, 128);
100 const QColor
blue(42, 130, 218);
108 QToolTip { color: #ffffff; background-color: #808080; border: 1px solid white; }\
109 QMenu::separator { height: 1px; margin-left: 5px; margin-right: 5px; background: #808080; }\
125 static const std::vector<QColor> Colors {
151 return Colors[Index % Colors.size()];
172 +
"}QPushButton:hover{" + HoverStyle +
"}";
191 constexpr int YearChar = 7;
192 constexpr int NumYearChars = 4;
195 for (
int i = YearChar + NumYearChars - 1, Multiplier = 1; i >= YearChar; i--, Multiplier *= 10)
196 result += (__DATE__[i] -
'0') * Multiplier;
Q_DECLARE_METATYPE(QTreeWidgetItem *)
constexpr int CompilationYear()
Extracts the compilation year from the DATE macro.
const QColor darkGray(53, 53, 53)
const QColor gray(128, 128, 128)
const QColor black(25, 25, 25)
const QColor green("lime")
constexpr auto GetStyleSheet()
const QColor blue(42, 130, 218)
constexpr auto Instrument
constexpr auto UndockedWindow
constexpr auto HardwareAdapter
constexpr auto NotResponding
constexpr QColor ColorFromIndex(size_t Index)
Returns the plot color from the cycle list to be assigned to the plot with index Index.
constexpr const std::vector< QColor > & GetColors()
Returns the plot color cycle list.
DynExp's user interface namespace contains user interface style definitions.
constexpr auto PushButtonDefaultStyleSheet
constexpr auto StatusBarDefaultStyleSheet
const auto PushButtonReadyStyleSheetBright
const auto PushButtonRunningStyleSheet
constexpr auto StatusBarWarningStyleSheet
constexpr auto StatusBarReadyStyleSheetBright
const auto PushButtonErrorStyleSheet
constexpr auto StatusBarRunningStyleSheet
constexpr auto StatusBarBusyStyleSheetHover
const auto PushButtonReadyStyleSheetDark
constexpr auto StatusBarReadyStyleSheetDark
constexpr auto StatusBarErrorStyleSheetHover
constexpr auto StatusBarErrorStyleSheet
QLinearGradient GetDefaultLinearGradient()
constexpr auto StatusBarWarningStyleSheetHover
constexpr auto StatusBarReadyStyleSheetHover
static auto MakePushButtonStyleSheet(const char *DefaultStyle, const char *HoverStyle)
constexpr auto StatusBarBusyStyleSheet
const auto PushButtonBusyStyleSheet
constexpr auto StatusBarRunningStyleSheetHover
const auto PushButtonWarningStyleSheet
DynExp's main namespace contains the implementation of DynExp including classes to manage resources (...
constexpr auto DefaultLocale
Default locale string.
constexpr auto DynExpName
DynExp's name string
size_t ItemIDType
ID type of objects/items managed by DynExp.
constexpr auto DynExpDescription
DynExp's description string
constexpr auto DynExpVersion
DynExp's version string
Default number separators used within DynExp.
virtual char do_decimal_point() const override
virtual std::string do_grouping() const override