Compare commits

...

4 Commits

9 changed files with 30 additions and 24 deletions

View File

@ -63,7 +63,7 @@ jobs:
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: ${{ env.targetName }}_${{ matrix.os }}_${{matrix.qt_ver}}_shared.zip name: ${{ env.targetName }}_${{ matrix.os }}_${{matrix.qt_ver}}_shared
path: /Users/runner/work/RibbonUI/RibbonUI/build/app/release/${{ env.targetName }}.dmg path: /Users/runner/work/RibbonUI/RibbonUI/build/app/release/${{ env.targetName }}.dmg
- name: uploadRelease - name: uploadRelease

View File

@ -63,7 +63,7 @@ jobs:
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: ${{ env.targetName }}_${{ matrix.os }}_${{matrix.qt_ver}}_static.zip name: ${{ env.targetName }}_${{ matrix.os }}_${{matrix.qt_ver}}_static
path: /Users/runner/work/RibbonUI/RibbonUI/build/app/release/${{ env.targetName }}.dmg path: /Users/runner/work/RibbonUI/RibbonUI/build/app/release/${{ env.targetName }}.dmg
- name: uploadRelease - name: uploadRelease

4
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "lib_source/3rdparty/qwindowkit"] [submodule "3rdparty/qwindowkit"]
path = lib_source/3rdparty/qwindowkit path = 3rdparty/qwindowkit
url = https://github.com/stdware/qwindowkit.git url = https://github.com/stdware/qwindowkit.git

1
3rdparty/qwindowkit vendored Submodule

@ -0,0 +1 @@
Subproject commit 357532958f2e806c69c96f018333a45e65e35201

View File

@ -9,11 +9,26 @@ cmake_path(SET QT_SDK_DIR NORMALIZE ${QT_SDK_DIR})
option(RIBBONUI_BUILD_EXAMPLES "Build RibbonUI APP." ON) option(RIBBONUI_BUILD_EXAMPLES "Build RibbonUI APP." ON)
option(RIBBONUI_BUILD_QWINDOWKIT "Build QWindowKit." ON) option(RIBBONUI_BUILD_QWINDOWKIT "Build QWindowKit." ON)
option(RIBBONUI_BUILD_STATIC_LIB "Build RibbonUI static library." OFF) option(RIBBONUI_BUILD_STATIC_LIB "Build RibbonUI static library." OFF)
option(RIBBONUI_UNIVERSAL_BUILD_MACOS "Universal build RibbonUI for macOS." ON)
if(APPLE AND RIBBONUI_UNIVERSAL_BUILD_MACOS)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
endif()
if(NOT RIBBONUI_QML_PLUGIN_DIRECTORY) if(NOT RIBBONUI_QML_PLUGIN_DIRECTORY)
set(RIBBONUI_QML_PLUGIN_DIRECTORY ${QT_SDK_DIR}/qml/RibbonUI CACHE PATH "RibbonUI Plugin Path") set(RIBBONUI_QML_PLUGIN_DIRECTORY ${QT_SDK_DIR}/qml/RibbonUI CACHE PATH "RibbonUI Plugin Path")
endif() endif()
if (RIBBONUI_BUILD_QWINDOWKIT)
set(QWINDOWKIT_BUILD_STATIC ON)
set(QWINDOWKIT_BUILD_EXAMPLES OFF)
set(QWINDOWKIT_BUILD_QUICK ON)
set(QWINDOWKIT_BUILD_WIDGETS OFF)
set(QWINDOWKIT_ENABLE_STYLE_AGENT ON)
set(QWINDOWKIT_INSTALL OFF)
add_subdirectory(3rdparty/qwindowkit)
endif()
add_subdirectory(lib_source) add_subdirectory(lib_source)
if (RIBBONUI_BUILD_EXAMPLES) if (RIBBONUI_BUILD_EXAMPLES)
@ -24,5 +39,6 @@ message("---------------------------- RibbonUI ----------------------------")
message("Build RibbonUI APP: ${RIBBONUI_BUILD_EXAMPLES}") message("Build RibbonUI APP: ${RIBBONUI_BUILD_EXAMPLES}")
message("Build RibbonUI static library: ${RIBBONUI_BUILD_STATIC_LIB}") message("Build RibbonUI static library: ${RIBBONUI_BUILD_STATIC_LIB}")
message("Build QWindowKit: ${RIBBONUI_BUILD_QWINDOWKIT}") message("Build QWindowKit: ${RIBBONUI_BUILD_QWINDOWKIT}")
message("Universal build RibbonUI for macOS: ${RIBBONUI_UNIVERSAL_BUILD_MACOS}")
message("RibbonUI QML Plugin Path: ${RIBBONUI_QML_PLUGIN_DIRECTORY}") message("RibbonUI QML Plugin Path: ${RIBBONUI_QML_PLUGIN_DIRECTORY}")
message("------------------------------------------------------------------") message("------------------------------------------------------------------")

