FluentUI/src/Def.h

139 lines
2.7 KiB
C
Raw Normal View History

2024-04-11 14:51:43 +08:00
#pragma once
2023-02-26 23:47:07 +08:00
#include <QObject>
2023-04-27 09:38:57 +08:00
#include <QtQml/qqml.h>
2023-02-26 23:47:07 +08:00
2024-03-31 10:59:15 +08:00
namespace FluSheetType {
2024-04-11 14:51:43 +08:00
Q_NAMESPACE
enum Position {
Left = 0x0000,
Top = 0x0001,
Right = 0x0002,
Bottom = 0x0004,
};
Q_ENUM_NS(Position)
QML_NAMED_ELEMENT(FluSheetType)
2024-03-31 10:59:15 +08:00
}
2023-11-24 15:35:40 +08:00
2023-07-18 18:24:06 +08:00
namespace FluThemeType {
2024-04-11 14:51:43 +08:00
Q_NAMESPACE
enum DarkMode {
System = 0x0000,
Light = 0x0001,
Dark = 0x0002,
};
Q_ENUM_NS(DarkMode)
QML_NAMED_ELEMENT(FluThemeType)
2023-08-11 14:31:23 +08:00
}
namespace FluTimelineType {
2024-04-11 14:51:43 +08:00
Q_NAMESPACE
enum Mode {
Left = 0x0000,
Right = 0x0001,
Alternate = 0x0002,
};
Q_ENUM_NS(Mode)
QML_NAMED_ELEMENT(FluTimelineType)
2023-07-18 18:24:06 +08:00
}
namespace FluPageType {
2024-04-11 14:51:43 +08:00
Q_NAMESPACE
enum LaunchMode {
Standard = 0x0000,
SingleTask = 0x0001,
SingleTop = 0x0002,
SingleInstance = 0x0004
};
Q_ENUM_NS(LaunchMode)
QML_NAMED_ELEMENT(FluPageType)
2023-07-18 18:24:06 +08:00
}
namespace FluWindowType {
2024-04-11 14:51:43 +08:00
Q_NAMESPACE
2024-06-28 17:09:23 +08:00
enum LaunchMode { Standard = 0x0000, SingleTask = 0x0001, SingleInstance = 0x0002 };
2024-04-11 14:51:43 +08:00
Q_ENUM_NS(LaunchMode)
QML_NAMED_ELEMENT(FluWindowType)
2023-07-18 18:24:06 +08:00
}
namespace FluTreeViewType {
2024-04-11 14:51:43 +08:00
Q_NAMESPACE
2024-06-28 17:09:23 +08:00
enum SelectionMode { None = 0x0000, Single = 0x0001, Multiple = 0x0002 };
2024-04-11 14:51:43 +08:00
Q_ENUM_NS(SelectionMode)
QML_NAMED_ELEMENT(FluTreeViewType)
2023-07-18 18:24:06 +08:00
}
2024-02-23 12:26:10 +08:00
namespace FluStatusLayoutType {
2024-04-11 14:51:43 +08:00
Q_NAMESPACE
2024-06-28 17:09:23 +08:00
enum StatusMode { Loading = 0x0000, Empty = 0x0001, Error = 0x0002, Success = 0x0004 };
2024-04-11 14:51:43 +08:00
Q_ENUM_NS(StatusMode)
QML_NAMED_ELEMENT(FluStatusLayoutType)
2023-07-18 18:24:06 +08:00
}
namespace FluContentDialogType {
2024-04-11 14:51:43 +08:00
Q_NAMESPACE
2024-06-28 17:09:23 +08:00
enum ButtonFlag { NeutralButton = 0x0001, NegativeButton = 0x0002, PositiveButton = 0x0004 };
2024-04-11 14:51:43 +08:00
Q_ENUM_NS(ButtonFlag)
QML_NAMED_ELEMENT(FluContentDialogType)
2023-07-18 18:24:06 +08:00
}
namespace FluTimePickerType {
2024-04-11 14:51:43 +08:00
Q_NAMESPACE
2024-06-28 17:09:23 +08:00
enum HourFormat { H = 0x0000, HH = 0x0001 };
2024-04-11 14:51:43 +08:00
Q_ENUM_NS(HourFormat)
QML_NAMED_ELEMENT(FluTimePickerType)
2023-07-18 18:24:06 +08:00
}
namespace FluCalendarViewType {
2024-04-11 14:51:43 +08:00
Q_NAMESPACE
2024-06-28 17:09:23 +08:00
enum DisplayMode { Month = 0x0000, Year = 0x0001, Decade = 0x0002 };
2024-04-11 14:51:43 +08:00
Q_ENUM_NS(DisplayMode)
QML_NAMED_ELEMENT(FluCalendarViewType)
2023-07-18 18:24:06 +08:00
}
namespace FluTabViewType {
2024-04-11 14:51:43 +08:00
Q_NAMESPACE
2024-06-28 17:09:23 +08:00
enum TabWidthBehavior { Equal = 0x0000, SizeToContent = 0x0001, Compact = 0x0002 };
2024-04-11 14:51:43 +08:00
Q_ENUM_NS(TabWidthBehavior)
2024-06-28 17:09:23 +08:00
enum CloseButtonVisibility { Never = 0x0000, Always = 0x0001, OnHover = 0x0002 };
2024-04-11 14:51:43 +08:00
Q_ENUM_NS(CloseButtonVisibility)
QML_NAMED_ELEMENT(FluTabViewType)
2023-07-18 18:24:06 +08:00
}
namespace FluNavigationViewType {
2024-04-11 14:51:43 +08:00
Q_NAMESPACE
2024-06-28 17:09:23 +08:00
enum DisplayMode { Open = 0x0000, Compact = 0x0001, Minimal = 0x0002, Auto = 0x0004 };
2024-04-11 14:51:43 +08:00
Q_ENUM_NS(DisplayMode)
2024-06-28 17:09:23 +08:00
enum PageMode { Stack = 0x0000, NoStack = 0x0001 };
2024-04-11 14:51:43 +08:00
Q_ENUM_NS(PageMode)
QML_NAMED_ELEMENT(FluNavigationViewType)
2023-04-19 23:53:00 +08:00
}