Cleanup
[carla.git] / source / frontend / dialogs / jackappdialog.hpp
blob0a52a5d2ba4d24783d1b99832eed345198895e34
1 /*
2 * Carla plugin host
3 * Copyright (C) 2011-2022 Filipe Coelho <falktx@falktx.com>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * For a full copy of the GNU General Public License see the doc/GPL.txt file.
18 #pragma once
20 #ifdef __clang__
21 # pragma clang diagnostic push
22 # pragma clang diagnostic ignored "-Wdeprecated-copy-with-user-provided-copy"
23 # pragma clang diagnostic ignored "-Wdeprecated-register"
24 #elif defined(__GNUC__) && __GNUC__ >= 8
25 # pragma GCC diagnostic push
26 # pragma GCC diagnostic ignored "-Wclass-memaccess"
27 # pragma GCC diagnostic ignored "-Wdeprecated-copy"
28 #endif
30 #include <QtWidgets/QDialog>
32 #ifdef __clang__
33 # pragma clang diagnostic pop
34 #elif defined(__GNUC__) && __GNUC__ >= 8
35 # pragma GCC diagnostic pop
36 #endif
38 #include "qcarlastring.hpp"
40 // --------------------------------------------------------------------------------------------------------------------
41 // Jack Application Dialog
43 class JackAppDialog : public QDialog
45 struct Self;
46 Self& self;
48 // ----------------------------------------------------------------------------------------------------------------
50 public:
51 explicit JackAppDialog(QWidget* parent, const char* projectFilename);
52 ~JackAppDialog() override;
54 // ----------------------------------------------------------------------------------------------------------------
55 // public methods
57 struct CommandAndFlags {
58 QString command;
59 QString name;
60 QString labelSetup;
62 CommandAndFlags getCommandAndFlags() const;
64 // ----------------------------------------------------------------------------------------------------------------
65 // private methods
67 private:
68 void checkIfButtonBoxShouldBeEnabled(int index, const QCarlaString& text);
69 void loadSettings();
71 // ----------------------------------------------------------------------------------------------------------------
72 // private slots
74 private slots:
75 void slot_commandChanged(const QString& command);
76 void slot_sessionManagerChanged(int);
77 void slot_saveSettings();
80 // --------------------------------------------------------------------------------------------------------------------