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

superkaramba

graph.cpp File Reference

#include <Python.h>
#include <qobject.h>
#include "../karamba.h"
#include "meters/meter.h"
#include "python/meter.h"
#include "meters/graph.h"
#include "python/graph.h"

Include dependency graph for python/graph.cpp:

Go to the source code of this file.


Functions

PyObject * py_createGraph (PyObject *, PyObject *args)
PyObject * py_deleteGraph (PyObject *, PyObject *args)
PyObject * py_getThemeGraph (PyObject *self, PyObject *args)
PyObject * py_getGraphSize (PyObject *self, PyObject *args)
PyObject * py_resizeGraph (PyObject *self, PyObject *args)
PyObject * py_getGraphPos (PyObject *self, PyObject *args)
PyObject * py_moveGraph (PyObject *self, PyObject *args)
PyObject * py_hideGraph (PyObject *self, PyObject *args)
PyObject * py_showGraph (PyObject *self, PyObject *args)
PyObject * py_getGraphMinMax (PyObject *self, PyObject *args)
PyObject * py_setGraphMinMax (PyObject *self, PyObject *args)
PyObject * py_getGraphValue (PyObject *self, PyObject *args)
PyObject * py_setGraphValue (PyObject *self, PyObject *args)
PyObject * py_getGraphSensor (PyObject *self, PyObject *args)
PyObject * py_setGraphSensor (PyObject *self, PyObject *args)
PyObject * py_getGraphColor (PyObject *self, PyObject *args)
PyObject * py_setGraphColor (PyObject *self, PyObject *args)

Function Documentation

PyObject* py_createGraph ( PyObject *  self,
PyObject *  args 
)

Graph/createGraph.

SYNOPSIS long createGraph(widget, x, y, w, h, points) DESCRIPTION This creates a graph at x,y with width and height w,h. ARGUMENTS * long widget -- karamba * long x -- x coordinate * long y -- y coordinate * long w -- width * long h -- height * long points -- Number of points in graph RETURN VALUE Pointer to new graph meter

Definition at line 35 of file python/graph.cpp.

PyObject* py_deleteGraph ( PyObject *  self,
PyObject *  args 
)

Graph/deleteGraph.

SYNOPSIS long deleteGraph(widget, graph) DESCRIPTION This deletes graph. ARGUMENTS * long widget -- karamba * long widget -- graph RETURN VALUE 1 if successful

Definition at line 50 of file python/graph.cpp.

PyObject* py_getGraphColor ( PyObject *  self,
PyObject *  args 
)

Graph/getGraphColor.

SYNOPSIS tuple getGraphColor(widget, graph) DESCRIPTION Get current graph color ARGUMENTS * long widget -- karamba * long graph -- pointer to graph RETURN VALUE (red, green, blue)

Definition at line 128 of file python/graph.cpp.

PyObject* py_getGraphMinMax ( PyObject *  self,
PyObject *  args 
)

Graph/getGraphMinMax.

SYNOPSIS tuple getGraphMinMax(widget, graph) DESCRIPTION Returns current graph value. ARGUMENTS * long widget -- karamba * long graph -- pointer to graph RETURN VALUE min & max

Definition at line 98 of file python/graph.cpp.

PyObject* py_getGraphPos ( PyObject *  self,
PyObject *  args 
)

Graph/getGraphPos.

SYNOPSIS tuple getGraphPos(widget, graph) DESCRIPTION Given a reference to a graph object, this will return a tuple containing the x and y coordinate of a graph object. ARGUMENTS * long widget -- karamba * long graph -- pointer to graph RETURN VALUE pos

Definition at line 78 of file python/graph.cpp.

PyObject* py_getGraphSensor ( PyObject *  self,
PyObject *  args 
)

Graph/getGraphSensor.

SYNOPSIS string getGraphSensor(widget, graph) DESCRIPTION Get current sensor string ARGUMENTS * long widget -- karamba * long graph -- pointer to graph RETURN VALUE sensor string

Definition at line 118 of file python/graph.cpp.

PyObject* py_getGraphSize ( PyObject *  self,
PyObject *  args 
)

Graph/getGraphSize.

SYNOPSIS tuple getGraphSize(widget, graph) DESCRIPTION Given a reference to a graph object, this will return a tuple containing the height and width of a graph object. ARGUMENTS * long widget -- karamba * long graph -- pointer to graph RETURN VALUE size

Definition at line 68 of file python/graph.cpp.

PyObject* py_getGraphValue ( PyObject *  self,
PyObject *  args 
)

Graph/getGraphValue.

SYNOPSIS long getGraphValue(widget, graph) DESCRIPTION Returns current graph value. ARGUMENTS * long widget -- karamba * long graph -- pointer to graph RETURN VALUE value

Definition at line 108 of file python/graph.cpp.

PyObject* py_getThemeGraph ( PyObject *  self,
PyObject *  args 
)

Graph/getThemeGraph.

SYNOPSIS long getThemeGraph(widget, name) DESCRIPTION You can reference graph in your python code that was created in the theme file. Basically, you just add a NAME= value to the GRAPH line in the .theme file. Then if you want to use that object, instead of calling createGraph, you can call this function.

The name you pass to the function is the same one that you gave it for the NAME= parameter in the .theme file. ARGUMENTS * long widget -- karamba * string name -- name of the graph to get RETURN VALUE Pointer to graph

Definition at line 63 of file python/graph.cpp.

PyObject* py_hideGraph ( PyObject *  self,
PyObject *  args 
)

Graph/hideGraph.

SYNOPSIS long hideGraph(widget, graph) DESCRIPTION This hides an graph. In other words, during subsequent calls to widgetUpdate(), this graph will not be drawn. ARGUMENTS * long widget -- karamba * long graph -- pointer to graph RETURN VALUE 1 if successful

Definition at line 88 of file python/graph.cpp.

PyObject* py_moveGraph ( PyObject *  self,
PyObject *  args 
)

Graph/moveGraph.

SYNOPSIS long moveGraph(widget, graph, x, y) DESCRIPTION This will move graph to new x and y coordinates. ARGUMENTS * long widget -- karamba * long graph -- pointer to graph * long x -- x coordinate * long y -- y coordinate RETURN VALUE 1 if successful

Definition at line 83 of file python/graph.cpp.

PyObject* py_resizeGraph ( PyObject *  self,
PyObject *  args 
)

Graph/resizeGraph.

SYNOPSIS long resizeGraph(widget, graph, w, h) DESCRIPTION This will resize graph to new height and width. ARGUMENTS * long widget -- karamba * long graph -- pointer to graph * long w -- new width * long h -- new height RETURN VALUE 1 if successful

Definition at line 73 of file python/graph.cpp.

PyObject* py_setGraphColor ( PyObject *  self,
PyObject *  args 
)

Graph/setGraphColor.

SYNOPSIS tuple setGraphColor(widget, graph, red, green, blue) DESCRIPTION Set current graph color ARGUMENTS * long widget -- karamba * long graph -- pointer to graph * long red -- red component of color * long green -- green component of color * long blue -- blue component of color RETURN VALUE 1 if successful

Definition at line 133 of file python/graph.cpp.

PyObject* py_setGraphMinMax ( PyObject *  self,
PyObject *  args 
)

Graph/setGraphMinMax.

SYNOPSIS long setGraphMinMax(widget, graph, min, max) DESCRIPTION Returns current graph value. ARGUMENTS * long widget -- karamba * long graph -- pointer to graph * long min -- min value * long max -- max value RETURN VALUE 1 if successful

Definition at line 103 of file python/graph.cpp.

PyObject* py_setGraphSensor ( PyObject *  self,
PyObject *  args 
)

Graph/setGraphSensor.

SYNOPSIS long setGraphSensor(widget, graph, sensor) DESCRIPTION Get current sensor string ARGUMENTS * long widget -- karamba * long graph -- pointer to graph * string sensor -- new sensor as in theme files RETURN VALUE 1 if successful

Definition at line 123 of file python/graph.cpp.

PyObject* py_setGraphValue ( PyObject *  self,
PyObject *  args 
)

Graph/setGraphValue.

SYNOPSIS long setGraphValue(widget, graph, value) DESCRIPTION Sets current graph value. ARGUMENTS * long widget -- karamba * long graph -- pointer to graph * long value -- new value RETURN VALUE 1 if successful

Definition at line 113 of file python/graph.cpp.

PyObject* py_showGraph ( PyObject *  self,
PyObject *  args 
)

Graph/showGraph.

SYNOPSIS long showGraph(widget, graph) DESCRIPTION This shows an graph. In other words, during subsequent calls to widgetUpdate(), this graph will be drawn. ARGUMENTS * long widget -- karamba * long graph -- pointer to graph RETURN VALUE 1 if successful

Definition at line 93 of file python/graph.cpp.

superkaramba

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

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal