29 #include <QGraphicsItemGroup>
31 #include <QGraphicsItemAnimation>
58 int instance = -1,
bool subTheme =
false,
59 const QPoint &startPos = QPoint(),
bool reload =
false,
bool startkaramba =
true);
63 QRectF boundingRect()
const;
65 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
68 QGraphicsScene* getScene()
const;
71 void keyPressed(
const QString& s,
const Meter* meter);
75 bool hasMeter(
const Meter* meter)
const;
76 bool removeMeter(
Meter *meter);
77 QString getSensor(
const Meter* meter)
const;
79 void deleteMeterFromSensors(
Meter* meter);
81 void setFixedSize(u_int w, u_int h);
83 KConfig* getConfig()
const;
85 bool popupMenuExisting(
const KMenu *menu)
const;
86 void setPrettyName(
const QString &prettyThemeName);
87 QString prettyName()
const;
89 double getUpdateTime()
const;
90 void setUpdateTime(
double newTime);
91 void setWantRightButton(
bool enable);
95 KMenu* addPopupMenu();
96 QAction*
addMenuItem(KMenu *menu,
const QString &text,
98 void popupMenu(KMenu *menu,
const QPoint &pos)
const;
99 void deletePopupMenu(KMenu *menu);
100 void deleteMenuItem(QAction *action);
101 void scaleImageLabel(
Meter *meter,
int width,
103 void moveMeter(
Meter *meter,
int x,
int y)
const;
104 void writeConfigData();
106 void setMenuExtension(KMenu*);
107 void removeMenuExtension();
108 bool hasMenuExtension()
const;
111 void setInstance(
int instance);
113 void resizeTo(
int width,
int height);
114 QPoint getPosition()
const;
117 void notifyTheme(
const QString &sender,
const QString &data);
118 bool sendDataToTheme(
const QString &prettyThemeName,
const QString &data);
119 QString retrieveReceivedData()
const;
120 bool sendData(
const QString &prettyThemeName,
const QString &data);
122 void setOnTop(
bool stayOnTop);
123 bool isSubTheme()
const;
130 void setProcess(K3Process *process);
131 K3Process* process()
const;
136 QObject* getPlasmaSensor(
const QString& engine,
const QString& source = QString());
138 void replaceNamedValues(QString* source);
139 QString getMeterValue(
const QString& name);
144 void updateSensors();
147 void processExited(K3Process *proc);
148 void receivedStdout(K3Process *proc,
char *buffer,
int buflen);
154 void passMenuItemClicked(QAction* action);
155 void slotFileChanged(
const QString &file);
156 void popupGlobalMenu()
const;
157 void moveToPos(QPoint pos);
158 void emitError(
const QString& errormessage);
161 void positionChanged();
163 void error(
const QString& errormessage);
166 void slotToggleLocked();
167 void currentDesktopChanged(
int i);
168 void slotToggleConfigOption(
QObject*);
169 void slotDesktopChanged(
int desktop);
170 void currentWallpaperChanged(
int desktop);
175 void mousePressEvent(QGraphicsSceneMouseEvent *event);
176 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
177 void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
178 void wheelEvent(QGraphicsSceneWheelEvent *event);
179 void hoverMoveEvent(QGraphicsSceneHoverEvent *event);
180 void dragEnterEvent(QGraphicsSceneDragDropEvent *event);
181 void dropEvent(QGraphicsSceneDragDropEvent *event);
182 void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
183 void timerEvent(QTimerEvent *event);
184 void keyPressEvent(QKeyEvent *event);
185 QVariant itemChange(GraphicsItemChange change,
const QVariant &value);
192 Sensor *findSensorFromList(
const Meter *meter)
const;
193 QString findSensorFromMap(
const Sensor *sensor)
const;
195 void preparePopupMenu();
196 int passEvent(QEvent *event);
long readMenuConfigOption(long widget, QString key)
KSharedPtr< Startup > StartupPtr
long setMenuConfigOption(long widget, QString key, bool value)
KDE_EXPORT QGraphicsItemGroup * startKaramba(const KUrl &theme, QGraphicsView *view)
long getMeter(long widget, char *name)
static void changeInterval(long widget, long interval)
long addMenuConfigOption(long widget, QString key, QString name)
#define SUPERKARAMBA_EXPORT
static long setIncomingData(long widget, char *path, char *obj)
int getNumberOfDesktops(long widget)
KSharedPtr< Task > TaskPtr