From 31f99ab4d60b621fdfd9bc72c3012d3bd8dcdf07 Mon Sep 17 00:00:00 2001 From: Mehmet Aksoy Date: Thu, 14 Nov 2024 11:32:05 +0100 Subject: [PATCH] V1.1 release - Missing Icon added, UI size fixed --- CMakeLists.txt | 1 + img/icon.ico | Bin 0 -> 9662 bytes mainwindow.cpp | 4 + mainwindow.ui | 215 +++++++++++++++++++++++++++++++++++++------------ resources.qrc | 5 ++ 5 files changed, 174 insertions(+), 51 deletions(-) create mode 100644 img/icon.ico create mode 100644 resources.qrc diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b5be4d..84ebc03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,7 @@ if(${QT_VERSION_MAJOR} GREATER_EQUAL 6) ${PROJECT_SOURCES} serialportworker.cpp serialportworker.h + resources.qrc ) # Define target properties for Android with Qt 6 as: # set_property(TARGET PTZControl APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR diff --git a/img/icon.ico b/img/icon.ico new file mode 100644 index 0000000000000000000000000000000000000000..17d843e3440593e9cf741d4710c9eca4caa0f42b GIT binary patch literal 9662 zcmeHN?NgLh6o2{$`q<|_)Jz|pX_|b)0tA$I1x&O-%!a06YNlqaCaoFugMp%@HKnPT zHbrBZMN>`|p=bunzVIp_;v&mC>{77Hva$R+=j=WYyYv9-t_<6>mpR<~+~?kNfA^eo z&pG!2MR|yRR;*Cy_oGV10tj}*_Q@7pb?GuUDhsi?Afj9z_KM1_UplCUEM+?_|4BUH`vGXvt9|s z{{+q(s{9smHzXS}kPfUzO5hnD3LGNsaPhNknzB-0*_sWOPs__MNbDIi{6YR<9GIC2 zTI+uCJ3HFYzWY_b4&u=Gd@h*x+!8i^^}b2_keIOXSs2q3#dmZcKZ2>jfuN;y@y}xu z>cqiIU&EA<-6pu^c85vezOC2_T!fVb=N5i(w6iYXvJ~e*!I{>}wJzp+*n07g3 z%}Lum(o@E4{L0I~@Q;<4BAfVo%pq93Q*KNR4N4!!0{hh}v=r@-7*`{MR*)`41Dtyns(-c*HGgQKfCVULEjhW#J-H_|NhQlOiP53_TB#GYl6vf z^M=f4yB8vT){`vM?}6-7d(WQ2^f=k4zl0@!75@*HgbUk-^=K)r74Y4S#@MT?U^{a{ z&IzAE6^B;S7|wOtUN06toDbH;KkdsIIB%FsNo&xwYdiRCsO3T6XI_03=V98k!FLw; zY!J4-b7#IrN5A2k0PW;_TkJwK{oc|Cu zu^+$udF_53{Jo!@#P}ElhNNJt+D2eqIh!rq5TfeX#C_zPl)K zLGXu=f9k+nv@2}setupUi(this); this->setFocusPolicy(Qt::StrongFocus); + // SetIcon + QIcon icon(":/img/icon.ico"); + this->setWindowIcon(icon); + connect(ui->connectButton, &QPushButton::clicked, this, &MainWindow::on_connectButton_clicked); connect(ui->stopButton, &QPushButton::clicked, this, &MainWindow::on_stopButton_clicked); diff --git a/mainwindow.ui b/mainwindow.ui index 6881316..a0d5897 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -7,9 +7,21 @@ 0 0 622 - 402 + 401 + + + 622 + 401 + + + + + 622 + 401 + + Bahnschrift Light @@ -19,8 +31,18 @@ PTZ Control + + + icon.icoicon.ico + + + + 48 + 48 + + - Qt::ToolButtonStyle::ToolButtonFollowStyle + Qt::ToolButtonStyle::ToolButtonIconOnly QTabWidget::TabShape::Rounded @@ -53,8 +75,17 @@ false + + This button is used to stop movement (It will send the PELCO-D Stop message) + + + This button is used to stop movement (It will send the PELCO-D Stop message) + - O + + + + @@ -64,7 +95,10 @@ false - 🢧 + + + + @@ -74,7 +108,10 @@ false - ↓ + + + + @@ -84,7 +121,10 @@ false - ↑ + + + + @@ -94,7 +134,10 @@ false - 🢤 + + + + @@ -109,6 +152,9 @@ 20 + + This option enables the Keyboard control to control PT via keyboard instead of buttons + Keyboard Control @@ -135,30 +181,17 @@ 171 + + The Logs will be displayed here when the connection has been established. + + + QFrame::Shape::NoFrame + + + false + - - - false - - - - 370 - 320 - 241 - 31 - - - - - Bahnschrift - 10 - - - - STOP - - @@ -305,6 +338,9 @@ false + + true + @@ -312,6 +348,9 @@ false + + true + @@ -325,30 +364,14 @@ 20 + + This option enables the PRESET Functionality to set-reset limits. + - Enable PRESET functionality + PRESET functionality - - - - 130 - 320 - 231 - 31 - - - - - Bahnschrift - 10 - - - - START - - @@ -367,7 +390,7 @@ 10 12 221 - 81 + 83 @@ -401,14 +424,92 @@ + + This button is used to stop movement (It will send the PELCO-D Stop message) + + + This button is used to stop movement (It will send the PELCO-D Stop message) + - Stop All movement + Stop Movement + + + + 380 + 320 + 221 + 41 + + + + + + + Qt::Orientation::Horizontal + + + + + + + + Bahnschrift + 10 + + + + Please click if you want to connect the remote PT device with selected Port-Baudrate Configuration + + + Please click if you want to connect the remote PT device with selected Port-Baudrate Configuration + + + Please click if you want to connect the remote PT device with selected Port-Baudrate Configuration + + + + + + START + + + + + + + + + + false + + + + Bahnschrift + 10 + + + + Please click if you want to disconnect the remote PT device. + + + Please click if you want to disconnect the remote PT device. + + + STOP + + + + + + + + @@ -424,6 +525,8 @@ File + + @@ -508,6 +611,16 @@ PTZ Control Help + + + New + + + + + Open.. + + diff --git a/resources.qrc b/resources.qrc new file mode 100644 index 0000000..8fabea0 --- /dev/null +++ b/resources.qrc @@ -0,0 +1,5 @@ + + + img/icon.ico + + \ No newline at end of file