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 #include "QtWidgets/qboxlayout.h"
20 # pragma clang diagnostic push
21 # pragma clang diagnostic ignored "-Wdeprecated-copy-with-user-provided-copy"
22 # pragma clang diagnostic ignored "-Wdeprecated-register"
23 #elif defined(__GNUC__) && __GNUC__ >= 8
24 # pragma GCC diagnostic push
25 # pragma GCC diagnostic ignored "-Wclass-memaccess"
26 # pragma GCC diagnostic ignored "-Wdeprecated-copy"
29 #include <QtWidgets/QFrame>
30 #include <QtWidgets/QVBoxLayout>
33 # pragma clang diagnostic pop
34 #elif defined(__GNUC__) && __GNUC__ >= 8
35 # pragma GCC diagnostic pop
38 #include "CarlaDefines.h"
40 // --------------------------------------------------------------------------------------------------------------------
41 // Jack Application Dialog
43 class CollapsibleBox
: public QFrame
48 // ----------------------------------------------------------------------------------------------------------------
51 explicit CollapsibleBox(QWidget
* parent
);
52 ~CollapsibleBox() override
;
54 // ----------------------------------------------------------------------------------------------------------------
57 QVBoxLayout
* getContentLayout() const noexcept
;
59 // ----------------------------------------------------------------------------------------------------------------
63 void toolButtonPressed(bool toggled
);
66 // --------------------------------------------------------------------------------------------------------------------
70 CARLA_API
void* carla_frontend_createCollapsibleBox(void* parent
);
74 // --------------------------------------------------------------------------------------------------------------------