1 /************************************************************************
2  *
3  * Copyright 2012 Jakob Leben (jakob.leben@gmail.com)
4  *
5  * This file is part of SuperCollider Qt GUI.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
19  *
20  ************************************************************************/
21 
22 #include "QcObjectFactory.h"
23 #include "QcWidgetFactory.h"
24 
25 #include <QLabel>
26 
27 QC_DECLARE_QWIDGET_FACTORY(QLabel);
28 
doLoadFactories()29 static void doLoadFactories() {
30     QC_ADD_FACTORY(QcDefaultWidget);
31     QC_ADD_FACTORY(QcHLayoutWidget);
32     QC_ADD_FACTORY(QcVLayoutWidget);
33     QC_ADD_FACTORY(QLabel);
34     QC_ADD_FACTORY(QcTextField);
35     QC_ADD_FACTORY(QcCheckBox);
36     QC_ADD_FACTORY(QcListWidget);
37     QC_ADD_FACTORY(QcPopUpMenu);
38     QC_ADD_FACTORY(QcButton);
39     QC_ADD_FACTORY(QcCustomPainted);
40     QC_ADD_FACTORY(QcFileDialog);
41     QC_ADD_FACTORY(QcGraph);
42     QC_ADD_FACTORY(QcKnob);
43     QC_ADD_FACTORY(QcLevelIndicator);
44     QC_ADD_FACTORY(QcMultiSlider);
45     QC_ADD_FACTORY(QcNumberBox);
46     QC_ADD_FACTORY(QcPenPrinter);
47     QC_ADD_FACTORY(QcRangeSlider);
48     QC_ADD_FACTORY(QcScope);
49     QC_ADD_FACTORY(QcScopeShm);
50     QC_ADD_FACTORY(QcScrollWidget);
51     QC_ADD_FACTORY(QcScrollArea);
52     QC_ADD_FACTORY(QcSlider);
53     QC_ADD_FACTORY(QcSlider2D);
54     QC_ADD_FACTORY(QcWaveform);
55     QC_ADD_FACTORY(QcTextEdit);
56     QC_ADD_FACTORY(QcTreeWidget);
57     QC_ADD_FACTORY(QcMenu);
58     QC_ADD_FACTORY(QcToolBar);
59     QC_ADD_FACTORY(QcAction);
60     QC_ADD_FACTORY(QcWidgetAction);
61     QC_ADD_FACTORY(QcCallback);
62     QC_ADD_FACTORY(QcWindow);
63     QC_ADD_FACTORY(QcScrollWindow);
64     QC_ADD_FACTORY(QcHBoxLayout);
65     QC_ADD_FACTORY(QcVBoxLayout);
66     QC_ADD_FACTORY(QcGridLayout);
67     QC_ADD_FACTORY(QcStackLayout);
68     QC_ADD_FACTORY(QtDownload);
69 #ifdef SC_USE_QTWEBENGINE
70     QC_ADD_FACTORY(WebView);
71 #endif
72 #ifdef __APPLE__
73     QC_ADD_FACTORY(QcQuartzComposerView);
74 #endif
75 }
76 
77 namespace QtCollider {
78 
loadFactories()79 void loadFactories() { doLoadFactories(); }
80 
81 } // namespace QtCollider
82