Skip to content

Commit

Permalink
updates to spacing in ui
Browse files Browse the repository at this point in the history
  • Loading branch information
magnus-haw committed Dec 5, 2024
1 parent a904be7 commit 8e8c3a7
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 80 deletions.
144 changes: 75 additions & 69 deletions arcjetCV/gui/arcjetCV.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>1175</width>
<height>824</height>
<height>794</height>
</rect>
</property>
<property name="windowTitle">
Expand All @@ -18,38 +18,60 @@
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="tab_8">
<attribute name="title">
<string>Calibrate</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_4">
<item row="5" column="1">
<widget class="QListView" name="listView_calibration_imgs">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="4" column="2">
<spacer name="verticalSpacer_9">
<item row="3" column="3">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
<height>15</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1" rowspan="5">
<widget class="QWidget" name="Window_view_img" native="true">
<item row="0" column="3" rowspan="2">
<widget class="QGroupBox" name="groupBox_5">
<property name="maximumSize">
<size>
<width>350</width>
<height>16777215</height>
</size>
</property>
<property name="title">
<string>Load images</string>
</property>
<layout class="QGridLayout" name="gridLayout_10">
<item row="0" column="0">
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Load Calibration Images</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>Select Orientation Images</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1" rowspan="6">
<widget class="QWidget" name="Window_calib" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
Expand All @@ -64,17 +86,40 @@
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="QTextBrowser" name="textBrowser_calibration_values"/>
<item row="2" column="3">
<widget class="QListView" name="listView_calibration_imgs">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="6" column="0" colspan="2">
<widget class="QTextBrowser" name="textBrowser_calibration_values">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item row="3" column="2">
<item row="6" column="3">
<widget class="QGroupBox" name="groupBox_4">
<property name="minimumSize">
<size>
<width>300</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>350</width>
<height>16777215</height>
</size>
</property>
<property name="title">
<string>Calibration Pattern Parameters</string>
</property>
Expand All @@ -86,19 +131,6 @@
</property>
</widget>
</item>
<item row="1" column="5">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="4">
<widget class="QSpinBox" name="spinBox_pattern_ny">
<property name="value">
Expand Down Expand Up @@ -194,28 +226,18 @@
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="2" rowspan="2">
<widget class="QGroupBox" name="groupBox_5">
<property name="title">
<string>Load images</string>
</property>
<layout class="QGridLayout" name="gridLayout_10">
<item row="0" column="0">
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Load Calibration Images</string>
<item row="1" column="5">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>Select Orientation Images</string>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</widget>
</spacer>
</item>
</layout>
</widget>
Expand Down Expand Up @@ -913,22 +935,6 @@
</layout>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_test">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
Expand Down
14 changes: 3 additions & 11 deletions arcjetCV/gui/arcjetCV_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(1185, 786)
MainWindow.resize(1175, 824)
self.actionLoad_video = QAction(MainWindow)
self.actionLoad_video.setObjectName(u"actionLoad_video")
self.actionExit = QAction(MainWindow)
Expand Down Expand Up @@ -197,21 +197,13 @@ def setupUi(self, MainWindow):
sizePolicy1.setHeightForWidth(self.Window3.sizePolicy().hasHeightForWidth())
self.Window3.setSizePolicy(sizePolicy1)
self.Window3.setMinimumSize(QSize(731, 100))
self.Window3.setMaximumSize(QSize(16777215, 170))
self.Window3.setMaximumSize(QSize(16777215, 300))

self.verticalLayout.addWidget(self.Window3)

self.verticalSpacer_3 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)

self.verticalLayout.addItem(self.verticalSpacer_3)


self.horizontalLayout_8.addLayout(self.verticalLayout)

self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

self.horizontalLayout_8.addItem(self.horizontalSpacer)

self.verticalLayout_6 = QVBoxLayout()
self.verticalLayout_6.setObjectName(u"verticalLayout_6")
self.verticalLayout_6.setSizeConstraint(QLayout.SetDefaultConstraint)
Expand Down Expand Up @@ -954,7 +946,7 @@ def setupUi(self, MainWindow):
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QMenuBar(MainWindow)
self.menubar.setObjectName(u"menubar")
self.menubar.setGeometry(QRect(0, 0, 1185, 24))
self.menubar.setGeometry(QRect(0, 0, 1175, 24))
self.menuMenu = QMenu(self.menubar)
self.menuMenu.setObjectName(u"menuMenu")
MainWindow.setMenuBar(self.menubar)
Expand Down

0 comments on commit 8e8c3a7

Please sign in to comment.