10using namespace swift::misc::network;
11using namespace swift::misc::simulation;
15namespace swift::gui::settings
39 m_popupPrivateMessages =
false;
40 m_popupSupervisorMessages =
false;
41 m_popupFrequencyMessages =
false;
42 m_popupAllMessages =
false;
43 m_popupSelcalMessages =
false;
70 if (this->
popup(textMessage))
91 return QStringLiteral(
"Private: %1 supervisor: %2 frequency: %3 all: %4 focus: %5 latest 1st: %6")
void setPopupSelcalMessages(bool popup)
SELCAL messages?
bool getPopupSupervisorMessages() const
Supervisor messages?
void setStyleSheet(const QString &styleSheet)
CSS style sheet.
bool getPopupFrequencyMessages() const
Frequency messages tuned in?
void disableAllPopups()
Entirely disable.
bool focusOverlayWindow() const
Focus in the overlay window.
QVariant propertyByIndex(swift::misc::CPropertyIndexRef index) const
Property by index.
void setLatestFirst(bool latestFirst)
Latest messages 1st?
QString convertToQString(bool i18n=false) const
Cast as QString.
bool popupSupervisorMessages() const
Supervisor messages? All considered.
bool getPopupAllMessages() const
Popup all messages?
void setSupervisorMessages(bool popup)
Supervisor messages?
CTextMessageSettings()=default
Default constructor.
bool isLatestFirst() const
Latest messages 1st?
void setFocusOverlayWindows(bool focus)
Set focus in overlay window.
bool popup(const swift::misc::network::CTextMessage &textMessage) const
Popup the given message? Quick check without frequency checks.
void setPropertyByIndex(swift::misc::CPropertyIndexRef index, const QVariant &variant)
Set property by index.
bool popupFrequencyMessages() const
Frequency messages tuned in?
void setPopupAllMessages(bool popup)
All messages?
bool getPopupPrivateMessages() const
Private messages.
bool popupSelcalMessages() const
Popup SELCAL messages? All considered.
const QString & getStyleSheet() const
CSS style sheet.
bool popupPrivateMessages() const
Private messages? All considered.
void setPopupFrequencyMessages(bool popup)
Frequency messages?
ColumnIndex
Properties by index.
void setPopupPrivateMessages(bool popup)
Private messages?
Non-owning reference to a CPropertyIndex with a subset of its features.
CastType frontCasted() const
First element casted to given type, usually the PropertIndex enum.
bool isMyself() const
Myself index, used with nesting.
void setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
Set property by index.
QVariant propertyByIndex(CPropertyIndexRef index) const
Property by index.
Value object encapsulating information of a text message.
bool isPrivateMessage() const
Is private message?
const physical_quantities::CFrequency & getFrequency() const
Get frequency.
bool isRadioMessage() const
Is radio message?
bool isSelcalMessage() const
Is this a text message encapsulating a SELCAL.
bool isSupervisorMessage() const
Supervisor message?
Comprehensive information of an aircraft.
bool hasComActiveFrequency(const physical_quantities::CFrequency &comFrequency) const
Is comFrequency selected in COM1 or COM2 as active frequency (with 5 kHz spacing for ....
Free functions in swift::misc.
SWIFT_MISC_EXPORT const QString & boolToOnOff(bool v)
Bool to on/off.
SWIFT_MISC_EXPORT const QString & boolToYesNo(bool v)
Bool to yes/no.
QVariant fromValue(T &&value)
bool toBool() const const
QString toString() const const
#define SWIFT_DEFINE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template definition of mixins for a CValueObject subclass.