hydrogen 1.2.6
ExportMidiDialog.h
Go to the documentation of this file.
1/*
2 * Hydrogen
3 * Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net]
4 * Copyright(c) 2008-2025 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
5 *
6 * http://www.hydrogen-music.org
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY, without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see https://www.gnu.org/licenses
20 *
21 */
22
23
24#ifndef EXPORT_MIDI_DIALOG_H
25#define EXPORT_MIDI_DIALOG_H
26
27
28#include "ui_ExportMidiDialog_UI.h"
29#include <core/Object.h>
30
31namespace H2Core {
32 class Preferences;
33 class Hydrogen;
34}
35
39
40class ExportMidiDialog : public QDialog, public Ui_ExportMidiDialog_UI, public H2Core::Object<ExportMidiDialog>
41{
43 Q_OBJECT
44
45 public:
46 explicit ExportMidiDialog( QWidget* parent );
48
49 private slots:
52 void on_okBtn_clicked();
53 void on_exportNameTxt_textChanged( const QString& text );
54
55 private:
59 QString createDefaultFilename();
60 bool validateUserInput();
61
65 QString m_sExtension;
66
67 static QString sLastFilename;
68};
69
70
71#endif
72
#define H2_OBJECT(name)
Definition Object.h:227
static QString sLastFilename
H2Core::Preferences * m_pPreferences
QString createDefaultFilename()
void on_exportNameTxt_textChanged(const QString &text)
void restoreSettingsFromPreferences()
ExportMidiDialog(QWidget *parent)
H2Core::Hydrogen * m_pHydrogen
Hydrogen Audio Engine.
Definition Hydrogen.h:54
Manager for User Preferences File (singleton)
Definition Preferences.h:79