Compare commits
3 Commits
1ca1d72f92
...
16ed550438
Author | SHA1 | Date |
---|---|---|
|
16ed550438 | |
|
d64e8d1ebb | |
|
ca319a5b55 |
|
@ -1,6 +1,7 @@
|
||||||
import QtQuick 2.15
|
import QtQuick 2.15
|
||||||
import QtQuick.Layouts 1.11
|
import QtQuick.Layouts 1.11
|
||||||
import QtQuick.Controls 2.15
|
import QtQuick.Controls 2.15
|
||||||
|
import QtQuick.Window 2.15
|
||||||
import RibbonUI 1.1
|
import RibbonUI 1.1
|
||||||
|
|
||||||
RibbonTabBar {
|
RibbonTabBar {
|
||||||
|
|
|
@ -29,25 +29,25 @@
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="482"/>
|
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="482"/>
|
||||||
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="476"/>
|
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="482"/>
|
||||||
<source>Close</source>
|
<source>Close</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="493"/>
|
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="493"/>
|
||||||
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="487"/>
|
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="493"/>
|
||||||
<source>Minimize</source>
|
<source>Minimize</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="504"/>
|
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="504"/>
|
||||||
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="498"/>
|
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="504"/>
|
||||||
<source>Restore</source>
|
<source>Restore</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="504"/>
|
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="504"/>
|
||||||
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="498"/>
|
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="504"/>
|
||||||
<source>Maximize</source>
|
<source>Maximize</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -114,6 +114,14 @@
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RibbonMessageBarGroup</name>
|
<name>RibbonMessageBarGroup</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="102"/>
|
||||||
|
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="111"/>
|
||||||
|
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="102"/>
|
||||||
|
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="111"/>
|
||||||
|
<source>'s </source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="180"/>
|
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="180"/>
|
||||||
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="180"/>
|
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="180"/>
|
||||||
|
@ -194,7 +202,7 @@
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonTabBar.qml" line="302"/>
|
<location filename="../qml/Qt5/RibbonTabBar.qml" line="302"/>
|
||||||
<location filename="../qml/Qt6/RibbonTabBar.qml" line="301"/>
|
<location filename="../qml/Qt6/RibbonTabBar.qml" line="302"/>
|
||||||
<source>RibbonTabBar: Error loading component:</source>
|
<source>RibbonTabBar: Error loading component:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -344,31 +352,31 @@
|
||||||
<name>RibbonWindow</name>
|
<name>RibbonWindow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonWindow.qml" line="148"/>
|
<location filename="../qml/Qt5/RibbonWindow.qml" line="148"/>
|
||||||
<location filename="../qml/Qt6/RibbonWindow.qml" line="149"/>
|
<location filename="../qml/Qt6/RibbonWindow.qml" line="148"/>
|
||||||
<source>Quit</source>
|
<source>Quit</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonWindow.qml" line="149"/>
|
<location filename="../qml/Qt5/RibbonWindow.qml" line="149"/>
|
||||||
<location filename="../qml/Qt6/RibbonWindow.qml" line="150"/>
|
<location filename="../qml/Qt6/RibbonWindow.qml" line="149"/>
|
||||||
<source>Minimize</source>
|
<source>Minimize</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonWindow.qml" line="150"/>
|
<location filename="../qml/Qt5/RibbonWindow.qml" line="150"/>
|
||||||
<location filename="../qml/Qt6/RibbonWindow.qml" line="151"/>
|
<location filename="../qml/Qt6/RibbonWindow.qml" line="150"/>
|
||||||
<source>Cancel</source>
|
<source>Cancel</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonWindow.qml" line="151"/>
|
<location filename="../qml/Qt5/RibbonWindow.qml" line="151"/>
|
||||||
<location filename="../qml/Qt6/RibbonWindow.qml" line="152"/>
|
<location filename="../qml/Qt6/RibbonWindow.qml" line="151"/>
|
||||||
<source>Do you want to close this window?</source>
|
<source>Do you want to close this window?</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonWindow.qml" line="152"/>
|
<location filename="../qml/Qt5/RibbonWindow.qml" line="152"/>
|
||||||
<location filename="../qml/Qt6/RibbonWindow.qml" line="153"/>
|
<location filename="../qml/Qt6/RibbonWindow.qml" line="152"/>
|
||||||
<source>Please note</source>
|
<source>Please note</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -29,25 +29,25 @@
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="482"/>
|
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="482"/>
|
||||||
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="476"/>
|
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="482"/>
|
||||||
<source>Close</source>
|
<source>Close</source>
|
||||||
<translation>关闭</translation>
|
<translation>关闭</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="493"/>
|
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="493"/>
|
||||||
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="487"/>
|
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="493"/>
|
||||||
<source>Minimize</source>
|
<source>Minimize</source>
|
||||||
<translation>最小化</translation>
|
<translation>最小化</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="504"/>
|
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="504"/>
|
||||||
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="498"/>
|
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="504"/>
|
||||||
<source>Restore</source>
|
<source>Restore</source>
|
||||||
<translation>还原</translation>
|
<translation>还原</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="504"/>
|
<location filename="../qml/Qt5/RibbonBackStageView.qml" line="504"/>
|
||||||
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="498"/>
|
<location filename="../qml/Qt6/RibbonBackStageView.qml" line="504"/>
|
||||||
<source>Maximize</source>
|
<source>Maximize</source>
|
||||||
<translation>最大化</translation>
|
<translation>最大化</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -114,6 +114,14 @@
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RibbonMessageBarGroup</name>
|
<name>RibbonMessageBarGroup</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="102"/>
|
||||||
|
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="111"/>
|
||||||
|
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="102"/>
|
||||||
|
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="111"/>
|
||||||
|
<source>'s </source>
|
||||||
|
<translation>的 </translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="180"/>
|
<location filename="../qml/Qt5/RibbonMessageBarGroup.qml" line="180"/>
|
||||||
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="180"/>
|
<location filename="../qml/Qt6/RibbonMessageBarGroup.qml" line="180"/>
|
||||||
|
@ -194,7 +202,7 @@
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonTabBar.qml" line="302"/>
|
<location filename="../qml/Qt5/RibbonTabBar.qml" line="302"/>
|
||||||
<location filename="../qml/Qt6/RibbonTabBar.qml" line="301"/>
|
<location filename="../qml/Qt6/RibbonTabBar.qml" line="302"/>
|
||||||
<source>RibbonTabBar: Error loading component:</source>
|
<source>RibbonTabBar: Error loading component:</source>
|
||||||
<translation>RibbonTabBar:加载组件失败:</translation>
|
<translation>RibbonTabBar:加载组件失败:</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -345,31 +353,31 @@
|
||||||
<name>RibbonWindow</name>
|
<name>RibbonWindow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonWindow.qml" line="148"/>
|
<location filename="../qml/Qt5/RibbonWindow.qml" line="148"/>
|
||||||
<location filename="../qml/Qt6/RibbonWindow.qml" line="149"/>
|
<location filename="../qml/Qt6/RibbonWindow.qml" line="148"/>
|
||||||
<source>Quit</source>
|
<source>Quit</source>
|
||||||
<translation>退出</translation>
|
<translation>退出</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonWindow.qml" line="149"/>
|
<location filename="../qml/Qt5/RibbonWindow.qml" line="149"/>
|
||||||
<location filename="../qml/Qt6/RibbonWindow.qml" line="150"/>
|
<location filename="../qml/Qt6/RibbonWindow.qml" line="149"/>
|
||||||
<source>Minimize</source>
|
<source>Minimize</source>
|
||||||
<translation>最小化</translation>
|
<translation>最小化</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonWindow.qml" line="150"/>
|
<location filename="../qml/Qt5/RibbonWindow.qml" line="150"/>
|
||||||
<location filename="../qml/Qt6/RibbonWindow.qml" line="151"/>
|
<location filename="../qml/Qt6/RibbonWindow.qml" line="150"/>
|
||||||
<source>Cancel</source>
|
<source>Cancel</source>
|
||||||
<translation>取消</translation>
|
<translation>取消</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonWindow.qml" line="151"/>
|
<location filename="../qml/Qt5/RibbonWindow.qml" line="151"/>
|
||||||
<location filename="../qml/Qt6/RibbonWindow.qml" line="152"/>
|
<location filename="../qml/Qt6/RibbonWindow.qml" line="151"/>
|
||||||
<source>Do you want to close this window?</source>
|
<source>Do you want to close this window?</source>
|
||||||
<translation>需要关闭窗口吗?</translation>
|
<translation>需要关闭窗口吗?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Qt5/RibbonWindow.qml" line="152"/>
|
<location filename="../qml/Qt5/RibbonWindow.qml" line="152"/>
|
||||||
<location filename="../qml/Qt6/RibbonWindow.qml" line="153"/>
|
<location filename="../qml/Qt6/RibbonWindow.qml" line="152"/>
|
||||||
<source>Please note</source>
|
<source>Please note</source>
|
||||||
<translation>请注意</translation>
|
<translation>请注意</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -9,7 +9,6 @@ class PlatformSupport : public QObject
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
QML_ELEMENT
|
QML_ELEMENT
|
||||||
QML_SINGLETON
|
QML_SINGLETON
|
||||||
QML_NAMED_ELEMENT(PlatformSupport)
|
|
||||||
public:
|
public:
|
||||||
static PlatformSupport* create(QQmlEngine *qmlEngine, QJSEngine *jsEngine){return instance();}
|
static PlatformSupport* create(QQmlEngine *qmlEngine, QJSEngine *jsEngine){return instance();}
|
||||||
static PlatformSupport* instance(){
|
static PlatformSupport* instance(){
|
||||||
|
|
|
@ -10,7 +10,6 @@ class RibbonLocalization : public QQuickItem
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
QML_ELEMENT
|
QML_ELEMENT
|
||||||
QML_SINGLETON
|
QML_SINGLETON
|
||||||
QML_NAMED_ELEMENT(RibbonLocalization)
|
|
||||||
Q_PROPERTY(QString currentLanguage READ currentLanguage WRITE setCurrentLanguage NOTIFY currentLanguageChanged FINAL)
|
Q_PROPERTY(QString currentLanguage READ currentLanguage WRITE setCurrentLanguage NOTIFY currentLanguageChanged FINAL)
|
||||||
public:
|
public:
|
||||||
typedef QPair<QString, QString> LangItem; // example: <"zh_CN", "qrc://i18n/xxx_zh_CN.qm">
|
typedef QPair<QString, QString> LangItem; // example: <"zh_CN", "qrc://i18n/xxx_zh_CN.qm">
|
||||||
|
|
|
@ -9,7 +9,6 @@ class RibbonTheme : public QQuickItem
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
QML_ELEMENT
|
QML_ELEMENT
|
||||||
QML_SINGLETON
|
QML_SINGLETON
|
||||||
QML_NAMED_ELEMENT(RibbonTheme)
|
|
||||||
|
|
||||||
Q_PROPERTY(bool isDarkMode READ isDarkMode NOTIFY isDarkModeChanged FINAL)
|
Q_PROPERTY(bool isDarkMode READ isDarkMode NOTIFY isDarkModeChanged FINAL)
|
||||||
Q_PROPERTY_RW(RibbonThemeType::ThemeMode,themeMode)
|
Q_PROPERTY_RW(RibbonThemeType::ThemeMode,themeMode)
|
||||||
|
|
|
@ -10,7 +10,7 @@ class RibbonUI : public QQuickItem
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
QML_ELEMENT
|
QML_ELEMENT
|
||||||
QML_SINGLETON
|
QML_SINGLETON
|
||||||
QML_NAMED_ELEMENT(RibbonUI)
|
|
||||||
Q_PROPERTY_R(QString, version)
|
Q_PROPERTY_R(QString, version)
|
||||||
Q_PROPERTY_R(int, qtVersion)
|
Q_PROPERTY_R(int, qtVersion)
|
||||||
Q_PROPERTY_R(int, isWin11)
|
Q_PROPERTY_R(int, isWin11)
|
||||||
|
|
|
@ -74,7 +74,6 @@ Window {
|
||||||
windowAgent.setWindowAttribute("blur-effect", blurBehindWindow ? RibbonTheme.isDarkMode ? "dark" : "light" : "none")
|
windowAgent.setWindowAttribute("blur-effect", blurBehindWindow ? RibbonTheme.isDarkMode ? "dark" : "light" : "none")
|
||||||
}
|
}
|
||||||
RibbonLocalization.bindEngine();
|
RibbonLocalization.bindEngine();
|
||||||
RibbonLocalization.currentLanguage = "en_US"
|
|
||||||
RibbonUI.setTranslator(RibbonLocalization)
|
RibbonUI.setTranslator(RibbonLocalization)
|
||||||
}
|
}
|
||||||
Item{
|
Item{
|
||||||
|
|
Loading…
Reference in New Issue