Code cleanup

Added comments and a folder structure.  No functional changes.
This commit is contained in:
EspoTek 2016-11-29 09:56:21 +11:00
parent b32392b525
commit 644359d1a2
87 changed files with 6033 additions and 6186 deletions

View File

@ -11,45 +11,24 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
TARGET = Labrador
TEMPLATE = app
include(ui_elements.pri)
SOURCES += main.cpp\
mainwindow.cpp \
qcustomplot.cpp \
buffercontrol.cpp \
esposlider.cpp \
espospinbox.cpp \
espocombobox.cpp \
functiongencontrol.cpp \
isodriver.cpp \
isobuffer.cpp \
siprint.cpp \
noclosemenu.cpp \
cursorenabler.cpp \
desktop_settings.cpp \
deviceconnecteddisplay.cpp \
timedtickbox.cpp \
scoperangeenterdialog.cpp \
voltagespinbox.cpp \
genericusbdriver.cpp
HEADERS += mainwindow.h \
qcustomplot.h \
buffercontrol.h \
esposlider.h \
espospinbox.h \
espocombobox.h \
functiongencontrol.h \
xmega.h \
isodriver.h \
isobuffer.h \
desktop_settings.h \
siprint.h \
noclosemenu.h \
cursorenabler.h \
deviceconnecteddisplay.h \
timedtickbox.h \
scoperangeenterdialog.h \
voltagespinbox.h \
genericusbdriver.h
FORMS += mainwindow.ui \
@ -58,10 +37,6 @@ FORMS += mainwindow.ui \
RESOURCES += \
resources.qrc
DESTDIR = bin
RC_ICONS = appicon.ico
@ -108,3 +83,6 @@ macx:DEPENDPATH += $$PWD/build_mac/libusb/include/libusb-1.0
unix:SOURCES += unixusbdriver.cpp
unix:HEADERS += unixusbdriver.h
INCLUDEPATH += $$PWD/ui_elements
DEPENDPATH += $$PWD/ui_elements

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.1.0, 2016-11-26T17:25:10. -->
<!-- Written by QtCreator 4.1.0, 2016-11-28T18:20:47. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>

View File

@ -191,6 +191,7 @@ Makefile: Labrador.pro C:\Qt\5.7\msvc2013_64\mkspecs\win32-msvc2013\qmake.conf C
C:\Qt\5.7\msvc2013_64\mkspecs\features\exclusive_builds.prf \
C:\Qt\5.7\msvc2013_64\mkspecs\features\default_pre.prf \
C:\Qt\5.7\msvc2013_64\mkspecs\features\win32\default_pre.prf \
ui_elements.pri \
C:\Qt\5.7\msvc2013_64\mkspecs\features\resolve_config.prf \
C:\Qt\5.7\msvc2013_64\mkspecs\features\exclusive_builds_post.prf \
C:\Qt\5.7\msvc2013_64\mkspecs\features\default_post.prf \
@ -333,6 +334,7 @@ C:\Qt\5.7\msvc2013_64\mkspecs\features\spec_post.prf:
C:\Qt\5.7\msvc2013_64\mkspecs\features\exclusive_builds.prf:
C:\Qt\5.7\msvc2013_64\mkspecs\features\default_pre.prf:
C:\Qt\5.7\msvc2013_64\mkspecs\features\win32\default_pre.prf:
ui_elements.pri:
C:\Qt\5.7\msvc2013_64\mkspecs\features\resolve_config.prf:
C:\Qt\5.7\msvc2013_64\mkspecs\features\exclusive_builds_post.prf:
C:\Qt\5.7\msvc2013_64\mkspecs\features\default_post.prf:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1,6 +1,8 @@
#ifndef DESKTOP_SETTINGS_H
#define DESKTOP_SETTINGS_H
//Just a whole lot of variables not directly related to xmega.
//USB iso stuff
extern int MAX_TRANSFER_SIZE;
extern int MAX_PENDING_TRANSFERS;
@ -20,7 +22,6 @@ extern int MULTIMETER_PERIOD;
extern double SERIAL_DELAY;
#define DEBUG_SETTINGSDOTSET
#define COLUMN_BREAK 749
#define USB_RECONNECT_PERIOD 250
@ -28,5 +29,7 @@ extern double SERIAL_DELAY;
#define VALID_DATA_PER_750 750
#define COLUMN_BREAK VALID_DATA_PER_750
#endif // DESKTOP_SETTINGS_H

View File

