56 lines
1.1 KiB
C++
56 lines
1.1 KiB
C++
#ifndef CANBUSSETTINGSPAGE_H
|
|
#define CANBUSSETTINGSPAGE_H
|
|
|
|
#include <QWidget>
|
|
|
|
class CCANDevice;
|
|
class CCANMessage;
|
|
class CCANSignal;
|
|
class COtarcikCan;
|
|
class CCANDeviceConfig;
|
|
|
|
|
|
namespace Ui {
|
|
class CCANbusSettingsPage;
|
|
}
|
|
|
|
class CCANbusSettingsPage : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CCANbusSettingsPage(QWidget *parent = 0);
|
|
~CCANbusSettingsPage();
|
|
|
|
int SetDevicesList(QList<CCANDevice *> *DevicesList);
|
|
int ClearDatabaseData();
|
|
int UpdatePage();
|
|
int UpdateMessageInformation();
|
|
int ModifyDeviceConfig();
|
|
|
|
|
|
COtarcikCan *mProgramPtr;
|
|
|
|
private:
|
|
Ui::CCANbusSettingsPage *ui;
|
|
const QList<CCANDevice *> *mDevicesList;
|
|
QList<CCANDeviceConfig*> mDeviceConfigList;
|
|
bool mDeviceChangeModeEnabled;
|
|
CCANDeviceConfig* mCurModifiedDevConfig;
|
|
|
|
int PopulateDevicesConfigList();
|
|
|
|
public slots:
|
|
void DeviceSelectionChanged();
|
|
void SignalSelectionChanged();
|
|
void MessageSelectionChanged();
|
|
void ModifyDeviceBtnPressed();
|
|
void CancelModifyDevBtnPressed();
|
|
void SelectDBFileBtnPressed();
|
|
void AddDeviceBtnPressed();
|
|
void DeleteDeviceBtnPressed();
|
|
|
|
};
|
|
|
|
#endif // CANBUSSETTINGSPAGE_H
|