Skip to content

Commit

Permalink
upversion, small histogram ui improvement
Browse files Browse the repository at this point in the history
Signed-off-by: Martin <[email protected]>
  • Loading branch information
Ho-Ro committed Mar 17, 2020
1 parent 94407ee commit febf065
Show file tree
Hide file tree
Showing 9 changed files with 95 additions and 79 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
3.0.3
2020-03-17
FW 0205
Fix histogram issue when switching TY -> XY

3.0.2
2020-03-01
Apply realtime prio and scheduler
Histogram for TY voltage traces
Variable probe gain setting
French translation complete

3.0.1
2019-12-13
More robust USB handling for all OSs
Expand Down
2 changes: 1 addition & 1 deletion openhantek/src/OH_BUILD.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Do not edit, will be re-created at each commit!
#define OH_BUILD "20200315 build 616"
#define OH_BUILD "20200317 build 617"
2 changes: 1 addition & 1 deletion openhantek/src/OH_VERSION.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// define the version that is shown on top of the program
// if undefined (for development commits) the build will be shown by OpenHantek

// #define OH_VERSION "3.0.2"
#define OH_VERSION "3.0.3"


# ifdef OH_VERSION
Expand Down
4 changes: 4 additions & 0 deletions openhantek/src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ MainWindow::MainWindow(HantekDsoControl *dsoControl, DsoSettings *settings, Expo
connect(horizontalDock, &HorizontalDock::calfreqChanged, [dsoControl, this]() {
dsoControl->setCalFreq(dsoSettings->scope.horizontal.calfreq);
});
connect(horizontalDock, &HorizontalDock::formatChanged, [this]( Dso::GraphFormat format ) {
ui->actionHistogram->setEnabled( format == Dso::GraphFormat::TY );
});

connect(triggerDock, &TriggerDock::modeChanged, dsoControl, &HantekDsoControl::setTriggerMode);
connect(triggerDock, &TriggerDock::modeChanged, dsoWidget, &DsoWidget::updateTriggerMode);
Expand Down Expand Up @@ -298,6 +301,7 @@ MainWindow::MainWindow(HantekDsoControl *dsoControl, DsoSettings *settings, Expo
this->ui->actionHistogram->setStatusTip(tr("Show histogram"));
});
ui->actionHistogram->setChecked(dsoSettings->scope.histogram);
ui->actionHistogram->setEnabled( scope->horizontal.format == Dso::GraphFormat::TY );