@ -8,6 +8,8 @@
#include <QFile>
#include "xmega.h"
//functionGenControl is a centralised object to control all of the high-level function gen commands for both channels.
class functionGenControl : public QLabel
{
Q_OBJECT

View File

@ -21,6 +21,9 @@
#define ISO_TIMER_PERIOD 16
#define MAX_VALID_INDEX 374
//genericUsbDriver handles the parts of the USB stack that are not platform-dependent.
//It exists as a superclass for winUsbDriver (on Windows) or unixUsbDriver (on Linux)
class genericUsbDriver : public QLabel
{
Q_OBJECT

View File

@ -14,10 +14,14 @@
class isoDriver;
//isoBuffer is a generic class that enables O(1) read times (!!!) on all read/write operations, while maintaining a huge buffer size.
//Imagine it as a circular buffer, but with access functions specifically designed for isochronous data from an Xmega.
class isoBuffer
{
public:
isoBuffer(int bufferLen, isoDriver *caller, unsigned char channel_value);
//Generic Functions
void openFile(QString newFile);
void writeBuffer_char(char *data, int len);
void writeBuffer_short(short *data, int len);
@ -28,27 +32,32 @@ public:
void serialDecode(double baudRate);
int serialDistance();
void serialBegin();
//Generic Vars
QPlainTextEdit *console, *console1, *console2;
bool serialAutoScroll = true;
unsigned char channel = 255;
private:
//Generic Vars
short *buffer, *readData = NULL;
FILE* fptr = NULL;
int bufferEnd, back = 0, serialPtr = 0;
int samplesPerSecond;
bool firstTime = true;
//File I/O
bool fileIOEnabled = false;
FILE* fptr = NULL;
QFile *currentFile;
isoDriver *parent;
unsigned int currentColumn = 0;
//Serial Decode
bool serialDecodingSymbol = false;
unsigned char symbolMax = 7;
unsigned char symbolCurrent = 0;
unsigned short symbol = 0;
char serialPhase = 0;
//Generic Functions
void decodeSymbol(unsigned char newBit);
void marchSerialPtr(int bitPeriod_samples);
char serialPhase = 0;
unsigned char numOnes(unsigned short var);
QFile *currentFile;
bool fileIOEnabled = false;
unsigned int currentColumn = 0;
isoDriver *parent;
double sampleConvert(short sample, int TOP, bool AC);
public slots:
void enableFileIO(QFile *file);

View File

@ -12,60 +12,38 @@
class isoBuffer;
//isoDriver is a huge class. It handles everything related to the isochronous IN stream - and perhaps that constraint was applied a bit too loosely (spot the C programmer...).
//Too much stuff is handled in this class, and it's too heavily entangled with the (generic/win/unix)UsbDriver classes.
//That is one of the things I plan on fixing, and in fact the reason why I began the commenting!
class isoDriver : public QLabel
{
Q_OBJECT
public:
explicit isoDriver(QWidget *parent = 0);
void setDriver(genericUsbDriver *newDriver);
void setAxes(QCustomPlot *newAxes);
bool cursorStatsEnabled = true;
//Generic Vars
isoBuffer *internalBuffer375_CH1, *internalBuffer375_CH2, *internalBuffer750;
int baudRate_CH1 = 9600, baudRate_CH2 = 9600;
double delay = 0, window = 0.01;
QCPItemText *cursorTextPtr;
genericUsbDriver *driver;
//State Vars
bool AC_CH1 = false, AC_CH2 = false;
bool cursorStatsEnabled = true;
int baudRate_CH1 = 9600, baudRate_CH2 = 9600;
double currentVmean;
//Display Control Vars (Variables that control how the buffers are displayed)
double delay = 0, window = 0.01;
double y0=0, y1=0, x0=0, x1=0;
double topRange=2.5, botRange=-0.5;
bool AC_CH1 = false, AC_CH2 = false;
genericUsbDriver *driver;
double currentVmean;
//Generic Functions
void setDriver(genericUsbDriver *newDriver);
void setAxes(QCustomPlot *newAxes);
private:
QCustomPlot *axes;
double windowAtPause = 0.01;
QTimer* isoTimer = NULL, *slowTimer = NULL;
short *readData375_CH1, *readData375_CH2, *readData750;
long total_read = 0;
void analogConvert(short *shortPtr, QVector<double> *doublePtr, int TOP, bool AC);
void digitalConvert(short *shortPtr, QVector<double> *doublePtr);
//Those bloody bools that just Enable/Disable a single property
bool paused_CH1 = false, paused_CH2 = false, paused_multimeter = false;
void frameActionGeneric(char CH1_mode, char CH2_mode);
char *isoTemp = NULL;
short *isoTemp_short = NULL;
bool properlyPaused();
void autoGain(void);
double multi = 0;
bool autoGainEnabled = true;
bool placingHoriAxes = false, placingVertAxes = false, horiCursorEnabled = false, vertCursorEnabled = false;
void udateCursors(void);
short reverseFrontEnd(double voltage);
int trigger(void);
bool triggerSeeking = true;
bool triggerEnabled = false;
double triggerLevel = 0;
enum triggerType_enum {rising_ch1 = 0, falling_ch1 = 1, rising_ch2 = 2, falling_ch2 = 3};
triggerType_enum triggerType = rising_ch1;
unsigned int length;
siprint *v0, *v1, *dv, *t0, *t1, *dt, *f;
bool singleShotEnabled = false;
double triggerDelay;
int triggerCountSeeking = 0, triggerCountNotSeeking = 0;
unsigned char triggerWaiting = 0;
bool firstFrame = true;
void multimeterAction();
double currentVmax, currentVmin;
enum multimeterType_enum {V = 0, I = 1, R = 2, C = 3};
multimeterType_enum multimeterType = V;
double seriesResistance = 0;
bool multimeterShow = false;
bool autoMultimeterV = true;
bool autoMultimeterI = true;
@ -75,10 +53,46 @@ private:
bool forceAmps = false;
bool serialDecodeEnabled_CH1 = false, serialDecodeEnabled_CH2 = false;
bool XYmode = false;
double xmin = 20, xmax = -20, ymin = 20, ymax = -20;
bool update_CH1 = true, update_CH2 = true;
void broadcastStats(bool CH2);
bool snapshotEnabled = false;
bool firstFrame = true;
double triggerDelay;
bool singleShotEnabled = false;
//Generic Functions
void analogConvert(short *shortPtr, QVector<double> *doublePtr, int TOP, bool AC);
void digitalConvert(short *shortPtr, QVector<double> *doublePtr);
bool properlyPaused();
void autoGain(void);
void udateCursors(void);
short reverseFrontEnd(double voltage);
int trigger(void);
void multimeterAction();
void broadcastStats(bool CH2);
void frameActionGeneric(char CH1_mode, char CH2_mode);
//Variables that are just pointers to other classes/vars
QCustomPlot *axes;
short *readData375_CH1, *readData375_CH2, *readData750;
char *isoTemp = NULL;
short *isoTemp_short = NULL;
siprint *v0, *v1, *dv, *t0, *t1, *dt, *f;
//Scope/MM++ related variables
double currentVmax, currentVmin;
double triggerLevel = 0;
enum triggerType_enum {rising_ch1 = 0, falling_ch1 = 1, rising_ch2 = 2, falling_ch2 = 3};
triggerType_enum triggerType = rising_ch1;
double multi = 0;
int triggerCountSeeking = 0, triggerCountNotSeeking = 0;
unsigned char triggerWaiting = 0;
double xmin = 20, xmax = -20, ymin = 20, ymax = -20;
//Pure MM++ related variables
enum multimeterType_enum {V = 0, I = 1, R = 2, C = 3};
multimeterType_enum multimeterType = V;
double seriesResistance = 0;
//Generic Vars
double windowAtPause = 0.01;
QTimer* isoTimer = NULL, *slowTimer = NULL;
long total_read = 0;
unsigned int length;
QFile *snapshotFile_CH1;
QFile *snapshotFile_CH2;
@ -102,7 +116,6 @@ signals:
void sendVmax_CH2(double);
void sendVmin_CH2(double);
void sendVmean_CH2(double);
public slots:
void setWindow(int newWindow);
void setVoltageRange(QWheelEvent *event);

View File

@ -25,7 +25,7 @@
#include "isobuffer.h"
//The Main Window object. This has a lot of control information too (keyboard shortcuts etc.)!
@ -41,8 +41,8 @@ public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void resizeEvent(QResizeEvent *event);
private slots:
//Oscilloscope
void on_actionGain0_5_triggered();
void on_actionGain1_triggered();
void on_actionGain2_triggered();
@ -53,7 +53,19 @@ private slots:
void on_actionGain64_triggered();
void on_actionGainAuto_triggered();
void on_actionCursor_Stats_triggered(bool checked);
void on_actionAutomatically_Enable_Cursors_toggled(bool arg1);
void on_action60FPS_toggled(bool enabled);
void on_action30FPS_toggled(bool enabled);
void on_action20FPS_toggled(bool enabled);
void on_action15FPS_toggled(bool enabled);
void on_action10FPS_toggled(bool enabled);
void on_action5FPS_toggled(bool enabled);
void on_actionSnap_to_Cursors_triggered();
void on_actionEnter_Manually_triggered();
void connectDisplaySignals();
//Logic Analyzer
void on_action300_toggled(bool arg1);
void on_action600_toggled(bool arg1);
void on_action1200_toggled(bool arg1);
@ -84,49 +96,43 @@ private slots:
void cycleBaudRate_CH2();
void cycleBaudRateBackwards_CH2();
//Deprecated/Unsupported
void timeBaseNeedsChanging(bool positive);
void on_actionForce_Square_triggered(bool checked);
void helloWorld();
//Keyboard Shortcuts
void arrowUpTriggered();
void arrowDownTriggered();
void ctrlArrowUpTriggered();
void ctrlArrowDownTriggered();
void cycleDelayLeft();
void cycleDelayRight();
void on_actionAutomatically_Enable_Cursors_toggled(bool arg1);
void on_action60FPS_toggled(bool enabled);
void on_action30FPS_toggled(bool enabled);
void on_action20FPS_toggled(bool enabled);
void on_action15FPS_toggled(bool enabled);
void on_action10FPS_toggled(bool enabled);
void on_action5FPS_toggled(bool enabled);
//Power Supply
void on_actionAuto_Lock_toggled(bool arg1);
void on_actionSnap_to_Cursors_triggered();
void on_actionEnter_Manually_triggered();
void helloWorld();
//File/other
void on_actionRecord_triggered(bool checked);
void on_actionTake_Snapshot_triggered();
void reinitUsb(void);
private:
//Generic Vars
Ui::MainWindow *ui;
QWheelEvent *wheelEmu;
bool forceSquare = false;
QCPItemText *textLabel;
QDir *outputDir;
QFile *output375_CH1, *output375_CH2, *output750;
//Generic Functions
void initialisePlot();
void labelPsu();
void menuSetup();
void initShortcuts();
void readSettingsFile();
//Shortcut pointers
QActionGroup *gainGroup;
QActionGroup *rangeGroupV;
QActionGroup *rangeGroupI;
@ -152,15 +158,6 @@ private:
QShortcut *shortcut_snapScopeToCursors;\
QShortcut *shortcut_manualRange;
QShortcut *shortcut_snapshot;
QWheelEvent *wheelEmu;
bool forceSquare = false;
QCPItemText *textLabel;
QDir *outputDir;
QFile *output375_CH1, *output375_CH2, *output750;
};
#endif // MAINWINDOW_H

Binary file not shown.

View File

@ -6,7 +6,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../buffercontrol.h"
#include "../ui_elements/buffercontrol.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)

View File

@ -6,7 +6,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../cursorenabler.h"
#include "../ui_elements/cursorenabler.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)

View File

@ -6,7 +6,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../deviceconnecteddisplay.h"
#include "../ui_elements/deviceconnecteddisplay.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)

View File

@ -6,7 +6,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../espocombobox.h"
#include "../ui_elements/espocombobox.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)

View File

@ -6,7 +6,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../esposlider.h"
#include "../ui_elements/esposlider.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)

View File

@ -6,7 +6,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../espospinbox.h"
#include "../ui_elements/espospinbox.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)

View File

@ -42,57 +42,57 @@ QT_MOC_LITERAL(9, 191, 25), // "on_actionGain64_triggered"
QT_MOC_LITERAL(10, 217, 27), // "on_actionGainAuto_triggered"
QT_MOC_LITERAL(11, 245, 31), // "on_actionCursor_Stats_triggered"
QT_MOC_LITERAL(12, 277, 7), // "checked"
QT_MOC_LITERAL(13, 285, 21), // "connectDisplaySignals"
QT_MOC_LITERAL(14, 307, 20), // "on_action300_toggled"
QT_MOC_LITERAL(15, 328, 4), // "arg1"
QT_MOC_LITERAL(16, 333, 20), // "on_action600_toggled"
QT_MOC_LITERAL(17, 354, 21), // "on_action1200_toggled"
QT_MOC_LITERAL(18, 376, 21), // "on_action2400_toggled"
QT_MOC_LITERAL(19, 398, 21), // "on_action4800_toggled"
QT_MOC_LITERAL(20, 420, 21), // "on_action9600_toggled"
QT_MOC_LITERAL(21, 442, 22), // "on_action14400_toggled"
QT_MOC_LITERAL(22, 465, 22), // "on_action19200_toggled"
QT_MOC_LITERAL(23, 488, 22), // "on_action28800_toggled"
QT_MOC_LITERAL(24, 511, 22), // "on_action38400_toggled"
QT_MOC_LITERAL(25, 534, 22), // "on_action57600_toggled"
QT_MOC_LITERAL(26, 557, 23), // "on_action115200_toggled"
QT_MOC_LITERAL(27, 581, 22), // "on_action300_2_toggled"
QT_MOC_LITERAL(28, 604, 22), // "on_action600_2_toggled"
QT_MOC_LITERAL(29, 627, 23), // "on_action1200_2_toggled"
QT_MOC_LITERAL(30, 651, 23), // "on_action2400_2_toggled"
QT_MOC_LITERAL(31, 675, 23), // "on_action4800_2_toggled"
QT_MOC_LITERAL(32, 699, 23), // "on_action9600_2_toggled"
QT_MOC_LITERAL(33, 723, 24), // "on_action14400_2_toggled"
QT_MOC_LITERAL(34, 748, 24), // "on_action19200_2_toggled"
QT_MOC_LITERAL(35, 773, 24), // "on_action28800_2_toggled"
QT_MOC_LITERAL(36, 798, 24), // "on_action38400_2_toggled"
QT_MOC_LITERAL(37, 823, 24), // "on_action57600_2_toggled"
QT_MOC_LITERAL(38, 848, 25), // "on_action115200_2_toggled"
QT_MOC_LITERAL(39, 874, 17), // "cycleBaudRate_CH1"
QT_MOC_LITERAL(40, 892, 26), // "cycleBaudRateBackwards_CH1"
QT_MOC_LITERAL(41, 919, 17), // "cycleBaudRate_CH2"
QT_MOC_LITERAL(42, 937, 26), // "cycleBaudRateBackwards_CH2"
QT_MOC_LITERAL(43, 964, 21), // "timeBaseNeedsChanging"
QT_MOC_LITERAL(44, 986, 8), // "positive"
QT_MOC_LITERAL(45, 995, 31), // "on_actionForce_Square_triggered"
QT_MOC_LITERAL(46, 1027, 16), // "arrowUpTriggered"
QT_MOC_LITERAL(47, 1044, 18), // "arrowDownTriggered"
QT_MOC_LITERAL(48, 1063, 20), // "ctrlArrowUpTriggered"
QT_MOC_LITERAL(49, 1084, 22), // "ctrlArrowDownTriggered"
QT_MOC_LITERAL(50, 1107, 14), // "cycleDelayLeft"
QT_MOC_LITERAL(51, 1122, 15), // "cycleDelayRight"
QT_MOC_LITERAL(52, 1138, 45), // "on_actionAutomatically_Enable..."
QT_MOC_LITERAL(53, 1184, 22), // "on_action60FPS_toggled"
QT_MOC_LITERAL(54, 1207, 7), // "enabled"
QT_MOC_LITERAL(55, 1215, 22), // "on_action30FPS_toggled"
QT_MOC_LITERAL(56, 1238, 22), // "on_action20FPS_toggled"
QT_MOC_LITERAL(57, 1261, 22), // "on_action15FPS_toggled"
QT_MOC_LITERAL(58, 1284, 22), // "on_action10FPS_toggled"
QT_MOC_LITERAL(59, 1307, 21), // "on_action5FPS_toggled"
QT_MOC_LITERAL(60, 1329, 26), // "on_actionAuto_Lock_toggled"
QT_MOC_LITERAL(61, 1356, 34), // "on_actionSnap_to_Cursors_trig..."
QT_MOC_LITERAL(62, 1391, 33), // "on_actionEnter_Manually_trigg..."
QT_MOC_LITERAL(63, 1425, 10), // "helloWorld"
QT_MOC_LITERAL(13, 285, 45), // "on_actionAutomatically_Enable..."
QT_MOC_LITERAL(14, 331, 4), // "arg1"
QT_MOC_LITERAL(15, 336, 22), // "on_action60FPS_toggled"
QT_MOC_LITERAL(16, 359, 7), // "enabled"
QT_MOC_LITERAL(17, 367, 22), // "on_action30FPS_toggled"
QT_MOC_LITERAL(18, 390, 22), // "on_action20FPS_toggled"
QT_MOC_LITERAL(19, 413, 22), // "on_action15FPS_toggled"
QT_MOC_LITERAL(20, 436, 22), // "on_action10FPS_toggled"
QT_MOC_LITERAL(21, 459, 21), // "on_action5FPS_toggled"
QT_MOC_LITERAL(22, 481, 34), // "on_actionSnap_to_Cursors_trig..."
QT_MOC_LITERAL(23, 516, 33), // "on_actionEnter_Manually_trigg..."
QT_MOC_LITERAL(24, 550, 21), // "connectDisplaySignals"
QT_MOC_LITERAL(25, 572, 20), // "on_action300_toggled"
QT_MOC_LITERAL(26, 593, 20), // "on_action600_toggled"
QT_MOC_LITERAL(27, 614, 21), // "on_action1200_toggled"
QT_MOC_LITERAL(28, 636, 21), // "on_action2400_toggled"
QT_MOC_LITERAL(29, 658, 21), // "on_action4800_toggled"
QT_MOC_LITERAL(30, 680, 21), // "on_action9600_toggled"
QT_MOC_LITERAL(31, 702, 22), // "on_action14400_toggled"
QT_MOC_LITERAL(32, 725, 22), // "on_action19200_toggled"
QT_MOC_LITERAL(33, 748, 22), // "on_action28800_toggled"
QT_MOC_LITERAL(34, 771, 22), // "on_action38400_toggled"
QT_MOC_LITERAL(35, 794, 22), // "on_action57600_toggled"
QT_MOC_LITERAL(36, 817, 23), // "on_action115200_toggled"
QT_MOC_LITERAL(37, 841, 22), // "on_action300_2_toggled"
QT_MOC_LITERAL(38, 864, 22), // "on_action600_2_toggled"
QT_MOC_LITERAL(39, 887, 23), // "on_action1200_2_toggled"
QT_MOC_LITERAL(40, 911, 23), // "on_action2400_2_toggled"
QT_MOC_LITERAL(41, 935, 23), // "on_action4800_2_toggled"
QT_MOC_LITERAL(42, 959, 23), // "on_action9600_2_toggled"
QT_MOC_LITERAL(43, 983, 24), // "on_action14400_2_toggled"
QT_MOC_LITERAL(44, 1008, 24), // "on_action19200_2_toggled"
QT_MOC_LITERAL(45, 1033, 24), // "on_action28800_2_toggled"
QT_MOC_LITERAL(46, 1058, 24), // "on_action38400_2_toggled"
QT_MOC_LITERAL(47, 1083, 24), // "on_action57600_2_toggled"
QT_MOC_LITERAL(48, 1108, 25), // "on_action115200_2_toggled"
QT_MOC_LITERAL(49, 1134, 17), // "cycleBaudRate_CH1"
QT_MOC_LITERAL(50, 1152, 26), // "cycleBaudRateBackwards_CH1"
QT_MOC_LITERAL(51, 1179, 17), // "cycleBaudRate_CH2"
QT_MOC_LITERAL(52, 1197, 26), // "cycleBaudRateBackwards_CH2"
QT_MOC_LITERAL(53, 1224, 21), // "timeBaseNeedsChanging"
QT_MOC_LITERAL(54, 1246, 8), // "positive"
QT_MOC_LITERAL(55, 1255, 31), // "on_actionForce_Square_triggered"
QT_MOC_LITERAL(56, 1287, 10), // "helloWorld"
QT_MOC_LITERAL(57, 1298, 16), // "arrowUpTriggered"
QT_MOC_LITERAL(58, 1315, 18), // "arrowDownTriggered"
QT_MOC_LITERAL(59, 1334, 20), // "ctrlArrowUpTriggered"
QT_MOC_LITERAL(60, 1355, 22), // "ctrlArrowDownTriggered"
QT_MOC_LITERAL(61, 1378, 14), // "cycleDelayLeft"
QT_MOC_LITERAL(62, 1393, 15), // "cycleDelayRight"
QT_MOC_LITERAL(63, 1409, 26), // "on_actionAuto_Lock_toggled"
QT_MOC_LITERAL(64, 1436, 25), // "on_actionRecord_triggered"
QT_MOC_LITERAL(65, 1462, 32), // "on_actionTake_Snapshot_triggered"
QT_MOC_LITERAL(66, 1495, 9) // "reinitUsb"
@ -108,16 +108,23 @@ QT_MOC_LITERAL(66, 1495, 9) // "reinitUsb"
"on_actionGain64_triggered\0"
"on_actionGainAuto_triggered\0"
"on_actionCursor_Stats_triggered\0checked\0"
"on_actionAutomatically_Enable_Cursors_toggled\0"
"arg1\0on_action60FPS_toggled\0enabled\0"
"on_action30FPS_toggled\0on_action20FPS_toggled\0"
"on_action15FPS_toggled\0on_action10FPS_toggled\0"
"on_action5FPS_toggled\0"
"on_actionSnap_to_Cursors_triggered\0"
"on_actionEnter_Manually_triggered\0"
"connectDisplaySignals\0on_action300_toggled\0"
"arg1\0on_action600_toggled\0"
"on_action1200_toggled\0on_action2400_toggled\0"
"on_action4800_toggled\0on_action9600_toggled\0"
"on_action14400_toggled\0on_action19200_toggled\0"
"on_action28800_toggled\0on_action38400_toggled\0"
"on_action57600_toggled\0on_action115200_toggled\0"
"on_action300_2_toggled\0on_action600_2_toggled\0"
"on_action1200_2_toggled\0on_action2400_2_toggled\0"
"on_action4800_2_toggled\0on_action9600_2_toggled\0"
"on_action600_toggled\0on_action1200_toggled\0"
"on_action2400_toggled\0on_action4800_toggled\0"
"on_action9600_toggled\0on_action14400_toggled\0"
"on_action19200_toggled\0on_action28800_toggled\0"
"on_action38400_toggled\0on_action57600_toggled\0"
"on_action115200_toggled\0on_action300_2_toggled\0"
"on_action600_2_toggled\0on_action1200_2_toggled\0"
"on_action2400_2_toggled\0on_action4800_2_toggled\0"
"on_action9600_2_toggled\0"
"on_action14400_2_toggled\0"
"on_action19200_2_toggled\0"
"on_action28800_2_toggled\0"
@ -128,17 +135,11 @@ QT_MOC_LITERAL(66, 1495, 9) // "reinitUsb"
"cycleBaudRateBackwards_CH2\0"
"timeBaseNeedsChanging\0positive\0"
"on_actionForce_Square_triggered\0"
"arrowUpTriggered\0arrowDownTriggered\0"
"ctrlArrowUpTriggered\0ctrlArrowDownTriggered\0"
"cycleDelayLeft\0cycleDelayRight\0"
"on_actionAutomatically_Enable_Cursors_toggled\0"
"on_action60FPS_toggled\0enabled\0"
"on_action30FPS_toggled\0on_action20FPS_toggled\0"
"on_action15FPS_toggled\0on_action10FPS_toggled\0"
"on_action5FPS_toggled\0on_actionAuto_Lock_toggled\0"
"on_actionSnap_to_Cursors_triggered\0"
"on_actionEnter_Manually_triggered\0"
"helloWorld\0on_actionRecord_triggered\0"
"helloWorld\0arrowUpTriggered\0"
"arrowDownTriggered\0ctrlArrowUpTriggered\0"
"ctrlArrowDownTriggered\0cycleDelayLeft\0"
"cycleDelayRight\0on_actionAuto_Lock_toggled\0"
"on_actionRecord_triggered\0"
"on_actionTake_Snapshot_triggered\0"
"reinitUsb"
};
@ -168,54 +169,54 @@ static const uint qt_meta_data_MainWindow[] = {
9, 0, 326, 2, 0x08 /* Private */,
10, 0, 327, 2, 0x08 /* Private */,
11, 1, 328, 2, 0x08 /* Private */,
13, 0, 331, 2, 0x08 /* Private */,
14, 1, 332, 2, 0x08 /* Private */,
16, 1, 335, 2, 0x08 /* Private */,
17, 1, 338, 2, 0x08 /* Private */,
18, 1, 341, 2, 0x08 /* Private */,
19, 1, 344, 2, 0x08 /* Private */,
20, 1, 347, 2, 0x08 /* Private */,
21, 1, 350, 2, 0x08 /* Private */,
22, 1, 353, 2, 0x08 /* Private */,
23, 1, 356, 2, 0x08 /* Private */,
24, 1, 359, 2, 0x08 /* Private */,
25, 1, 362, 2, 0x08 /* Private */,
26, 1, 365, 2, 0x08 /* Private */,
27, 1, 368, 2, 0x08 /* Private */,
28, 1, 371, 2, 0x08 /* Private */,
29, 1, 374, 2, 0x08 /* Private */,
30, 1, 377, 2, 0x08 /* Private */,
31, 1, 380, 2, 0x08 /* Private */,
32, 1, 383, 2, 0x08 /* Private */,
33, 1, 386, 2, 0x08 /* Private */,
34, 1, 389, 2, 0x08 /* Private */,
35, 1, 392, 2, 0x08 /* Private */,
36, 1, 395, 2, 0x08 /* Private */,
37, 1, 398, 2, 0x08 /* Private */,
38, 1, 401, 2, 0x08 /* Private */,
39, 0, 404, 2, 0x08 /* Private */,
40, 0, 405, 2, 0x08 /* Private */,
41, 0, 406, 2, 0x08 /* Private */,
42, 0, 407, 2, 0x08 /* Private */,
43, 1, 408, 2, 0x08 /* Private */,
45, 1, 411, 2, 0x08 /* Private */,
46, 0, 414, 2, 0x08 /* Private */,
47, 0, 415, 2, 0x08 /* Private */,
48, 0, 416, 2, 0x08 /* Private */,
49, 0, 417, 2, 0x08 /* Private */,
50, 0, 418, 2, 0x08 /* Private */,
51, 0, 419, 2, 0x08 /* Private */,
52, 1, 420, 2, 0x08 /* Private */,
53, 1, 423, 2, 0x08 /* Private */,
55, 1, 426, 2, 0x08 /* Private */,
56, 1, 429, 2, 0x08 /* Private */,
57, 1, 432, 2, 0x08 /* Private */,
58, 1, 435, 2, 0x08 /* Private */,
59, 1, 438, 2, 0x08 /* Private */,
60, 1, 441, 2, 0x08 /* Private */,
61, 0, 444, 2, 0x08 /* Private */,
62, 0, 445, 2, 0x08 /* Private */,
63, 0, 446, 2, 0x08 /* Private */,
13, 1, 331, 2, 0x08 /* Private */,
15, 1, 334, 2, 0x08 /* Private */,
17, 1, 337, 2, 0x08 /* Private */,
18, 1, 340, 2, 0x08 /* Private */,
19, 1, 343, 2, 0x08 /* Private */,
20, 1, 346, 2, 0x08 /* Private */,
21, 1, 349, 2, 0x08 /* Private */,
22, 0, 352, 2, 0x08 /* Private */,
23, 0, 353, 2, 0x08 /* Private */,
24, 0, 354, 2, 0x08 /* Private */,
25, 1, 355, 2, 0x08 /* Private */,
26, 1, 358, 2, 0x08 /* Private */,
27, 1, 361, 2, 0x08 /* Private */,
28, 1, 364, 2, 0x08 /* Private */,
29, 1, 367, 2, 0x08 /* Private */,
30, 1, 370, 2, 0x08 /* Private */,
31, 1, 373, 2, 0x08 /* Private */,
32, 1, 376, 2, 0x08 /* Private */,
33, 1, 379, 2, 0x08 /* Private */,
34, 1, 382, 2, 0x08 /* Private */,
35, 1, 385, 2, 0x08 /* Private */,
36, 1, 388, 2, 0x08 /* Private */,
37, 1, 391, 2, 0x08 /* Private */,
38, 1, 394, 2, 0x08 /* Private */,
39, 1, 397, 2, 0x08 /* Private */,
40, 1, 400, 2, 0x08 /* Private */,
41, 1, 403, 2, 0x08 /* Private */,
42, 1, 406, 2, 0x08 /* Private */,
43, 1, 409, 2, 0x08 /* Private */,
44, 1, 412, 2, 0x08 /* Private */,
45, 1, 415, 2, 0x08 /* Private */,
46, 1, 418, 2, 0x08 /* Private */,
47, 1, 421, 2, 0x08 /* Private */,
48, 1, 424, 2, 0x08 /* Private */,
49, 0, 427, 2, 0x08 /* Private */,
50, 0, 428, 2, 0x08 /* Private */,
51, 0, 429, 2, 0x08 /* Private */,
52, 0, 430, 2, 0x08 /* Private */,
53, 1, 431, 2, 0x08 /* Private */,
55, 1, 434, 2, 0x08 /* Private */,
56, 0, 437, 2, 0x08 /* Private */,
57, 0, 438, 2, 0x08 /* Private */,
58, 0, 439, 2, 0x08 /* Private */,
59, 0, 440, 2, 0x08 /* Private */,
60, 0, 441, 2, 0x08 /* Private */,
61, 0, 442, 2, 0x08 /* Private */,
62, 0, 443, 2, 0x08 /* Private */,
63, 1, 444, 2, 0x08 /* Private */,
64, 1, 447, 2, 0x08 /* Private */,
65, 0, 450, 2, 0x08 /* Private */,
66, 0, 451, 2, 0x08 /* Private */,
@ -231,36 +232,45 @@ static const uint qt_meta_data_MainWindow[] = {
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 12,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 16,
QMetaType::Void, QMetaType::Bool, 16,
QMetaType::Void, QMetaType::Bool, 16,
QMetaType::Void, QMetaType::Bool, 16,
QMetaType::Void, QMetaType::Bool, 16,
QMetaType::Void, QMetaType::Bool, 16,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 44,
QMetaType::Void, QMetaType::Bool, 54,
QMetaType::Void, QMetaType::Bool, 12,
QMetaType::Void,
QMetaType::Void,
@ -268,17 +278,8 @@ static const uint qt_meta_data_MainWindow[] = {
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void, QMetaType::Bool, 54,
QMetaType::Void, QMetaType::Bool, 54,
QMetaType::Void, QMetaType::Bool, 54,
QMetaType::Void, QMetaType::Bool, 54,
QMetaType::Void, QMetaType::Bool, 54,
QMetaType::Void, QMetaType::Bool, 54,
QMetaType::Void, QMetaType::Bool, 15,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 14,
QMetaType::Void, QMetaType::Bool, 12,
QMetaType::Void,
QMetaType::Void,
@ -302,54 +303,54 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
case 7: _t->on_actionGain64_triggered(); break;
case 8: _t->on_actionGainAuto_triggered(); break;
case 9: _t->on_actionCursor_Stats_triggered((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 10: _t->connectDisplaySignals(); break;
case 11: _t->on_action300_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 12: _t->on_action600_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 13: _t->on_action1200_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 14: _t->on_action2400_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 15: _t->on_action4800_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 16: _t->on_action9600_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 17: _t->on_action14400_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 18: _t->on_action19200_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 19: _t->on_action28800_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 20: _t->on_action38400_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 21: _t->on_action57600_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 22: _t->on_action115200_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 23: _t->on_action300_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 24: _t->on_action600_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 25: _t->on_action1200_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 26: _t->on_action2400_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 27: _t->on_action4800_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 28: _t->on_action9600_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 29: _t->on_action14400_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 30: _t->on_action19200_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 31: _t->on_action28800_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 32: _t->on_action38400_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 33: _t->on_action57600_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 34: _t->on_action115200_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 35: _t->cycleBaudRate_CH1(); break;
case 36: _t->cycleBaudRateBackwards_CH1(); break;
case 37: _t->cycleBaudRate_CH2(); break;
case 38: _t->cycleBaudRateBackwards_CH2(); break;
case 39: _t->timeBaseNeedsChanging((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 40: _t->on_actionForce_Square_triggered((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 41: _t->arrowUpTriggered(); break;
case 42: _t->arrowDownTriggered(); break;
case 43: _t->ctrlArrowUpTriggered(); break;
case 44: _t->ctrlArrowDownTriggered(); break;
case 45: _t->cycleDelayLeft(); break;
case 46: _t->cycleDelayRight(); break;
case 47: _t->on_actionAutomatically_Enable_Cursors_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 48: _t->on_action60FPS_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 49: _t->on_action30FPS_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 50: _t->on_action20FPS_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 51: _t->on_action15FPS_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 52: _t->on_action10FPS_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 53: _t->on_action5FPS_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 54: _t->on_actionAuto_Lock_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 55: _t->on_actionSnap_to_Cursors_triggered(); break;
case 56: _t->on_actionEnter_Manually_triggered(); break;
case 57: _t->helloWorld(); break;
case 10: _t->on_actionAutomatically_Enable_Cursors_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 11: _t->on_action60FPS_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 12: _t->on_action30FPS_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 13: _t->on_action20FPS_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 14: _t->on_action15FPS_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 15: _t->on_action10FPS_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 16: _t->on_action5FPS_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 17: _t->on_actionSnap_to_Cursors_triggered(); break;
case 18: _t->on_actionEnter_Manually_triggered(); break;
case 19: _t->connectDisplaySignals(); break;
case 20: _t->on_action300_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 21: _t->on_action600_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 22: _t->on_action1200_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 23: _t->on_action2400_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 24: _t->on_action4800_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 25: _t->on_action9600_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 26: _t->on_action14400_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 27: _t->on_action19200_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 28: _t->on_action28800_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 29: _t->on_action38400_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 30: _t->on_action57600_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 31: _t->on_action115200_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 32: _t->on_action300_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 33: _t->on_action600_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 34: _t->on_action1200_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 35: _t->on_action2400_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 36: _t->on_action4800_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 37: _t->on_action9600_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 38: _t->on_action14400_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 39: _t->on_action19200_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 40: _t->on_action28800_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 41: _t->on_action38400_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 42: _t->on_action57600_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 43: _t->on_action115200_2_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 44: _t->cycleBaudRate_CH1(); break;
case 45: _t->cycleBaudRateBackwards_CH1(); break;
case 46: _t->cycleBaudRate_CH2(); break;
case 47: _t->cycleBaudRateBackwards_CH2(); break;
case 48: _t->timeBaseNeedsChanging((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 49: _t->on_actionForce_Square_triggered((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 50: _t->helloWorld(); break;
case 51: _t->arrowUpTriggered(); break;
case 52: _t->arrowDownTriggered(); break;
case 53: _t->ctrlArrowUpTriggered(); break;
case 54: _t->ctrlArrowDownTriggered(); break;
case 55: _t->cycleDelayLeft(); break;
case 56: _t->cycleDelayRight(); break;
case 57: _t->on_actionAuto_Lock_toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 58: _t->on_actionRecord_triggered((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 59: _t->on_actionTake_Snapshot_triggered(); break;
case 60: _t->reinitUsb(); break;

View File

@ -6,7 +6,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../noclosemenu.h"
#include "../ui_elements/noclosemenu.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)

View File

@ -6,7 +6,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../qcustomplot.h"
#include "../ui_elements/qcustomplot.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

View File

@ -6,7 +6,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../timedtickbox.h"
#include "../ui_elements/timedtickbox.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)

View File

@ -6,7 +6,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../voltagespinbox.h"
#include "../ui_elements/voltagespinbox.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)

View File

@ -4,6 +4,9 @@
#include <QDialog>
#include <QDebug>
//ScopeRangeEnterDialog is the class for the "Enter Scope Range" dialog (Oscilloscope->Range->Enter Manually; shortcut is "M").
//This code in particular controls the voltageSpinBoxes in the dialog, to ensure they don't go out of range.
namespace Ui {
class scopeRangeEnterDialog;
}

View File

@ -0,0 +1,26 @@
@INCLUDEPATH += $$PWD/ui_elements
@DEPENDPATH += $$PWD/ui_elements
SOURCES += ui_elements/buffercontrol.cpp \
ui_elements/cursorenabler.cpp \
ui_elements/deviceconnecteddisplay.cpp \
ui_elements/espocombobox.cpp \
ui_elements/esposlider.cpp \
ui_elements/espospinbox.cpp \
ui_elements/noclosemenu.cpp \
ui_elements/qcustomplot.cpp \
ui_elements/siprint.cpp \
ui_elements/timedtickbox.cpp \
ui_elements/voltagespinbox.cpp
HEADERS += ui_elements/buffercontrol.h \
ui_elements/cursorenabler.h \
ui_elements/deviceconnecteddisplay.h \
ui_elements/espocombobox.h \
ui_elements/esposlider.h \
ui_elements/espospinbox.h \
ui_elements/noclosemenu.h \
ui_elements/qcustomplot.h \
ui_elements/siprint.h \
ui_elements/timedtickbox.h \
ui_elements/voltagespinbox.h

View File

@ -5,6 +5,8 @@
#include <QLabel>
#include <QDebug>
//bufferControl is a controller object that allocates and deallocates bandwidth depending on what devices are active.
class bufferControl : public QLabel
{
Q_OBJECT

View File

@ -5,6 +5,8 @@
#include <QLabel>
#include <QMouseEvent>
//cursorEnabler intercepts click events from the chart and allows automatic cursor drops to take place.
class cursorEnabler : public QLabel
{
Q_OBJECT
@ -12,12 +14,10 @@ public:
explicit cursorEnabler(QWidget *parent = 0);
private:
bool turnedOn = true;
signals:
void tickHori(bool);
void tickVert(bool);
void passOnSignal(QMouseEvent* event);
public slots:
void setTurnedOn(bool enabled);
void clickDetected(QMouseEvent* event);

View File

@ -5,14 +5,14 @@
#include <QLabel>
#include <QDebug>
//deviceConnectedDisplay simply displays the "device connected" message.
class deviceConnectedDisplay : public QLabel
{
Q_OBJECT
public:
explicit deviceConnectedDisplay(QWidget *parent = 0);
signals:
public slots:
void connectedStatusChanged(bool status);
};

View File

@ -8,6 +8,8 @@
#include <QFile>
#include "platformspecific.h"
//espoComboBox is a combo box that reads its contents externally from the waveforms file.
class espoComboBox : public QComboBox
{
Q_OBJECT

View File

@ -8,6 +8,8 @@
#include <QLayout>
#include <QString>
//espoSlider is a slider but with the ticks placed at the same position as the numbers. Nothing more, nothing less.
class espoSlider : public QSlider
{
Q_OBJECT

View File

@ -8,6 +8,8 @@
#include <QDebug>
#include <math.h>
//espoSpinBox is a subclass of QSpinbox. It can talk to other espoSpinBoxes and change their min/max values.
class espoSpinBox : public QDoubleSpinBox
{
Q_OBJECT

View File

@ -4,6 +4,9 @@
#include <QWidget>
#include <QMenu>
//The menubar in Qt closes by default once a box has been checked.
//noCloseMenu is a simple class that keeps the menu open even after a box is checked.
class noCloseMenu : public QMenu
{
Q_OBJECT

View File

@ -4,6 +4,8 @@
#include <string.h>
#include <QDebug>
//siprint just prints values with their SI prefix.
//For example, it would print the number 1000 and unit V as "1kV".
class siprint
{
public:

View File

@ -5,6 +5,9 @@
#include <QTimer>
#include <QDebug>
//timedTickBox is used to re-lock the power supply after a few seconds.
//It's just a tickbox with a timer on it.
class timedTickBox : public QCheckBox
{
Q_OBJECT

View File

@ -4,6 +4,9 @@
#include <QWidget>
#include <QSpinBox>
//Wrapper for the spinboxes on the "Enter Scope Range" dialog (Oscilloscope->Range->Enter Manually; shortcut is "M").
//It needs to exist in order to map the setMaximum() and setMinimum() functions for QDOubleSpinbox to slots.
class voltageSpinBox : public QDoubleSpinBox
{
Q_OBJECT

View File

@ -11,6 +11,7 @@
#define RECOVERY_PERIOD 250
//tcBlock is fed to the callback in the libusb user data section.
typedef struct tcBlock{
int number;
bool completed;
@ -19,6 +20,8 @@ typedef struct tcBlock{
extern QMutex tcBlockMutex;
//Oddly, libusb requires you to make a blocking libusb_handle_events() call in order to execute the callbacks for an asynchronous transfer.
//Since the call is blocking, this worker must exist in a separate, low priority thread!
class worker : public QObject
{
Q_OBJECT
@ -39,6 +42,9 @@ public slots:
}
};
//This is the actual unixUsbDriver
//It handles the Mac/Linux specific parts of USB communication, through libusb.
//See genericUsbDriver for the non-platform-specific parts.
class unixUsbDriver : public genericUsbDriver
{
Q_OBJECT
@ -67,6 +73,7 @@ public slots:
void recoveryTick(void);
};
//Callback on iso transfer complete.
static void LIBUSB_CALL isoCallback(struct libusb_transfer *transfer);
#endif // unixUsbDriver_H

View File

@ -10,6 +10,8 @@
#include "genericusbdriver.h"
//winUsbDriver handles the Windows-specific parts of USB communication, through libusbK.
//See genericUsbDriver for the non-platform-specific parts.
class winUsbDriver : public genericUsbDriver
{
Q_OBJECT

View File

@ -1,6 +1,7 @@
#ifndef XMEGA_H
#define XMEGA_H
//Just a whole lot of variables related to the hardware itself.
#define FGEN_OFFSET 5
#define FGEN_LIMIT (double) 3.2