23 #include <QMainWindow>
25 #include <QToolButton>
27 #include "../core/system/prerequisites.h"
28 #include "../core/config.h"
29 #include "../core/core.h"
30 #include "../core/messages/messagelistener.h"
31 #include "../core/adapters/modeselectoradapter.h"
62 explicit MainWindow(QWidget *parent =
nullptr);
99 void closeEvent ( QCloseEvent * event )
override;
337 #endif // MAINWINDOW_H
std::shared_ptr< Message > MessagePtr
Global type of a shared message pointer.
void changesInFileUpdated(bool b) overridefinal
Called if changed in file are made to update the window title.
void updateVolumeBar()
This will update the positions of the labels in the volume bar.
void updateWindowTitle()
Update the window title.
void onOptions()
Slot to open the options.
OperationMode
Operation mode of the tuner.
Core * getCore()
Getter function for the core.
void updateFrequency(const Key *key)
Update the frequency label.
void onOpenPlots()
Slot to open the mathematical plots dialog.
void onOpenSoundControl()
Slot to open the sound control.
void onFileSaveAs()
Slot to save the current file as a new file.
void onResetRecording()
Slot to reset the recording.
virtual ~MainWindow()
Destructor.
void onSelectNextMode()
Slot to select the next mode.
void onManual()
Slot to open the manual.
The ModeSelectorAdapter class.
Class describing a single piano key.
void onViewLog()
Slot to open the log viewer.
CalculationProgressGroup * mCalculationProgressGroup
Pointer to the CalculationProgressGroup.
void onModeTune(bool)
Slot to switch to tuning mode.
void onAbout()
Slot to open the about dialog.
void updateNoteName(int key)
Update the note name.
void onFileSave()
Slot to save the current file.
QToolButton * mModeToolButtons[OperationMode::MODE_COUNT]
Tool buttons for all modes.
void onExport()
Slot to open the export dialog.
void onSelectPreviousMode()
Slot to select the previous mode.
Visible QGroupBox to handle the calculation.
void start()
Starts the main window.
Ui::MainWindow * ui
Ui of the Mainwindow.
The ProjectManagerChangesInFileUpdatedCallback class.
Core * mCore
Pointer to the Core.
MainWindow(QWidget *parent=nullptr)
Constructor.
void modeChanged(OperationMode mode)
KeyboardGraphicsView * mKeyboardGraphicsView
void onToggleFullscreen()
Slot to toggle full screen of the MainWindow.
const QString mIconPostfix
void onFileShare()
Slot to store the current file.
void onModeCalculate(bool)
Slot to switch to calculation mode.
CORE : Class managing the core.
void onFileOpen()
Slot to open a new file.
void onToggleSpeakerMute(bool checked)
Toggle the mute button.
bool isSoundControlSupported()
VolumeControlGroupBox * mVolumeControlGroup
Pointer to the VolumeControlGroupBox.
void onToggleTuningIndictator()
Slot to toggle between the two tuning indicator modes.
void onVersionUpdate(VersionInformation information)
void onToggleMicroMute(bool checked)
Toggle the mute button.
void onModeIdle(bool)
Slot to switch to idle mode.
SignalAnalyzerGroupBox * mSignalAnalyzerGroup
Pointer to the SignalAnalyzerGroupBox.
void init(Core *core)
Initialised the window using the given Core.
void onFileNew()
Slot called for creating a new file.
void onEditPianoDataSheet()
Slot to edit the current piano data sheet.
void onModeRecord(bool)
Slot to switch to recording mode.
TuningIndicatorGroupBox * mTuningIndicatorGroup
Pointer to the TuningIndicatorGroupBox.
void handleMessage(MessagePtr m) override
Message handling.
void onResetNoiseLevel()
Slot to reset the noise level.
void closeEvent(QCloseEvent *event) override
Reimplementation of the close event.