You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.2 KiB
C++
68 lines
1.2 KiB
C++
#ifndef LIBRARY_H
|
|
#define LIBRARY_H
|
|
|
|
#include <QDialog>
|
|
#include "camp.h"
|
|
namespace Ui {
|
|
class library;
|
|
}
|
|
|
|
class library : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit library(QWidget *parent = nullptr);
|
|
void setAmpPointer(cAmp* pAmp,unsigned int ampCount);
|
|
unsigned int getAmpCount();
|
|
cAmp* getAmps();
|
|
void open();
|
|
~library();
|
|
|
|
|
|
private slots:
|
|
|
|
void on_pushButton_addAmp_clicked();
|
|
|
|
void on_listWidget_ampView_currentRowChanged(int currentRow);
|
|
|
|
|
|
void on_pushButton_applyChanges_clicked();
|
|
|
|
void on_comboBox_sensUnit_currentIndexChanged(int index);
|
|
|
|
void on_pushButton_deleteAmp_clicked();
|
|
|
|
void on_pushButton_addMode_clicked();
|
|
|
|
|
|
void on_listWidget_modeSelector_currentRowChanged(int currentRow);
|
|
|
|
|
|
void on_pushButton_deleteMode_clicked();
|
|
|
|
void on_pushButton_applyMode_clicked();
|
|
|
|
void on_lineEdit_ampName_textEdited(const QString &arg1);
|
|
|
|
|
|
private:
|
|
Ui::library *ui;
|
|
cAmp* m_pCamp;
|
|
unsigned int m_cAmpCount;
|
|
|
|
void refreshAmpView();
|
|
void refreshAmpOverview();
|
|
void refreshModeOverview();
|
|
|
|
int getCurrentAmpIndex();
|
|
int getCurrentAmpModeIndex();
|
|
|
|
void printAllAmps();
|
|
bool unsaved;
|
|
|
|
void saveLibraryToFile();
|
|
};
|
|
|
|
#endif // LIBRARY_H
|