Just Intonation  Version 1.3.0 (18)
Explore scale-independent dynamically adapting tuning in just intonation
fileopendialog.cpp
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 #include "fileopendialog.h"
26 
27  #include <QFileDialog>
28 
29 //-----------------------------------------------------------------------------
30 // Constructor
31 //-----------------------------------------------------------------------------
35 
37 {
38 
39 }
40 
41 
42 //-----------------------------------------------------------------------------
43 // Open file open dialog
44 //-----------------------------------------------------------------------------
48 
49 void FileOpenDialog::open(int width, int height)
50 {
51  LOGSTATUS << "Open file open dialog" << width << height;
52  QString fileName = QFileDialog::getOpenFileName(nullptr,
53  tr("Please choose a Midi file"), "", tr("Midi files (*.mid *.midi *.MID)"));
54  LOGMESSAGE << "Open file" << fileName;
55  emit openFile(fileName,true);
56 }
57 
#define LOGMESSAGE
Definition: log.h:43
void openFile(QString fileName, bool autostart)
void open(int width, int height)
Private slot: Open file open dialog.
#define LOGSTATUS
Definition: log.h:42
FileOpenDialog()
Constructor.