Skip to content

Commit e6de739

Browse files
committed
Rewirring paths to improve import names and such.
1 parent f52ee65 commit e6de739

File tree

22 files changed

+79
-45
lines changed

22 files changed

+79
-45
lines changed

common/rollup.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { babel } from "@rollup/plugin-babel"
2222
import cleanup from "rollup-plugin-cleanup"
2323

2424
const src = "./src/index.mjs"
25-
const dest = "../build/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/index.mjs"
25+
const dest = "../build/runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Common/index.mjs"
2626

2727
export default {
2828
input: src,

runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import QtQuick
2020
import Qt.labs.platform as Native
2121
//import QtQuick.Controls 2.15
2222
import eu.ad5001.MixedMenu 1.1
23-
import "js/index.mjs" as JS
23+
import eu.ad5001.LogarithmPlotter.Common
2424

2525

2626
/*!
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module eu.ad5001.LogarithmPlotter.Common
2+
3+
JS 1.0 index.mjs
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import eu.ad5001.LogarithmPlotter.Setting 1.0 as Setting
2424

2525

2626
/*!
27-
\qmltype HistoryBrowser
27+
\qmltype Browser
2828
\inqmlmodule eu.ad5001.LogarithmPlotter.History
2929
\brief Tab of the drawer that allows to navigate through the undo and redo history.
3030
@@ -95,7 +95,7 @@ Item {
9595
Repeater {
9696
model: historyBrowser.redoCount
9797

98-
HistoryItem {
98+
SingleItem {
9999
id: redoButton
100100
width: historyBrowser.actionWidth
101101
//height: actionHeight
@@ -147,7 +147,7 @@ Item {
147147
model: historyBrowser.undoCount
148148

149149

150-
HistoryItem {
150+
SingleItem {
151151
id: undoButton
152152
width: historyBrowser.actionWidth
153153
//height: actionHeight
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import eu.ad5001.LogarithmPlotter.Setting 1.0 as Setting
2222

2323

2424
/*!
25-
\qmltype HistoryItem
25+
\qmltype SingleItem
2626
\inqmlmodule eu.ad5001.LogarithmPlotter.History
2727
\brief Item representing an history action.
2828
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module eu.ad5001.LogarithmPlotter.History
22

3-
HistoryBrowser 1.0 HistoryBrowser.qml
4-
HistoryItem 1.0 HistoryItem.qml
3+
Browser 1.0 Browser.qml
4+
SingleItem 1.0 SingleItem.qml

runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogarithmPlotter.qml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ import QtQuick.Layouts 1.12
2323
import QtQuick
2424

2525
// Auto loading all modules.
26-
import "js/index.mjs" as JS
26+
import eu.ad5001.LogarithmPlotter.Common
2727

28-
import eu.ad5001.LogarithmPlotter.History 1.0
28+
import eu.ad5001.LogarithmPlotter.History 1.0 as History
2929
import eu.ad5001.LogarithmPlotter.ObjectLists 1.0
30+
import eu.ad5001.LogarithmPlotter.Overlay 1.0 as Overlay
3031
import eu.ad5001.LogarithmPlotter.Popup 1.0 as Popup
3132

3233
/*!
@@ -120,16 +121,16 @@ ApplicationWindow {
120121

121122
ObjectLists {
122123
id: objectLists
123-
onChanged: drawCanvas.requestPaint()
124+
onChanged: Modules.Canvas.requestPaint()
124125
}
125126

126127
Settings {
127128
id: settings
128129
canvas: drawCanvas
129-
onChanged: drawCanvas.requestPaint()
130+
onChanged: Modules.Canvas.requestPaint()
130131
}
131132

132-
HistoryBrowser {
133+
History.Browser {
133134
id: historyBrowser
134135
}
135136
}
@@ -154,18 +155,24 @@ ApplicationWindow {
154155
}
155156
}
156157

157-
ViewPositionChangeOverlay {
158+
Overlay.ViewPositionChange {
158159
id: viewPositionChanger
159160
anchors.fill: parent
160161
canvas: parent
161162
settingsInstance: settings
162163
}
163164

164-
PickLocationOverlay {
165+
Overlay.PickLocation {
165166
id: positionPicker
166167
anchors.fill: parent
167168
canvas: parent
168169
}
170+
171+
// Overlay.Loading {
172+
// id: loadingOverlay
173+
// anchors.fill: parent
174+
// canvas: parent
175+
// }
169176
}
170177

171178
Timer {

runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/CustomPropertyList.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import QtQuick
2020
import QtQuick.Controls
2121
import Qt.labs.platform as Native
2222
import eu.ad5001.LogarithmPlotter.Setting 1.0 as Setting
23-
import "../../js/index.mjs" as JS
23+
import eu.ad5001.LogarithmPlotter.Common
2424

2525
/*!
2626
\qmltype CustomPropertyList

runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/Dialog.qml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818

1919
import QtQuick
2020
import QtQuick.Controls
21-
import QtQuick.Dialogs as D
2221
import Qt.labs.platform as Native
2322
import eu.ad5001.LogarithmPlotter.Setting 1.0 as Setting
2423
import eu.ad5001.LogarithmPlotter.Popup 1.0 as Popup
25-
import "../../js/index.mjs" as JS
24+
import eu.ad5001.LogarithmPlotter.Common
2625

2726
/*!
2827
\qmltype Dialog

runtime-pyside6/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectCreationGrid.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import QtQuick
2020
import QtQuick.Controls
2121
import eu.ad5001.LogarithmPlotter.Setting 1.0 as Setting
22-
import "../js/index.mjs" as JS
22+
import eu.ad5001.LogarithmPlotter.Common
2323

2424

2525
/*!

0 commit comments

Comments
 (0)