31#ifndef TRAININGWINDOW_H
32#define TRAININGWINDOW_H
39#include <QStackedWidget>
87 QPushButton* startStopButton;
90 QSlider* volumeSlider;
92 QSlider* cutOfFrequencySlider;
95 QStackedWidget widgetContainer;
96 QWidget* trainingWidget;
97 QWidget* landingWidget;
100 QWidget* fileListContentWidget;
106 QThread* workerThread;
115 FilterType activeFilterType = FilterType::HighShelf;
116 std::shared_ptr<BaseFilter> activeFilter;
117 bool isAudioFileValid =
false;
120 void sliderValueDidChange(
int gain,
int cutOffFrequency);
121 void didSelectAudioFile(QString filePath);
123 void showErrorDialog(
const QString &message);
Definition: AudioFile.h:82
A custom QComboBox with modified popup behavior.
Definition: CustomComboBox.h:40
The DatabaseManager class manages the database operations for the audio testing application.
Definition: DatabaseManager.h:50
A class to plot frequency graph.
Definition: EQGraph.h:51
The JackWorker class is responsible for managing the Jack audio server and audio client engine.
Definition: JackWorker.h:55
Provides a widget for conducting training sessions.
Definition: TrainingWindow.h:63
void showTrainingWidget()
Shows the training widget.
Definition: TrainingWindow.cpp:566
void setDatabaseManager(DatabaseManager *manager)
Sets the database manager.
Definition: TrainingWindow.cpp:577
QWidget * createTrainingWidget()
Creates the training widget.
Definition: TrainingWindow.cpp:150
void showLandingWidget()
Shows the landing widget.
Definition: TrainingWindow.cpp:572
QWidget * createWidget()
Creates the widget for the training window.
Definition: TrainingWindow.cpp:58
void didChangeTrainingSessionState(SessionType sessionType)
Signal emitted when the training session state changes.
Definition: moc_TrainingWindow.cpp:288
void populateAudioFiles()
Populates the list of audio files.
Definition: TrainingWindow.cpp:582
void didChangeAudioFile(QString filePath)
Signal emitted when the audio file changes.
Definition: moc_TrainingWindow.cpp:302
void didChangeAudioFilter(FilterType filter)
Signal emitted when the audio filter changes.
Definition: moc_TrainingWindow.cpp:309
~TrainingWindow()
Destructor.
Definition: TrainingWindow.cpp:51
void didChangeSliderValue(int gain, int cutOffFrequency)
Signal emitted when the slider value changes.
Definition: moc_TrainingWindow.cpp:295
QWidget * createLandingWidget()
Creates the landing widget for the training window.
Definition: TrainingWindow.cpp:81
SessionType
Represents the state of a testing session.
Definition: SessionType.h:41
FilterType
An enumeration of filter types.
Definition: FilterType.h:43