Just Intonation  Version 1.3.1 (19)
Explore key-independent dynamically adapting tuning in just intonation
filehandler.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright 2016-2017 Karolin Stange, Christoph Wick, and Haye Hinrichsen
3  *
4  * This file is part of JustIntonation.
5  *
6  * JustIntonation is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by the
8  * Free Software Foundation, either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * JustIntonation is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14  * for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with JustIntonation. If not, see http://www.gnu.org/licenses/.
18  *****************************************************************************/
19 
20 //=============================================================================
21 // Open File Dialog
22 //=============================================================================
23 
24 
25 #ifndef FILEHANDLER_H
26 #define FILEHANDLER_H
27 
28 #include "system/log.h"
29 
30 
34 
35 class FileHandler : public QObject, public Log
36 {
37  Q_OBJECT
38 public:
39  FileHandler();
40 public slots:
41  void openMidiFileDialog(int width, int height);
42  void saveData (QString data1,QString data2, QString data3);
43  void loadData ();
44 
45 signals:
46  void openMidiFile (QString fileName, bool autostart);
47  void loadedData (QVariant data1, QVariant data2, QVariant data3);
48 
49 private:
50  const QString tag = "JustIntonation data file";
51 };
52 
53 #endif // FILEHANDLER_H
FileHandler()
Constructor.
Definition: filehandler.cpp:40
void loadedData(QVariant data1, QVariant data2, QVariant data3)
void openMidiFile(QString fileName, bool autostart)
const QString tag
Definition: filehandler.h:50
void saveData(QString data1, QString data2, QString data3)
Save data (string) to file.
Definition: filehandler.cpp:76
void loadData()
Load data (string) from file.
Module for a file-open dialog.
Definition: filehandler.h:35
Base class for managing log messages.
Definition: log.h:83
void openMidiFileDialog(int width, int height)
Private slot: Open file open dialog.
Definition: filehandler.cpp:53