First implementation

This commit is contained in:
Yury Shuvakin
2024-07-03 19:11:29 +09:00
parent 25a3a8ac11
commit d708fc3499
153 changed files with 17687 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
#ifndef GENERICCANSETUPPAGE_H
#define GENERICCANSETUPPAGE_H
#include <QWidget>
namespace Ui {
class GenericCanSetupPage;
}
class CanInterface;
class SetupDialog;
class MeasurementInterface;
class Backend;
class GenericCanSetupPage : public QWidget
{
Q_OBJECT
public:
explicit GenericCanSetupPage(QWidget *parent = 0);
~GenericCanSetupPage();
public slots:
void onSetupDialogCreated(SetupDialog &dlg);
void onShowInterfacePage(SetupDialog &dlg, MeasurementInterface *mi);
private slots:
void updateUI();
private:
Ui::GenericCanSetupPage *ui;
MeasurementInterface *_mi;
bool _enable_ui_updates;
void fillBitratesList(CanInterface *intf, unsigned selectedBitrate);
void fillSamplePointsForBitrate(CanInterface *intf, unsigned selectedBitrate, unsigned selectedSamplePoint);
void fillFdBitrate(CanInterface *intf, unsigned selectedBitrate);
void disenableUI(bool enabled);
Backend &backend();
};
#endif // GENERICCANSETUPPAGE_H