FluentUI/src/Def.h

179 lines
3.0 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
enum LaunchMode {
Standard = 0x0000,
SingleTask = 0x0001,
SingleInstance = 0x0002
};
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
enum SelectionMode {
None = 0x0000,
Single = 0x0001,
Multiple = 0x0002
};
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
enum StatusMode {
Loading = 0x0000,
Empty = 0x0001,
Error = 0x0002,
Success = 0x0004
};
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
enum ButtonFlag {
NeutralButton = 0x0001,
NegativeButton = 0x0002,
PositiveButton = 0x0004
};
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
enum HourFormat {
H = 0x0000,
HH = 0x0001
};
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
enum DisplayMode {
Month = 0x0000,
Year = 0x0001,
Decade = 0x0002
};
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
enum TabWidthBehavior {
Equal = 0x0000,
SizeToContent = 0x0001,
Compact = 0x0002
};
Q_ENUM_NS(TabWidthBehavior)
enum CloseButtonVisibility {
Never = 0x0000,
Always = 0x0001,
OnHover = 0x0002
};
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
enum DisplayMode {
Open = 0x0000,
Compact = 0x0001,
Minimal = 0x0002,
Auto = 0x0004
};
Q_ENUM_NS(DisplayMode)
enum PageMode {
Stack = 0x0000,
NoStack = 0x0001
};
Q_ENUM_NS(PageMode)
QML_NAMED_ELEMENT(FluNavigationViewType)
2023-04-19 23:53:00 +08:00
}