Skip to content

Commit b802b52

Browse files
author
Mehmet Aksoy
committed
Updates application to version 1.6.0
Updates the application version to 1.6.0. Refactors UI elements in the main window for improved layout and usability. Updates help information in the help window.
1 parent 8fa0733 commit b802b52

File tree

3 files changed

+126
-116
lines changed

3 files changed

+126
-116
lines changed

src/action_ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
except ImportError:
2525
requests = None
2626

27-
CURRENT_VERSION = "v1.5.1"
27+
CURRENT_VERSION = "v1.6.0"
2828

2929
def action_save_as(ui):
3030
"""

ui/help.ui

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,16 @@
3030
</property>
3131
<property name="html">
3232
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
33-
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
33+
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
3434
p, li { white-space: pre-wrap; }
35-
hr { height: 1px; border-width: 0; }
36-
li.unchecked::marker { content: &quot;\2610&quot;; }
37-
li.checked::marker { content: &quot;\2612&quot;; }
38-
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Segoe UI'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
39-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:696;&quot;&gt;Information&lt;/span&gt;&lt;/p&gt;
40-
&lt;p align=&quot;justify&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;The AFCOM (also known as Serial communication GUI program) tool is a software application that allows users to send and receive data via the serial port (COM port) of their computer. The tool can be used for various purposes, such as testing, debugging, or communicating with other devices that use the serial protocol. &lt;/span&gt;&lt;/p&gt;
41-
&lt;p align=&quot;justify&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:696;&quot;&gt;Features&lt;/span&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
42-
&lt;p align=&quot;justify&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;The COM port tool has the following features: It supports multiple COM ports and can detect the available ports automatically. It allows users to configure the parameters of the serial communication, such as baud rate. It provides a user-friendly interface that shows the transmitted and received data in hexadecimal, decimal, ASCII, or binary formats. It allows users to save and load the data to and from files.&lt;/span&gt;&lt;/p&gt;
43-
&lt;p align=&quot;justify&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:696;&quot;&gt;Legal Information&lt;/span&gt;&lt;/p&gt;
44-
&lt;p align=&quot;justify&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;This application incorporates Qt for Python (PySide), which is licensed under the GNU Lesser General Public License version 3 (LGPLv3). By using this software, you agree to comply with the terms of the LGPLv3 license. For more information about Qt for Python, visit https://www.qt.io/qt-for-python. A copy of the LGPLv3 license is included with this application.&lt;/span&gt;&lt;/p&gt;
45-
&lt;p align=&quot;justify&quot; style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
35+
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
36+
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Segoe UI'; font-size:12pt; font-weight:696;&quot;&gt;Information&lt;/span&gt;&lt;/p&gt;
37+
&lt;p align=&quot;justify&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Segoe UI'; font-size:12pt;&quot;&gt;The AFCOM (also known as Serial communication GUI program) tool is a software application that allows users to send and receive data via the serial port (COM port) of their computer. The tool can be used for various purposes, such as testing, debugging, or communicating with other devices that use the serial protocol. &lt;/span&gt;&lt;/p&gt;
38+
&lt;p align=&quot;justify&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Segoe UI'; font-size:12pt; font-weight:696;&quot;&gt;Features&lt;/span&gt;&lt;span style=&quot; font-family:'Segoe UI'; font-size:12pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
39+
&lt;p align=&quot;justify&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Segoe UI'; font-size:12pt;&quot;&gt;The COM port tool has the following features: It supports multiple COM ports and can detect the available ports automatically. It allows users to configure the parameters of the serial communication, such as baud rate. It provides a user-friendly interface that shows the transmitted and received data in hexadecimal, decimal, ASCII, or binary formats. It allows users to save and load the data to and from files.&lt;/span&gt;&lt;/p&gt;
40+
&lt;p align=&quot;justify&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Segoe UI'; font-size:12pt; font-weight:696;&quot;&gt;Legal Information&lt;/span&gt;&lt;/p&gt;
41+
&lt;p align=&quot;justify&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Segoe UI'; font-size:12pt;&quot;&gt;This application incorporates Qt for Python (PySide), which is licensed under the GNU Lesser General Public License version 3 (LGPLv3). By using this software, you agree to comply with the terms of the LGPLv3 license. For more information about Qt for Python, visit https://www.qt.io/qt-for-python. A copy of the LGPLv3 license is included with this application.&lt;/span&gt;&lt;/p&gt;
42+
&lt;p align=&quot;justify&quot; style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Segoe UI'; font-size:9pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
4643
</property>
4744
<property name="acceptRichText">
4845
<bool>false</bool>
@@ -58,7 +55,7 @@ li.checked::marker { content: &quot;\2612&quot;; }
5855
</rect>
5956
</property>
6057
<property name="text">
61-
<string>AFCOM Client v1.4.0.0 (C) 2020 - 2025 Author: Mehmet Cagri Aksoy github.com/mcagriaksoy</string>
58+
<string>AFCOM Client v1.6.0 (C) 2020 - 2025 Author: Mehmet Cagri Aksoy github.com/mcagriaksoy</string>
6259
</property>
6360
</widget>
6461
</widget>

ui/main_window.ui

Lines changed: 115 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>1026</width>
10-
<height>597</height>
9+
<width>1015</width>
10+
<height>604</height>
1111
</rect>
1212
</property>
1313
<property name="sizePolicy">
@@ -103,8 +103,52 @@
103103
</item>
104104
</layout>
105105
</item>
106+
<item row="0" column="0">
107+
<widget class="QTextEdit" name="data_textEdit">
108+
<property name="autoFillBackground">
109+
<bool>false</bool>
110+
</property>
111+
<property name="frameShape">
112+
<enum>QFrame::NoFrame</enum>
113+
</property>
114+
<property name="autoFormatting">
115+
<set>QTextEdit::AutoNone</set>
116+
</property>
117+
<property name="readOnly">
118+
<bool>true</bool>
119+
</property>
120+
</widget>
121+
</item>
122+
<item row="2" column="0">
123+
<widget class="QTextEdit" name="send_data_text">
124+
<property name="sizePolicy">
125+
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
126+
<horstretch>5</horstretch>
127+
<verstretch>5</verstretch>
128+
</sizepolicy>
129+
</property>
130+
<property name="maximumSize">
131+
<size>
132+
<width>5000</width>
133+
<height>28</height>
134+
</size>
135+
</property>
136+
<property name="inputMethodHints">
137+
<set>Qt::ImhNone</set>
138+
</property>
139+
<property name="frameShape">
140+
<enum>QFrame::NoFrame</enum>
141+
</property>
142+
<property name="acceptRichText">
143+
<bool>false</bool>
144+
</property>
145+
<property name="placeholderText">
146+
<string>Please enter the data want to sent...</string>
147+
</property>
148+
</widget>
149+
</item>
106150
<item row="0" column="1">
107-
<layout class="QVBoxLayout" name="verticalLayout_config" stretch="2,0,0,0,0,0">
151+
<layout class="QVBoxLayout" name="verticalLayout_config" stretch="2,0,0,0,0,0,0">
108152
<property name="spacing">
109153
<number>6</number>
110154
</property>
@@ -472,50 +516,49 @@
472516
</layout>
473517
</item>
474518
<item>
475-
<widget class="QPushButton" name="nightMode_Button">
476-
<property name="text">
477-
<string>Night Mode</string>
519+
<widget class="QLabel" name="label_9">
520+
<property name="font">
521+
<font>
522+
<family>Arial</family>
523+
<pointsize>9</pointsize>
524+
<weight>50</weight>
525+
<bold>false</bold>
526+
</font>
478527
</property>
479-
</widget>
480-
</item>
481-
<item>
482-
<widget class="QLabel" name="label_12">
483528
<property name="text">
484-
<string>Connection Options:</string>
529+
<string>Status :</string>
485530
</property>
486531
</widget>
487532
</item>
488533
<item>
489-
<widget class="QTextEdit" name="options_textEdit">
534+
<widget class="QPushButton" name="start_button">
490535
<property name="maximumSize">
491536
<size>
492-
<width>205</width>
537+
<width>250</width>
493538
<height>16777215</height>
494539
</size>
495540
</property>
496-
<property name="frameShape">
497-
<enum>QFrame::NoFrame</enum>
541+
<property name="font">
542+
<font>
543+
<pointsize>9</pointsize>
544+
<weight>75</weight>
545+
<bold>true</bold>
546+
</font>
547+
</property>
548+
<property name="autoFillBackground">
549+
<bool>false</bool>
550+
</property>
551+
<property name="styleSheet">
552+
<string notr="true"/>
553+
</property>
554+
<property name="text">
555+
<string>CONNECT</string>
498556
</property>
499557
</widget>
500558
</item>
501559
<item>
502-
<layout class="QFormLayout" name="formLayout_6">
503-
<item row="0" column="0">
504-
<widget class="QLabel" name="label_9">
505-
<property name="font">
506-
<font>
507-
<family>Arial</family>
508-
<pointsize>9</pointsize>
509-
<weight>50</weight>
510-
<bold>false</bold>
511-
</font>
512-
</property>
513-
<property name="text">
514-
<string>Status :</string>
515-
</property>
516-
</widget>
517-
</item>
518-
<item row="0" column="1">
560+
<layout class="QHBoxLayout" name="horizontalLayout_2">
561+
<item>
519562
<widget class="QLabel" name="status_label">
520563
<property name="font">
521564
<font>
@@ -533,87 +576,57 @@
533576
</property>
534577
</widget>
535578
</item>
536-
</layout>
537-
</item>
538-
<item>
539-
<layout class="QHBoxLayout" name="horizontalLayout_5">
540-
<property name="spacing">
541-
<number>4</number>
542-
</property>
543579
<item>
544-
<widget class="QPushButton" name="start_button">
545-
<property name="maximumSize">
580+
<spacer name="horizontalSpacer">
581+
<property name="orientation">
582+
<enum>Qt::Horizontal</enum>
583+
</property>
584+
<property name="sizeHint" stdset="0">
546585
<size>
547-
<width>250</width>
548-
<height>16777215</height>
586+
<width>20</width>
587+
<height>20</height>
549588
</size>
550589
</property>
551-
<property name="font">
552-
<font>
553-
<pointsize>9</pointsize>
554-
<weight>75</weight>
555-
<bold>true</bold>
556-
</font>
557-
</property>
558-
<property name="autoFillBackground">
559-
<bool>false</bool>
560-
</property>
561-
<property name="styleSheet">
562-
<string notr="true"/>
563-
</property>
590+
</spacer>
591+
</item>
592+
<item>
593+
<widget class="QPushButton" name="nightMode_Button">
564594
<property name="text">
565-
<string>CONNECT</string>
595+
<string>🌃 Night Mode</string>
566596
</property>
567597
</widget>
568598
</item>
569599
</layout>
570600
</item>
601+
<item>
602+
<widget class="QLabel" name="label_12">
603+
<property name="text">
604+
<string>Connection Options:</string>
605+
</property>
606+
</widget>
607+
</item>
608+
<item>
609+
<widget class="QTextEdit" name="options_textEdit">
610+
<property name="maximumSize">
611+
<size>
612+
<width>205</width>
613+
<height>16777215</height>
614+
</size>
615+
</property>
616+
<property name="frameShape">
617+
<enum>QFrame::NoFrame</enum>
618+
</property>
619+
</widget>
620+
</item>
621+
<item>
622+
<layout class="QHBoxLayout" name="horizontalLayout_5">
623+
<property name="spacing">
624+
<number>4</number>
625+
</property>
626+
</layout>
627+
</item>
571628
</layout>
572629
</item>
573-
<item row="0" column="0">
574-
<widget class="QTextEdit" name="data_textEdit">
575-
<property name="autoFillBackground">
576-
<bool>false</bool>
577-
</property>
578-
<property name="frameShape">
579-
<enum>QFrame::NoFrame</enum>
580-
</property>
581-
<property name="autoFormatting">
582-
<set>QTextEdit::AutoNone</set>
583-
</property>
584-
<property name="readOnly">
585-
<bool>true</bool>
586-
</property>
587-
</widget>
588-
</item>
589-
<item row="2" column="0">
590-
<widget class="QTextEdit" name="send_data_text">
591-
<property name="sizePolicy">
592-
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
593-
<horstretch>5</horstretch>
594-
<verstretch>5</verstretch>
595-
</sizepolicy>
596-
</property>
597-
<property name="maximumSize">
598-
<size>
599-
<width>5000</width>
600-
<height>28</height>
601-
</size>
602-
</property>
603-
<property name="inputMethodHints">
604-
<set>Qt::ImhNone</set>
605-
</property>
606-
<property name="frameShape">
607-
<enum>QFrame::NoFrame</enum>
608-
</property>
609-
<property name="acceptRichText">
610-
<bool>false</bool>
611-
</property>
612-
<property name="placeholderText">
613-
<string>Please enter the data want to sent...</string>
614-
</property>
615-
</widget>
616-
</item>
617630
</layout>
618631
</item>
619632
</layout>
@@ -623,7 +636,7 @@
623636
<rect>
624637
<x>0</x>
625638
<y>0</y>
626-
<width>1026</width>
639+
<width>1015</width>
627640
<height>21</height>
628641
</rect>
629642
</property>

0 commit comments

Comments
 (0)