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.
86 lines
1.6 KiB
C++
86 lines
1.6 KiB
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include "camp.h"
|
|
#include "cspeaker.h"
|
|
#include <cdac.h>
|
|
|
|
#include <QThreadPool>
|
|
#include <QNetworkAccessManager>
|
|
#include <QNetworkRequest>
|
|
#include <QNetworkReply>
|
|
|
|
#include <QFuture>
|
|
#include <QtConcurrent>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class MainWindow; }
|
|
QT_END_NAMESPACE
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MainWindow(QWidget *parent = nullptr);
|
|
~MainWindow();
|
|
|
|
|
|
private slots:
|
|
void on_ComboBox_selectSensUnit_currentIndexChanged(int index);
|
|
|
|
void on_pushButton_requestLimiter_clicked();
|
|
|
|
void on_actionEditLibrary_triggered();
|
|
|
|
void on_comboBox_libraryAmp_currentIndexChanged(int index);
|
|
|
|
void on_pushButton_clicked();
|
|
|
|
void on_actionChange_Library_Location_triggered();
|
|
|
|
void on_actionOpen_Library_triggered();
|
|
|
|
void on_pushButton_loadSpeaker_clicked();
|
|
|
|
|
|
void on_pushButton_loadDac_clicked();
|
|
|
|
void on_actionAbout_triggered();
|
|
|
|
void on_actionOpen_Loudness_Analyzer_triggered();
|
|
|
|
void on_checkBox_optimizeGain_stateChanged(int arg1);
|
|
|
|
|
|
void checkUpdatesFinished(QNetworkReply *reply);
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
cAmp* m_pCAmp;
|
|
unsigned int m_ampCount;
|
|
|
|
cSpeaker* m_pSpeaker;
|
|
unsigned int m_speakerCount;
|
|
|
|
cdac* m_pDac;
|
|
unsigned int m_dacCount;
|
|
|
|
void refreshLibraryAmps();
|
|
void refreshLibraryAmpModes();
|
|
|
|
void refreshLibrarySpeaker();
|
|
|
|
void refreshLibraryDacs();
|
|
|
|
void checkUpdates();
|
|
void loadLibrary();
|
|
void saveLibrary();
|
|
|
|
QNetworkAccessManager *manager;
|
|
QNetworkRequest request;
|
|
QFuture<void> requestFuture;
|
|
};
|
|
#endif // MAINWINDOW_H
|