View File

@ -15,10 +15,6 @@ else()
set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOUIC ON)
endif() endif()
if(APPLE)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
endif()
string(TIMESTAMP TIME_YEAR %Y) string(TIMESTAMP TIME_YEAR %Y)
set(PROJECT_COMPANY "Mentalflow's Lab") set(PROJECT_COMPANY "Mentalflow's Lab")
set(PROJECT_COPYRIGHT "Copyright (c) ${TIME_YEAR} Mentalflow's Lab. All rights reserved.") set(PROJECT_COPYRIGHT "Copyright (c) ${TIME_YEAR} Mentalflow's Lab. All rights reserved.")

View File

@ -17,7 +17,11 @@ RibbonWindow {
{ {
title: qsTr("Tab Bar"), title: qsTr("Tab Bar"),
text: qsTr("A tab bar for window, let user choose the controllers."), text: qsTr("A tab bar for window, let user choose the controllers."),
target: tab_bar target: tab_bar,
enter_func: ()=>{
tab_bar.folded = false
tour.refresh(300) // Use it if has animation
}
}, },
{ {
title: qsTr("Tab Bar Buttons"), title: qsTr("Tab Bar Buttons"),
@ -107,6 +111,7 @@ RibbonWindow {
id: basic_page id: basic_page
title: qsTr("Basic") title: qsTr("Basic")
RibbonTabGroup{ RibbonTabGroup{
showOpenExternal: true
width: slider_layout.width + 20 width: slider_layout.width + 20
text: qsTr("Slider") text: qsTr("Slider")
RowLayout{ RowLayout{
@ -149,6 +154,7 @@ RibbonWindow {
RibbonTabGroup{ RibbonTabGroup{
width: switch_layout.width + 30 width: switch_layout.width + 30
text: qsTr("Switch Button") text: qsTr("Switch Button")
showOpenExternal: true
RowLayout{ RowLayout{
id: switch_layout id: switch_layout
anchors.centerIn: parent anchors.centerIn: parent
@ -197,6 +203,7 @@ RibbonWindow {
RibbonTabGroup{ RibbonTabGroup{
width: checkbox_layout.width + 30 width: checkbox_layout.width + 30
text: qsTr("CheckBox") text: qsTr("CheckBox")
showOpenExternal: true
RowLayout{ RowLayout{
id: checkbox_layout id: checkbox_layout
anchors.centerIn: parent anchors.centerIn: parent
@ -232,6 +239,7 @@ RibbonWindow {
RibbonTabGroup{ RibbonTabGroup{
width: button_layout.width + 30 width: button_layout.width + 30
text: qsTr("Button") text: qsTr("Button")
showOpenExternal: true
RowLayout{ RowLayout{
id: button_layout id: button_layout
anchors.centerIn: parent anchors.centerIn: parent

@ -1 +0,0 @@
Subproject commit 0177eedd03bd9a75dafea296f77b8a6bdad9c3cb

View File

@ -16,20 +16,6 @@ else()
set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOUIC ON)
endif() endif()
if(APPLE)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
endif()
if (RIBBONUI_BUILD_QWINDOWKIT)
set(QWINDOWKIT_BUILD_STATIC ON)
set(QWINDOWKIT_BUILD_EXAMPLES OFF)
set(QWINDOWKIT_BUILD_QUICK ON)
set(QWINDOWKIT_BUILD_WIDGETS OFF)
set(QWINDOWKIT_ENABLE_STYLE_AGENT ON)
set(QWINDOWKIT_INSTALL OFF)
add_subdirectory(3rdparty/qwindowkit)
endif()
find_package(Qt6 COMPONENTS Core Quick Qml REQUIRED) find_package(Qt6 COMPONENTS Core Quick Qml REQUIRED)
set(version_str "${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH}") set(version_str "${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH}")