Merge branch 'main' into 'feature/save'

# Conflicts:
#   mainwindow.cpp
#   mainwindow.h
#   mainwindow.ui
#   step.h
This commit is contained in:
JOSSERAND GIOVANNI p2405212
2025-06-20 12:20:12 +00:00
8 changed files with 444 additions and 28 deletions
+169 -16
View File
@@ -7,9 +7,21 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>626</height>
<height>598</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
@@ -51,7 +63,7 @@
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<widget class="QSpinBox" name="spinBox">
<widget class="QSpinBox" name="pathNumber">
<property name="geometry">
<rect>
<x>10</x>
@@ -60,6 +72,12 @@
<height>27</height>
</rect>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
<widget class="QLineEdit" name="titleEdit">
<property name="geometry">
@@ -280,10 +298,145 @@
</widget>
</item>
<item>
<widget class="QFrame" name="frame_2">
<widget class="QFrame" name="stepInformationFrame">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<widget class="QWidget" name="steptitleFrame" native="true">
<property name="geometry">
<rect>
<x>0</x>
<y>10</y>
<width>781</width>
<height>45</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QSpinBox" name="stepNumber">
<property name="minimum">
<number>1</number>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="stepTitle"/>
</item>
<item>
<widget class="QToolButton" name="addStep">
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="data.qrc">
<normaloff>:/data/images/data/images/add.png</normaloff>:/data/images/data/images/add.png</iconset>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="stepCoordinatesFrame" native="true">
<property name="geometry">
<rect>
<x>0</x>
<y>60</y>
<width>781</width>
<height>63</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_11">
<item>
<widget class="QWidget" name="latFrame" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="QLabel" name="latLbl">
<property name="text">
<string>Latitude</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="LatitudeSpin">
<property name="decimals">
<number>6</number>
</property>
<property name="maximum">
<double>90.000000000000000</double>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="longFrame" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QLabel" name="longLbl">
<property name="text">
<string>Longitude</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="longitudeSpin">
<property name="decimals">
<number>6</number>
</property>
<property name="minimum">
<double>-180.000000000000000</double>
</property>
<property name="maximum">
<double>180.000000000000000</double>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="responseFrame" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<widget class="QLabel" name="responseLbl">
<property name="text">
<string>Response</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="responseSpin"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QPlainTextEdit" name="dialogEdit">
<property name="geometry">
<rect>
<x>10</x>
<y>130</y>
<width>761</width>
<height>81</height>
</rect>
</property>
</widget>
</widget>
</item>
</layout>
@@ -325,7 +478,7 @@
<bool>false</bool>
</attribute>
<addaction name="actionNewFile"/>
<addaction name="actionNew"/>
<addaction name="actionopenFile"/>
<addaction name="actionSaveFile"/>
<addaction name="actionSaveAsFile"/>
<addaction name="actionPrintFile"/>
@@ -367,7 +520,7 @@
<normaloff>:/data/images/data/images/new.png</normaloff>:/data/images/data/images/new.png</iconset>
</property>
<property name="text">
<string>NewFile</string>
<string>New File</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
@@ -379,7 +532,7 @@
<normaloff>:/data/images/data/images/save_as.png</normaloff>:/data/images/data/images/save_as.png</iconset>
</property>
<property name="text">
<string>SaveFile</string>
<string>Save</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
@@ -391,7 +544,7 @@
<normaloff>:/data/images/data/images/save.png</normaloff>:/data/images/data/images/save.png</iconset>
</property>
<property name="text">
<string>SaveAsFile</string>
<string>Save as</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
@@ -403,7 +556,7 @@
<normaloff>:/data/images/data/images/print.png</normaloff>:/data/images/data/images/print.png</iconset>
</property>
<property name="text">
<string>PrintFile</string>
<string>Print</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
@@ -415,7 +568,7 @@
<normaloff>:/data/images/data/images/copy.png</normaloff>:/data/images/data/images/copy.png</iconset>
</property>
<property name="text">
<string>EditCopy</string>
<string>Copy</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
@@ -427,7 +580,7 @@
<normaloff>:/data/images/data/images/paste.png</normaloff>:/data/images/data/images/paste.png</iconset>
</property>
<property name="text">
<string>EditPaste</string>
<string>Paste</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
@@ -439,7 +592,7 @@
<normaloff>:/data/images/data/images/cut.png</normaloff>:/data/images/data/images/cut.png</iconset>
</property>
<property name="text">
<string>EditCut</string>
<string>Cut</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
@@ -451,7 +604,7 @@
<normaloff>:/data/images/data/images/edit_undo.png</normaloff>:/data/images/data/images/edit_undo.png</iconset>
</property>
<property name="text">
<string>EditUndo</string>
<string>Undo</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
@@ -463,19 +616,19 @@
<normaloff>:/data/images/data/images/edit_redo.png</normaloff>:/data/images/data/images/edit_redo.png</iconset>
</property>
<property name="text">
<string>EditRedo</string>
<string>Redo</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="actionNew">
<action name="actionopenFile">
<property name="icon">
<iconset resource="data.qrc">
<normaloff>:/data/images/data/images/new.png</normaloff>:/data/images/data/images/new.png</iconset>
<normaloff>:/data/images/data/images/open.png</normaloff>:/data/images/data/images/open.png</iconset>
</property>
<property name="text">
<string>New</string>
<string>Open file</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>