-
-import QtQuick
-import QtGraphs
-
-import EasyApp.Gui.Style as EaStyle
-import EasyApp.Gui.Elements as EaElements
-
-import Gui.Globals as Globals
-
-
-EaElements.TextArea {
- textFormat: TextEdit.RichText
-
- text: '
- Lorem ipsum dolor sit amet, consectetur adipiscing elit,
- sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua.
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
- nisi ut aliquip ex ea
commodo consequat.
-
-
-
- Duis aute irure dolor in
- reprehenderit in voluptate velit esse cillum dolore eu fugiat
- nulla pariatur.
- Excepteur sint occaecat cupidatat non proident, sunt in
- culpa qui officia deserunt mollit anim id est laborum.
-
'
-}
diff --git a/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Groups/Group1.qml b/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Groups/Group1.qml
deleted file mode 100644
index f177a50..0000000
--- a/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Groups/Group1.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-// SPDX-FileCopyrightText: 2024 EasyApp contributors
-// SPDX-License-Identifier: BSD-3-Clause
-// © 2024 Contributors to the EasyApp project
-
-import QtQuick
-import QtQuick.Controls
-
-import EasyApp.Gui.Globals as EaGlobals
-import EasyApp.Gui.Style as EaStyle
-import EasyApp.Gui.Elements as EaElements
-import EasyApp.Gui.Components as EaComponents
-import EasyApp.Gui.Logic as EaLogic
-
-import Gui.Globals as Globals
-
-EaElements.GroupColumn {}
diff --git a/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Groups/Group2.qml b/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Groups/Group2.qml
deleted file mode 100644
index 585ee24..0000000
--- a/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Groups/Group2.qml
+++ /dev/null
@@ -1,30 +0,0 @@
-// SPDX-FileCopyrightText: 2024 EasyApp contributors
-// SPDX-License-Identifier: BSD-3-Clause
-// © 2024 Contributors to the EasyApp project
-
-import QtQuick
-import QtQuick.Controls
-
-import EasyApp.Gui.Globals as EaGlobals
-import EasyApp.Gui.Style as EaStyle
-import EasyApp.Gui.Elements as EaElements
-import EasyApp.Gui.Components as EaComponents
-import EasyApp.Gui.Logic as EaLogic
-
-import Gui.Globals as Globals
-
-EaElements.GroupColumn {
-
- EaElements.Label {
- text: "EaElements.Label"
- }
-
- EaElements.TextInput {
- text: 'EaElements.TextInput'
- }
-
- EaElements.TextField {
- text: 'EaElements.TextField'
- }
-
-}
diff --git a/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Groups/Group3.qml b/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Groups/Group3.qml
deleted file mode 100644
index f57f027..0000000
--- a/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Groups/Group3.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-// SPDX-FileCopyrightText: 2024 EasyApp contributors
-// SPDX-License-Identifier: BSD-3-Clause
-// © 2024 Contributors to the EasyApp project
-
-import QtQuick
-import QtQuick.Controls
-
-import EasyApp.Gui.Globals as EaGlobals
-import EasyApp.Gui.Style as EaStyle
-import EasyApp.Gui.Elements as EaElements
-import EasyApp.Gui.Components as EaComponents
-import EasyApp.Gui.Logic as EaLogic
-
-import Gui.Globals as Globals
-
-EaElements.GroupColumn {
-
- EaElements.ComboBox {
- model: ["EaElements.ComboBox 1", "EaElements.ComboBox 2", "EaElements.ComboBox 3"]
- }
-
- Column {
- EaElements.RadioButton {
- checked: true
- text: qsTr("EaElements.RadioButton 1")
- }
- EaElements.RadioButton {
- text: qsTr("EaElements.RadioButton 2")
- }
- }
-
- Column {
- spacing: 10
- EaElements.CheckBox {
- checked: true
- text: qsTr("EaElements.CheckBox 1")
- }
- EaElements.CheckBox {
- text: qsTr("EaElements.CheckBox 2")
- }
- }
-
-}
diff --git a/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Groups/Group4.qml b/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Groups/Group4.qml
deleted file mode 100644
index a3d5b92..0000000
--- a/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Groups/Group4.qml
+++ /dev/null
@@ -1,30 +0,0 @@
-// SPDX-FileCopyrightText: 2024 EasyApp contributors
-// SPDX-License-Identifier: BSD-3-Clause
-// © 2024 Contributors to the EasyApp project
-
-import QtQuick
-import QtQuick.Controls
-
-import EasyApp.Gui.Globals as EaGlobals
-import EasyApp.Gui.Style as EaStyle
-import EasyApp.Gui.Elements as EaElements
-import EasyApp.Gui.Components as EaComponents
-import EasyApp.Gui.Logic as EaLogic
-
-import Gui.Globals as Globals
-
-EaElements.GroupColumn {
-
-
- EaElements.SideBarButton {
- fontIcon: 'plus-circle'
- text: 'EaElements.SideBarButton'
- }
-
- EaElements.Slider {
- from: 1
- value: 25
- to: 100
- }
-
-}
diff --git a/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Layout.qml b/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Layout.qml
deleted file mode 100644
index 5e16781..0000000
--- a/src/easyshapes_app/Gui/Pages/Toolbox/Sidebar/Basic/Layout.qml
+++ /dev/null
@@ -1,45 +0,0 @@
-// SPDX-FileCopyrightText: 2024 EasyApp contributors
-// SPDX-License-Identifier: BSD-3-Clause
-// © 2024 Contributors to the EasyApp project
-
-import QtQuick
-import QtQuick.Controls
-
-import EasyApp.Gui.Elements as EaElements
-import EasyApp.Gui.Components as EaComponents
-
-import Gui.Globals as Globals
-
-
-EaComponents.SideBarColumn {
-
- EaElements.GroupBox {
- title: qsTr('Group 1: Empty')
- icon: 'rocket'
-
- Loader { source: 'Groups/Group1.qml' }
- }
-
- EaElements.GroupBox {
- title: qsTr('Group 2: Label, TextInput, TextField')
- icon: 'rocket'
- collapsed: false
-
- Loader { source: 'Groups/Group2.qml' }
- }
-
- EaElements.GroupBox {
- title: qsTr('Group 3: ComboBox, RadioButton, CheckBox')
- icon: 'rocket'
-
- Loader { source: 'Groups/Group3.qml' }
- }
-
- EaElements.GroupBox {
- title: qsTr('Group 4: SidebarButton, Slider')
- icon: 'rocket'
-
- Loader { source: 'Groups/Group4.qml' }
- }
-
-}
diff --git a/src/easyshapes_app/Gui/StatusBar.qml b/src/easyshapes_app/Gui/StatusBar.qml
index 2bd91f9..8f1b73a 100644
--- a/src/easyshapes_app/Gui/StatusBar.qml
+++ b/src/easyshapes_app/Gui/StatusBar.qml
@@ -5,9 +5,9 @@
import QtQuick
import QtQuick.Controls
-import EasyApp.Gui.Globals as EaGlobals
-import EasyApp.Gui.Elements as EaElements
-import EasyApp.Gui.Components as EaComponents
+import EasyApplication.Gui.Globals as EaGlobals
+import EasyApplication.Gui.Elements as EaElements
+import EasyApplication.Gui.Components as EaComponents
import Gui.Globals as Globals
diff --git a/src/easyshapes_app/test.qml b/src/easyshapes_app/test.qml
new file mode 100644
index 0000000..cb4d953
--- /dev/null
+++ b/src/easyshapes_app/test.qml
@@ -0,0 +1,80 @@
+// SPDX-FileCopyrightText: 2024 EasyApp contributors
+// SPDX-License-Identifier: BSD-3-Clause
+// © 2024 Contributors to the EasyApp project
+
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Dialogs
+
+import EasyApplication.Gui.Globals as EaGlobals
+import EasyApplication.Gui.Style as EaStyle
+import EasyApplication.Gui.Components as EaComponents
+import EasyApplication.Gui.Elements as EaElements
+import Qt.labs.qmlmodels
+
+import Gui.Globals as Globals
+
+ApplicationWindow{
+
+ width: 650
+ height: 680
+ color: EaStyle.Colors.contentBackground
+ visible: true
+
+ Grid {
+ spacing: EaStyle.Sizes.fontPixelSize * 4
+ leftPadding: 12
+
+ Column {
+ width: 600
+ spacing: EaStyle.Sizes.fontPixelSize
+
+ EaElements.ComboBox {
+ model: [qsTr("Light"), qsTr("Dark"), qsTr("System")]
+ onActivated: {
+ if (currentIndex === 0)
+ EaStyle.Colors.theme = EaStyle.Colors.LightTheme
+ else if (currentIndex === 1)
+ EaStyle.Colors.theme = EaStyle.Colors.DarkTheme
+ else if (currentIndex === 2)
+ EaStyle.Colors.theme = EaStyle.Colors.SystemTheme
+ }
+ Component.onCompleted: {
+ if (EaStyle.Colors.theme === EaStyle.Colors.LightTheme)
+ currentIndex = 0
+ else if (EaStyle.Colors.theme === EaStyle.Colors.DarkTheme)
+ currentIndex = 1
+ else if (EaStyle.Colors.theme === EaStyle.Colors.SystemTheme)
+ currentIndex = 2
+ }
+ }
+
+ // groubox to test the element
+ // EaElements.GroupBox {
+ // title: qsTr('Test a group widget')
+ // icon: 'wrench'
+ // collapsed: false
+
+ // Loader { source: 'Gui/Pages/SampleModel/Sidebar/Basic/Groups/Solution.qml'}
+ // }
+
+ EaElements.Pill {
+ text: "text"
+ }
+
+ EaElements.Pill {
+ text: "fontIcon"
+ fontIcon: "atom"
+ }
+
+ EaElements.Pill {
+ text: "superlongtext why can't I hold all this text in my hands"
+ }
+ }
+ }
+
+
+
+ //Component.onCompleted: Globals.References.pages.samplemodel.sidebar.basic.popups.LoadExistingModel.open()
+
+}
diff --git a/src/easyshapes_app/test2.qml b/src/easyshapes_app/test2.qml
new file mode 100644
index 0000000..4468ba5
--- /dev/null
+++ b/src/easyshapes_app/test2.qml
@@ -0,0 +1,166 @@
+// SPDX-FileCopyrightText: 2024 EasyApp contributors
+// SPDX-License-Identifier: BSD-3-Clause
+// © 2024 Contributors to the EasyApp project
+
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Dialogs
+
+import EasyApplication.Gui.Globals as EaGlobals
+import EasyApplication.Gui.Style as EaStyle
+import EasyApplication.Gui.Components as EaComponents
+import EasyApplication.Gui.Elements as EaElements
+import Qt.labs.qmlmodels
+
+import Gui.Globals as Globals
+
+ApplicationWindow{
+
+ width: 650
+ height: 580
+ color: EaStyle.Colors.contentBackground
+ visible: true
+
+ Grid {
+ spacing: EaStyle.Sizes.fontPixelSize * 4
+ leftPadding: 12
+
+
+ Column {
+ width: 600
+ spacing: EaStyle.Sizes.fontPixelSize
+
+ EaElements.ComboBox {
+ model: [qsTr("Light"), qsTr("Dark"), qsTr("System")]
+ onActivated: {
+ if (currentIndex === 0)
+ EaStyle.Colors.theme = EaStyle.Colors.LightTheme
+ else if (currentIndex === 1)
+ EaStyle.Colors.theme = EaStyle.Colors.DarkTheme
+ else if (currentIndex === 2)
+ EaStyle.Colors.theme = EaStyle.Colors.SystemTheme
+ }
+ Component.onCompleted: {
+ if (EaStyle.Colors.theme === EaStyle.Colors.LightTheme)
+ currentIndex = 0
+ else if (EaStyle.Colors.theme === EaStyle.Colors.DarkTheme)
+ currentIndex = 1
+ else if (EaStyle.Colors.theme === EaStyle.Colors.SystemTheme)
+ currentIndex = 2
+ }
+ }
+
+ EaComponents.TableView {
+ id: whatverTable
+ defaultInfoText: qsTr("No models found")
+ enabled: true
+
+ header: EaComponents.TableViewHeader {
+ EaComponents.TableViewLabel {
+ id: modelNameColumnName
+ width: whatverTable.width * 0.25
+ text: qsTr("Name")
+ color: EaStyle.Colors.themeForegroundMinor
+ leftPadding: EaStyle.Sizes.fontPixelSize * 0.7
+ }
+
+ EaComponents.TableViewLabel {
+ id: modelTypeColumnName
+ width: whatverTable.width * 0.15
+ text: qsTr("Type")
+ color: EaStyle.Colors.themeForegroundMinor
+ }
+
+ EaComponents.TableViewLabel {
+ id: modelDescrColumnName
+ width: whatverTable.width * 0.6
+ text: qsTr("Description")
+ color: EaStyle.Colors.themeForegroundMinor
+ }
+ }
+
+ model: ListModel {
+ id: availableSambleModelsModel
+ ListElement { name: "Samle1_aluv"; structure_type: "Vesicle"; description: "In order to avoid a prolonged pro-inflammatory neutrophil response, signaling downstream of an agonist-activated G protein-coupled receptor (GPCR) has to be rapidly terminated. Among the family of GPCR kinases (GRKs) that regulate receptor phosphorylation and signaling termination, GRK2, which is highly expressed by immune cells, plays an important role." }
+ ListElement { name: "Sample2_nanodisc"; structure_type: "Ring"; description: "The medium chain fatty acid receptor GPR84 as well as formyl peptide receptor 2 (FPR2)" }
+ ListElement { name: "Sample3_cubosome"; structure_type: "Lattice"; description: "receptors expressed in neutrophils, play a key role in regulating inflammation. In this study, we investigated the effects of GRK2 inhibitors on neutrophil functions induced by GPR84 and FPR2 agonists." }
+ ListElement { name: "Sample4"; structure_type: "Ring"; description: "GRK2 was shown to be expressed in human neutrophils and analysis of subcellular fractions" }
+ ListElement { name: "Sample5"; structure_type: "Ball"; description: "revealed a cytosolic localization. The GRK2 inhibitors enhanced and prolonged neutrophil production " }
+ ListElement { name: "Sample6"; structure_type: "Vesicle"; description: "production of reactive oxygen species (ROS) induced by GPR84- but not FPR2-agonists" }
+ ListElement { name: "Sample7"; structure_type: "Rod"; description: "suggesting a receptor selective function of GRK2. This suggestion was supported by β-arrestin recruitment data. The ROS production induced by a non β-arrestin recruiting GPR84" }
+ ListElement { name: "Sample8"; structure_type: "Bilayer"; description: "This suggestion was supported by β-arrestin recruitment data. The ROS production induced by a non β-arrestin recruiting GPR84 agonist was not affected by the GRK2 inhibitor." }
+ ListElement { name: "Sample9"; structure_type: "Monolayer"; description: "Termination of this β-arrestin independent response relied, similar to the response induced by FPR2 agonists, primarily on the actin cytoskeleton." }
+ ListElement { name: "Samplewithareallylongname"; structure_type: "Lattice"; description: "In summary, we show that GPR84 utilizes GRK2 in concert with β-arrestin and actin cytoskeleton dependent processes to fine-tune the activity of the ROS generating NADPH-oxidase in neutrophils." }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "1"; structure_type: "2"; description: "3" }
+ ListElement { name: "end1"; structure_type: "end2"; description: "end3" }
+ }
+
+ delegate: EaComponents.TableViewDelegate {
+ required property int index
+ required property string name
+ required property string structure_type
+ required property string description
+
+ EaComponents.TableViewLabel {
+ id: modelNameColumn
+ //width: whatverTable.width * 0.25
+ text: name
+ }
+
+ EaComponents.TableViewLabel {
+ id: typeColumn
+ //width: whatverTable.width * 0.15
+ text: structure_type
+ }
+
+ EaComponents.TableViewTextInput {
+ id: descrColumn
+ //width: whatverTable.width * 0.58
+ text: description
+ }
+ }
+
+ // ScrollBar.vertical: EaElements.ScrollBar {
+ // policy: ScrollBar.AlwaysOn // ScrollBar.AsNeeded // AlwaysOn
+ // }
+
+
+ }
+ }
+ }
+
+
+
+ //Component.onCompleted: Globals.References.pages.samplemodel.sidebar.basic.popups.LoadExistingModel.open()
+
+}