Move functionality from datamanager to mainwindow.
This commit is contained in:
@@ -47,7 +47,7 @@ class BCMainWindow : public QMainWindow, public Ui_BCMainWindow
|
||||
public:
|
||||
|
||||
BCMainWindow(QWidget *parent = nullptr);
|
||||
~BCMainWindow();
|
||||
virtual ~BCMainWindow();
|
||||
|
||||
public slots:
|
||||
|
||||
@@ -57,9 +57,21 @@ public slots:
|
||||
void onActionButtonToggled( bool checked);
|
||||
void onConnectButtonToggled(bool active );
|
||||
|
||||
// Slots für Rückmeldungen vom Runner
|
||||
void onCommandFinished(int id, bool success);
|
||||
void onRunnerMessage(const QString &msg);
|
||||
void onSyncFromDevice();
|
||||
|
||||
signals:
|
||||
|
||||
// Internes Signal, um Daten an den Worker Thread zu senden
|
||||
void sendValueCommand( BC::OpID, const BCDataValue* cmd);
|
||||
//void valuedTouched(const BCDataValue& cmd);
|
||||
void valueTouched(int rowInModel );
|
||||
|
||||
protected:
|
||||
|
||||
void initData();
|
||||
void initMainWindow();
|
||||
|
||||
BCDataManager _dataManager;
|
||||
|
||||
@@ -70,6 +82,8 @@ protected:
|
||||
BCDevicePanels _devicePanels;
|
||||
BCDevicePanel* _currentPanel{};
|
||||
|
||||
QThread _worker;
|
||||
BCTransmitter _transmitter;
|
||||
};
|
||||
|
||||
#endif // BCMAINWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user