Entropy Piano Tuner  1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
qtconfig.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright 2015 Haye Hinrichsen, Christoph Wick
3  *
4  * This file is part of Entropy Piano Tuner.
5  *
6  * Entropy Piano Tuner 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  * Entropy Piano Tuner 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 for
14  * more details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * Entropy Piano Tuner. If not, see http://www.gnu.org/licenses/.
18  *****************************************************************************/
19 
20 #ifndef QTCONFIG_H
21 #define QTCONFIG_H
22 
23 #include "core/config.h"
24 
25 #include <QtGlobal>
26 #include <QGuiApplication>
27 #include <QScreen>
28 
29 // define mobile/desktop version defines
30 #if defined Q_OS_BLACKBERRY || defined Q_OS_ANDROID || defined Q_OS_IOS || defined Q_OS_WP
31 #define Q_OS_MOBILE
32 #else
33 #define Q_OS_DESKTOP
34 #endif
35 
36 #if CONFIG_DIALOG_SIZE == 2
37 # define SHOW_DIALOG(d) {(d)->showMaximized(); (d)->setFixedSize(QGuiApplication::primaryScreen()->size());}
38 #elif CONFIG_DIALOG_SIZE == 3
39 # define SHOW_DIALOG(d) {(d)->showFullscreen(); (d)->setFixedSize(QGuiApplication::primaryScreen()->size());}
40 #else
41 # define SHOW_DIALOG(d) {(d)->showNormal();}
42 #endif
43 
44 // icons for menu?
45 #if __APPLE__
46 # define CONFIG_MENU_ICONS 0
47 #else
48 # define CONFIG_MENU_ICONS 1
49 #endif
50 
51 // update check
52 #ifndef CONFIG_ENABLE_UPDATE_TOOL
53 # define CONFIG_ENABLE_UPDATE_TOOL 0
54 #else
55 // set update tool to 1
56 # undef CONFIG_ENABLE_UPDATE_TOOL
57 # define CONFIG_ENABLE_UPDATE_TOOL 1
58 #endif
59 
60 #endif // QTCONFIG_H
61