Added & configured actions.

This commit is contained in:
2025-12-26 23:09:53 +01:00
parent 71d7350913
commit c4714bfca2
9 changed files with 159 additions and 105 deletions

View File

@@ -38,8 +38,7 @@
#include <ui_bcmainwindow.h>
#include <bcdatamanager.h>
class AnimatedDelegate;
class BCDevicePanel;
class BCMainWindow : public QMainWindow, public Ui_BCMainWindow
{
@@ -52,6 +51,10 @@ public:
public slots:
void onValueListReady( BCDevice::ID deviceID );
void onShowDevicePanel( BCDevice::ID deviceID );
void onActionButtonTriggered( bool checked);
void onActionButtonToggled( bool checked);
void onConnectButtonToggled(bool active );
protected:
@@ -59,8 +62,12 @@ protected:
void initData();
BCDataManager _dataManager;
AnimatedDelegate* _delegate;
// Wir brauchen eine Verbindung zwischen den Views
// und dem Device, das sie darstellen.
using BCDevicePanels = QMap<BCDevice::ID, BCDevicePanel*>;
BCDevicePanels _devicePanels;
};