connect(ui->actionZoom, &QAction::toggled, [this](bool enabled) {
dsoSettings->view.zoom = enabled;
Expand Down
2 changes: 1 addition & 1 deletion openhantek/src/post/graphgenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ class GraphGenerator : public QObject, public Processor {

public:
GraphGenerator(const DsoSettingsScope *scope );
void generateGraphsXY(PPresult *result);

private:
void generateGraphsTYvoltage(PPresult *result);
void generateGraphsTYspectrum(PPresult *result);
void generateGraphsXY(PPresult *result);

bool ready = false;
const DsoSettingsScope *scope;
Expand Down
38 changes: 19 additions & 19 deletions openhantek/translations/openhantek_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -653,93 +653,93 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="214"/>
<location filename="../src/mainwindow.cpp" line="217"/>
<source>Stop</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="215"/>
<location filename="../src/mainwindow.cpp" line="218"/>
<source>Stop the oscilloscope</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="218"/>
<location filename="../src/mainwindow.cpp" line="221"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="219"/>
<location filename="../src/mainwindow.cpp" line="222"/>
<source>Start the oscilloscope</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="239"/>
<location filename="../src/mainwindow.cpp" line="242"/>
<source>Open file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="239"/>
<location filename="../src/mainwindow.cpp" line="260"/>
<location filename="../src/mainwindow.cpp" line="242"/>
<location filename="../src/mainwindow.cpp" line="263"/>
<source>Settings (*.ini)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="260"/>
<location filename="../src/mainwindow.cpp" line="263"/>
<source>Save settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="286"/>
<location filename="../src/mainwindow.cpp" line="289"/>
<source>Disable fading of previous graphs</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="288"/>
<location filename="../src/mainwindow.cpp" line="291"/>
<source>Enable fading of previous graphs</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="296"/>
<location filename="../src/mainwindow.cpp" line="299"/>
<source>Hide histogram</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="298"/>
<location filename="../src/mainwindow.cpp" line="301"/>
<source>Show histogram</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="306"/>
<location filename="../src/mainwindow.cpp" line="310"/>
<source>Hide magnified scope</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="308"/>
<location filename="../src/mainwindow.cpp" line="312"/>
<source>Show magnified scope</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="318"/>
<location filename="../src/mainwindow.cpp" line="322"/>
<source>Hide measurements</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="320"/>
<location filename="../src/mainwindow.cpp" line="324"/>
<source>Show measurements</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="337"/>
<location filename="../src/mainwindow.cpp" line="341"/>
<source>About OpenHantek6022 (%1)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="338"/>
<location filename="../src/mainwindow.cpp" line="342"/>
<source>&lt;p&gt;Open source software for Hantek6022 USB oscilloscopes&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2010, 2011 Oliver Haag&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2012-2020 OpenHantek community&lt;br/&gt;&lt;a href=&apos;https://github.com/OpenHantek&apos;&gt;https://github.com/OpenHantek&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Open source firmware copyright &amp;copy; 2019-2020 Ho-Ro&lt;br/&gt;&lt;a href=&apos;https://github.com/Ho-Ro/Hantek6022API&apos;&gt;https://github.com/Ho-Ro/Hantek6022API&lt;/a&gt;&lt;/p&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="367"/>
<location filename="../src/mainwindow.cpp" line="371"/>
<source>%1: %2</source>
<translation type="unfinished"></translation>
</message>
Expand Down
38 changes: 19 additions & 19 deletions openhantek/translations/openhantek_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -653,93 +653,93 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="214"/>
<location filename="../src/mainwindow.cpp" line="217"/>
<source>Stop</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="215"/>
<location filename="../src/mainwindow.cpp" line="218"/>
<source>Stop the oscilloscope</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="218"/>
<location filename="../src/mainwindow.cpp" line="221"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="219"/>
<location filename="../src/mainwindow.cpp" line="222"/>
<source>Start the oscilloscope</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="239"/>
<location filename="../src/mainwindow.cpp" line="242"/>
<source>Open file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="239"/>
<location filename="../src/mainwindow.cpp" line="260"/>
<location filename="../src/mainwindow.cpp" line="242"/>
<location filename="../src/mainwindow.cpp" line="263"/>
<source>Settings (*.ini)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="260"/>
<location filename="../src/mainwindow.cpp" line="263"/>
<source>Save settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="286"/>
<location filename="../src/mainwindow.cpp" line="289"/>
<source>Disable fading of previous graphs</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="288"/>
<location filename="../src/mainwindow.cpp" line="291"/>
<source>Enable fading of previous graphs</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="296"/>
<location filename="../src/mainwindow.cpp" line="299"/>
<source>Hide histogram</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="298"/>
<location filename="../src/mainwindow.cpp" line="301"/>
<source>Show histogram</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="306"/>
<location filename="../src/mainwindow.cpp" line="310"/>
<source>Hide magnified scope</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="308"/>
<location filename="../src/mainwindow.cpp" line="312"/>
<source>Show magnified scope</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="318"/>
<location filename="../src/mainwindow.cpp" line="322"/>
<source>Hide measurements</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="320"/>
<location filename="../src/mainwindow.cpp" line="324"/>
<source>Show measurements</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="337"/>
<location filename="../src/mainwindow.cpp" line="341"/>
<source>About OpenHantek6022 (%1)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="338"/>
<location filename="../src/mainwindow.cpp" line="342"/>
<source>&lt;p&gt;Open source software for Hantek6022 USB oscilloscopes&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2010, 2011 Oliver Haag&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2012-2020 OpenHantek community&lt;br/&gt;&lt;a href=&apos;https://github.com/OpenHantek&apos;&gt;https://github.com/OpenHantek&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Open source firmware copyright &amp;copy; 2019-2020 Ho-Ro&lt;br/&gt;&lt;a href=&apos;https://github.com/Ho-Ro/Hantek6022API&apos;&gt;https://github.com/Ho-Ro/Hantek6022API&lt;/a&gt;&lt;/p&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="367"/>
<location filename="../src/mainwindow.cpp" line="371"/>
<source>%1: %2</source>
<translation type="unfinished"></translation>
</message>
Expand Down
38 changes: 19 additions & 19 deletions openhantek/translations/openhantek_it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -653,93 +653,93 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="214"/>
<location filename="../src/mainwindow.cpp" line="217"/>
<source>Stop</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="215"/>
<location filename="../src/mainwindow.cpp" line="218"/>
<source>Stop the oscilloscope</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="218"/>
<location filename="../src/mainwindow.cpp" line="221"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="219"/>
<location filename="../src/mainwindow.cpp" line="222"/>
<source>Start the oscilloscope</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="239"/>
<location filename="../src/mainwindow.cpp" line="242"/>
<source>Open file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="239"/>
<location filename="../src/mainwindow.cpp" line="260"/>
<location filename="../src/mainwindow.cpp" line="242"/>
<location filename="../src/mainwindow.cpp" line="263"/>
<source>Settings (*.ini)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="260"/>
<location filename="../src/mainwindow.cpp" line="263"/>
<source>Save settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="286"/>
<location filename="../src/mainwindow.cpp" line="289"/>
<source>Disable fading of previous graphs</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="288"/>
<location filename="../src/mainwindow.cpp" line="291"/>
<source>Enable fading of previous graphs</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="296"/>
<location filename="../src/mainwindow.cpp" line="299"/>
<source>Hide histogram</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="298"/>
<location filename="../src/mainwindow.cpp" line="301"/>
<source>Show histogram</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="306"/>
<location filename="../src/mainwindow.cpp" line="310"/>
<source>Hide magnified scope</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="308"/>
<location filename="../src/mainwindow.cpp" line="312"/>
<source>Show magnified scope</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="318"/>
<location filename="../src/mainwindow.cpp" line="322"/>
<source>Hide measurements</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="320"/>
<location filename="../src/mainwindow.cpp" line="324"/>
<source>Show measurements</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="337"/>
<location filename="../src/mainwindow.cpp" line="341"/>
<source>About OpenHantek6022 (%1)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="338"/>
<location filename="../src/mainwindow.cpp" line="342"/>
<source>&lt;p&gt;Open source software for Hantek6022 USB oscilloscopes&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2010, 2011 Oliver Haag&lt;/p&gt;&lt;p&gt;Copyright &amp;copy; 2012-2020 OpenHantek community&lt;br/&gt;&lt;a href=&apos;https://github.com/OpenHantek&apos;&gt;https://github.com/OpenHantek&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Open source firmware copyright &amp;copy; 2019-2020 Ho-Ro&lt;br/&gt;&lt;a href=&apos;https://github.com/Ho-Ro/Hantek6022API&apos;&gt;https://github.com/Ho-Ro/Hantek6022API&lt;/a&gt;&lt;/p&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="367"/>
<location filename="../src/mainwindow.cpp" line="371"/>
<source>%1: %2</source>
<translation type="unfinished"></translation>
</message>
Expand Down
Loading

0 comments on commit febf065

Please sign in to comment.