Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / QtCollider / primitives / primitives.cpp
blobefb837ed7f7aa604c4db5492cc54ba515c60f15f
1 /************************************************************************
3 * Copyright 2010-2012 Jakob Leben (jakob.leben@gmail.com)
5 * This file is part of SuperCollider Qt GUI.
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 3 of the License, or
10 * (at your option) any later version.
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.
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/>.
20 ************************************************************************/
22 #include "primitives.h"
23 #include "../Common.h"
24 #include "QC_Export.h"
25 #include "QtCollider.h"
27 #include <SCBase.h>
29 namespace QtCollider {
31 #define QC_DO_SYMBOL(SYM) PyrSymbol * sym_##SYM
32 QC_DO_SYMBOLS
33 #undef QC_DO_SYMBOL
35 void defineQObjectPrimitives();
36 void defineQPenPrimitives();
37 void defineMiscPrimitives();
38 void defineQWidgetPrimitives();
39 void defineQPalettePrimitives();
41 QC_PUBLIC
42 void initPrimitives () {
43 QtCollider::init();
45 qcDebugMsg(1,"initializing QtGUI primitives");
47 defineQObjectPrimitives();
48 defineQWidgetPrimitives();
49 defineQPenPrimitives();
50 defineMiscPrimitives();
51 defineQPalettePrimitives();
53 #define QC_DO_SYMBOL(SYM) sym_##SYM = getsym(#SYM);
54 QC_DO_SYMBOLS
55 #undef QC_DO_SYMBOL
58 } // namespace QtCollider