6 #ifndef SWIFT_GUI_SETTINGS_DOCKWIDGET_H
7 #define SWIFT_GUI_SETTINGS_DOCKWIDGET_H
21 namespace swift::gui::settings
30 IndexFloatingMargins = swift::misc::CPropertyIndexRef::GlobalIndexCDockWidgetSettings,
31 IndexFloatingFramelessMargins,
41 void resetMarginsToDefault();
47 void setMarginsWhenFramelessFloating(
const QMargins &margins);
50 QMargins getMarginsWhenFramelessFloating()
const;
53 void setMarginsWhenFloating(
const QMargins &margins);
56 QMargins getMarginsWhenFloating()
const;
59 void setMarginsWhenDocked(
const QMargins &margins);
62 QMargins getMarginsWhenDocked()
const;
77 QByteArray getGeometry()
const;
80 void setGeometry(
const QByteArray &ba);
83 QString convertToQString(
bool i18n =
false)
const;
86 QString convertToQString(
const QString &separator,
bool i18n =
false)
const;
95 QString m_floatingMargins {
"0:0:0:0" };
96 QString m_floatingFramelessMargins {
"0:0:0:0" };
97 QString m_dockedMargins {
"0:0:0:0" };
99 bool m_floating =
false;
100 bool m_frameless =
false;
118 static const char *
key() {
return "guidockwidget/%Application%/%OwnerName%"; }
123 static const QString name(
"Dockable widgets");
Generic ordered container with value semantics.
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
Base class for traits to be used as template argument to swift::misc::CSetting.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...