summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/meter_python.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit2bda8f7717adf28da4af0d34fb82f63d2868c31d (patch)
tree8d927b7b47a90c4adb646482a52613f58acd6f8c /superkaramba/src/meter_python.h
downloadtdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.tar.gz
tdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/meter_python.h')
-rw-r--r--superkaramba/src/meter_python.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/superkaramba/src/meter_python.h b/superkaramba/src/meter_python.h
new file mode 100644
index 0000000..f064977
--- /dev/null
+++ b/superkaramba/src/meter_python.h
@@ -0,0 +1,44 @@
+/***************************************************************************
+ * Copyright (C) 2003-2004 Adam Geitgey <adam@rootnode.org> *
+ * Copyright (C) 2003 Hans Karlsson <karlsson.h@home.se> *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ ***************************************************************************/
+
+#ifndef METER_PYTHON_H
+#define METER_PYTHON_H
+
+// Python uses char* where it should use const char*
+#define PY_PARSE(a, b, c, d) (PyArg_ParseTuple(a, (char*)b, c, d))
+#define PY_BUILD(a, b) (Py_BuildValue((char*)a, b))
+
+bool checkKaramba(long widget);
+bool checkMeter(long widget, long meter, const char* type);
+bool checkKarambaAndMeter(long widget, long meter, const char* type);
+
+QString PyString2QString(PyObject* text);
+PyObject* QString2PyString(QString string);
+
+PyObject* py_getThemeMeter(PyObject *self, PyObject *args, QString type);
+PyObject* py_getSize(PyObject *self, PyObject *args, QString type);
+PyObject* py_resize(PyObject *self, PyObject *args, QString type);
+PyObject* py_getPos(PyObject *self, PyObject *args, QString type);
+PyObject* py_move(PyObject *self, PyObject *args, QString type);
+PyObject* py_hide(PyObject *self, PyObject *args, QString type);
+PyObject* py_show(PyObject *self, PyObject *args, QString type);
+PyObject* py_getValue(PyObject *self, PyObject *args, QString type);
+PyObject* py_setValue(PyObject *self, PyObject *args, QString type);
+PyObject* py_getStringValue(PyObject *self, PyObject *args, QString type);
+PyObject* py_setStringValue(PyObject *self, PyObject *args, QString type);
+PyObject* py_getMinMax(PyObject *self, PyObject *args, QString type);
+PyObject* py_setMinMax(PyObject *self, PyObject *args, QString type);
+PyObject* py_getSensor(PyObject *self, PyObject *args, QString type);
+PyObject* py_setSensor(PyObject *self, PyObject *args, QString type);
+PyObject* py_getColor(PyObject *self, PyObject *args, QString type);
+PyObject* py_setColor(PyObject *self, PyObject *args, QString type);
+
+#endif // METER_PYTHON_H
+