• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

superkaramba

  • sources
  • kde-4.12
  • kdeutils
  • superkaramba
  • src
  • python
python/meter.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2003-2004 Adam Geitgey <adam@rootnode.org> *
3  * Copyright (C) 2003 Hans Karlsson <karlsson.h@home.se> *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  ***************************************************************************/
10 
11 #ifndef METER_PYTHON_H
12 #define METER_PYTHON_H
13 
14 #include <Python.h>
15 
16 // Python uses char* where it should use const char*
17 #define PY_PARSE(a, b, c, d) (PyArg_ParseTuple(a, (char*)b, c, d))
18 #define PY_BUILD(a, b) (Py_BuildValue((char*)a, b))
19 
20 class QString;
21 
22 bool checkKaramba(long widget);
23 bool checkMeter(long widget, long meter, const char* type);
24 bool checkKarambaAndMeter(long widget, long meter, const char* type);
25 
26 QString PyString2QString(PyObject* text);
27 PyObject* QString2PyString(QString string);
28 
29 PyObject* py_getThemeMeter(PyObject *self, PyObject *args, QString type);
30 PyObject* py_getSize(PyObject *self, PyObject *args, QString type);
31 PyObject* py_resize(PyObject *self, PyObject *args, QString type);
32 PyObject* py_getPos(PyObject *self, PyObject *args, QString type);
33 PyObject* py_move(PyObject *self, PyObject *args, QString type);
34 PyObject* py_hide(PyObject *self, PyObject *args, QString type);
35 PyObject* py_show(PyObject *self, PyObject *args, QString type);
36 PyObject* py_getValue(PyObject *self, PyObject *args, QString type);
37 PyObject* py_setValue(PyObject *self, PyObject *args, QString type);
38 PyObject* py_getStringValue(PyObject *self, PyObject *args, QString type);
39 PyObject* py_setStringValue(PyObject *self, PyObject *args, QString type);
40 PyObject* py_getMinMax(PyObject *self, PyObject *args, QString type);
41 PyObject* py_setMinMax(PyObject *self, PyObject *args, QString type);
42 PyObject* py_getSensor(PyObject *self, PyObject *args, QString type);
43 PyObject* py_setSensor(PyObject *self, PyObject *args, QString type);
44 PyObject* py_getColor(PyObject *self, PyObject *args, QString type);
45 PyObject* py_setColor(PyObject *self, PyObject *args, QString type);
46 
47 #endif // METER_PYTHON_H
48 
PyObject
struct _object PyObject
Definition: python/karamba.h:35
PyString2QString
QString PyString2QString(PyObject *text)
Definition: python/meter.cpp:92
checkMeter
bool checkMeter(long widget, long meter, const char *type)
Definition: python/meter.cpp:51
py_getMinMax
PyObject * py_getMinMax(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:293
py_show
PyObject * py_show(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:236
py_getStringValue
PyObject * py_getStringValue(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:268
checkKaramba
bool checkKaramba(long widget)
Definition: python/meter.cpp:26
py_getPos
PyObject * py_getPos(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:201
py_setSensor
PyObject * py_setSensor(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:328
py_getColor
PyObject * py_getColor(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:353
py_setStringValue
PyObject * py_setStringValue(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:279
checkKarambaAndMeter
bool checkKarambaAndMeter(long widget, long meter, const char *type)
Definition: python/meter.cpp:74
py_resize
PyObject * py_resize(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:189
py_getSize
PyObject * py_getSize(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:177
py_setMinMax
PyObject * py_setMinMax(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:304
QString2PyString
PyObject * QString2PyString(QString string)
Definition: python/meter.cpp:111
py_getSensor
PyObject * py_getSensor(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:316
py_getThemeMeter
PyObject * py_getThemeMeter(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:161
py_getValue
PyObject * py_getValue(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:247
py_setColor
PyObject * py_setColor(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:341
py_hide
PyObject * py_hide(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:225
py_setValue
PyObject * py_setValue(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:257
py_move
PyObject * py_move(PyObject *self, PyObject *args, QString type)
Definition: python/meter.cpp:212
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal