Skip to content

Commit 34da93b

Browse files
author
Mich
committed
Changed settings .ini file location, command memory now sorts its contents alphabetically, Updated .md files with WIP list and more notes.
1 parent 046cea0 commit 34da93b

File tree

3 files changed

+42
-21
lines changed

3 files changed

+42
-21
lines changed

README.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,35 @@ Universal serial monitor with data plotting capabilities, based on [Qt](https://
33

44
![mainwindow](/docs/_screenshots/mainwindow.png)
55

6-
Features:
6+
**Features:**
7+
78
- In/out serial data terminal with command history,
89
- UDP network protocol support,
910
- Advanced data plotter with multiple graphs support and basic data filtering - uses [QCustomPlot](https://www.qcustomplot.com/),
1011
- Printer support, ability to save graph as image,
1112
- Read/write ".txt" data logs,
1213
- many more...
14+
---
15+
<a href="https://github.com/mich-w/QtSerialMonitor/releases/download/v1.0/QtSerialMonitor_1.1_win_x64.zip" download>Download QtSerialMonitor_v1.1_win_x64</a>
16+
-
17+
---
1318

14-
Enjoy !
19+
**Work in progress:**
1520

16-
<a href="https://github.com/mich-w/QtSerialMonitor/releases/download/v1.0/QtSerialMonitor_1.0_win_x64.zip" download>Download QtSerialMonitor_v1.0_win_x64</a>
21+
- "What’s this ?" popups for less obvious widgets and an introduction text/html doc displayed in the main text browser on first run.
22+
23+
- 3D Orientation Demo - for IMU testing (user will be able to toggle between chart view and a simple 3D scene containing an object rotating accordingly to received roll, pitch and yaw values, visualizing the sensor's orientation)
1724

18-
*Notes:*
25+
----
1926

27+
***Notes:***
2028

21-
*The app uses a custom-written parser, which searches the incoming message for plottable data in form of label-value set. At the moment, all labels and values **must be separated with a whitespace** in order to be recognized. Its possible to use separators like "=" and "," - parser will be replace them with whitespace before processing. If no label is found, a generic name will be used i.e. "Graph 0".*
29+
* The app uses a custom-written parser, which searches the incoming message for plottable data in form of label-value set. At the moment, all labels and values **must be separated with a whitespace** in order to be recognized. Its possible to use separators like "=" and "," - parser will be replace them with whitespace before processing. If no label is found, a generic name will be used i.e. "Graph 0".*
2230

23-
*Examples of supported formats:*
31+
Examples of supported formats:
2432

25-
- *"Roll = 1.23 Pitch = 45.6"*
26-
- *"Voltage: 1.23 (tabulator) Output: 4.56"*
27-
- *"1.23 4.56" (Graph_0 and Graph_1)*
33+
- "Roll = 1.23 Pitch = 45.6"
34+
- "Voltage: 1.23 (tabulator) Output: 4.56"
35+
- "1.23 4.56" (Graph 0 and Graph 1)
36+
37+
* Application uses QtSettings functionality and stores a simple .ini file on the hard drive in which it keeps its settings. Under Windows, the file should be located in *C:\ProgramData\QtSerialMonitor*. The settings are saved each time the app closes.

docs/index.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,35 @@ Universal serial monitor with data plotting capabilities, based on [Qt](https://
33

44
<img src="https://raw.githubusercontent.com/mich-w/QtSerialMonitor/master/docs/_screenshots/Sines3.gif">
55

6-
Features:
6+
**Features:**
7+
78
- In/out serial data terminal with command history,
89
- UDP network protocol support,
910
- Advanced data plotter with multiple graphs support and basic data filtering - uses [QCustomPlot](https://www.qcustomplot.com/),
1011
- Printer support, ability to save graph as image,
1112
- Read/write ".txt" data logs,
1213
- many more...
14+
---
15+
<a href="https://github.com/mich-w/QtSerialMonitor/releases/download/v1.0/QtSerialMonitor_1.1_win_x64.zip" download>Download QtSerialMonitor_v1.1_win_x64</a>
16+
-
17+
---
1318

14-
Enjoy !
19+
**Work in progress:**
1520

16-
<a href="https://github.com/mich-w/QtSerialMonitor/releases/download/v1.0/QtSerialMonitor_1.0_win_x64.zip" download>Download QtSerialMonitor_v1.0_win_x64</a>
21+
- "What’s this ?" popups for less obvious widgets and an introduction text/html doc displayed in the main text browser on first run.
22+
23+
- 3D Orientation Demo - for IMU testing (user will be able to toggle between chart view and a simple 3D scene containing an object rotating accordingly to received roll, pitch and yaw values, visualizing the sensor's orientation)
1724

18-
*Notes:*
25+
----
1926

27+
***Notes:***
2028

21-
*The app uses a custom-written parser, which searches the incoming message for plottable data in form of label-value set. At the moment, all labels and values **must be separated with a whitespace** in order to be recognized. Its possible to use separators like "=" and "," - parser will be replace them with whitespace before processing. If no label is found, a generic name will be used i.e. "Graph 0".*
29+
* The app uses a custom-written parser, which searches the incoming message for plottable data in form of label-value set. At the moment, all labels and values **must be separated with a whitespace** in order to be recognized. Its possible to use separators like "=" and "," - parser will be replace them with whitespace before processing. If no label is found, a generic name will be used i.e. "Graph 0".*
2230

23-
*Examples of supported formats:*
31+
Examples of supported formats:
2432

25-
- *"Roll = 1.23 Pitch = 45.6"*
26-
- *"Voltage: 1.23 (tabulator) Output: 4.56"*
27-
- *"1.23 4.56" (Graph_0 and Graph_1)*
33+
- "Roll = 1.23 Pitch = 45.6"
34+
- "Voltage: 1.23 (tabulator) Output: 4.56"
35+
- "1.23 4.56" (Graph 0 and Graph 1)
36+
37+
* Application uses QtSettings functionality and stores a simple .ini file on the hard drive in which it keeps its settings. Under Windows, the file should be located in *C:\ProgramData\QtSerialMonitor*. The settings are saved each time the app closes.

src/mainwindow.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void MainWindow::settingsLoadAll()
109109
{
110110
QSettings appSettings(QSettings::Format::IniFormat,
111111
QSettings::Scope::SystemScope,
112-
"mich-w", "QtSerialMonitor"); // Settings
112+
"QtSerialMonitor", "QtSerialMonitor"); // Settings
113113

114114
// ----- Info ----- //
115115
{
@@ -119,7 +119,7 @@ void MainWindow::settingsLoadAll()
119119
}
120120

121121
if (appSettings.value("Info/organizationName").value<QString>() != appSettings.organizationName() &&
122-
appSettings.value("Info/applicationName").value<QString>() != appSettings.applicationName())
122+
appSettings.value("Info/applicationName").value<QString>() != appSettings.applicationName())
123123
{
124124
qDebug() << "Abort loading settings ! organizationName or applicationName incorrect. Config file might be missing.";
125125
return;
@@ -206,7 +206,7 @@ void MainWindow::settingsSaveAll()
206206
{
207207
QSettings appSettings(QSettings::Format::IniFormat,
208208
QSettings::Scope::SystemScope,
209-
"mich-w", "QtSerialMonitor"); // Settings
209+
"QtSerialMonitor", "QtSerialMonitor"); // Settings
210210

211211
// ----- Info ----- //
212212
{
@@ -406,6 +406,7 @@ void MainWindow::comboBoxSendReturnPressedSlot()
406406
sendDatagram(ui->comboBoxSend->currentText());
407407

408408
ui->comboBoxSend->setCurrentText("");
409+
ui->comboBoxSend->model()->sort(0, Qt::SortOrder::AscendingOrder); // sort alphabetically
409410
}
410411

411412
void MainWindow::createTimers()

0 commit comments

Comments
 (0)