diff --git a/src/portcontrol.h b/src/portcontrol.h --- a/src/portcontrol.h +++ b/src/portcontrol.h @@ -61,44 +61,24 @@ public: private: Ui::PortControl *ui; - QButtonGroup parityButtons; - QButtonGroup dataBitsButtons; - QButtonGroup stopBitsButtons; - QButtonGroup flowControlButtons; - QToolBar portToolBar; QAction openAction; QAction loadPortListAction; QComboBox tbPortList; PortList portList; - /// Used to refresh pinout signal leds periodically - QTimer pinUpdateTimer; - /// Returns the currently selected (entered) "portName" in the UI QString selectedPortName(); - /// Returns currently selected parity as text to be saved in settings - QString currentParityText(); - /// Returns currently selected flow control as text to be saved in settings - QString currentFlowControlText(); private slots: void loadPortList(); - void loadBaudRateList(); void togglePort(); void selectListedPort(QString portName); - void _selectBaudRate(QString baudRate); - void selectParity(int parity); // parity must be one of QSerialPort::Parity - void selectDataBits(int dataBits); // bits must be one of QSerialPort::DataBits - void selectStopBits(int stopBits); // stopBits must be one of QSerialPort::StopBits - void selectFlowControl(int flowControl); // flowControl must be one of QSerialPort::FlowControl - void openActionTriggered(bool checked); void onCbPortListActivated(int index); void onTbPortListActivated(int index); void onPortError(QSerialPort::SerialPortError error); - void updatePinLeds(void); signals: void portToggled(bool open);