
- Pass the following responsabilities from mode to mode handler: - active / deactive target mode - get active mode - create new modes - Move back setting averaging mode when settings are updated using getModes() method instead of handling logic in mode handler.
28 lines
476 B
C++
28 lines
476 B
C++
#ifndef FREQUENCYCALDIALOG_H
|
|
#define FREQUENCYCALDIALOG_H
|
|
|
|
#include "Device/device.h"
|
|
#include "modehandler.h"
|
|
#include "mode.h"
|
|
|
|
#include <QDialog>
|
|
|
|
namespace Ui {
|
|
class FrequencyCalDialog;
|
|
}
|
|
|
|
class FrequencyCalDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FrequencyCalDialog(Device *dev, ModeHandler *handler, QWidget *parent = nullptr);
|
|
~FrequencyCalDialog();
|
|
|
|
private:
|
|
Ui::FrequencyCalDialog *ui;
|
|
Device *dev;
|
|
};
|
|
|
|
#endif // FREQUENCYCALDIALOG_H
|