aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_widget.h
diff options
context:
space:
mode:
authorGravatar Noldor2007-01-01 19:50:17 +0000
committerGravatar Noldor2007-01-01 19:50:17 +0000
commitb7bada5b68c7ac4740f519b5c3d5a9b6f2d97841 (patch)
tree65cafd8794aeb5d329da095c8a5ccd31a851b04e /src/modules/objects/class_widget.h
parent*AUTOMATICALLY* updated KVI_SOURCES_DATE variable (diff)
downloadKVIrc-b7bada5b68c7ac4740f519b5c3d5a9b6f2d97841.tar.gz
KVIrc-b7bada5b68c7ac4740f519b5c3d5a9b6f2d97841.tar.bz2
KVIrc-b7bada5b68c7ac4740f519b5c3d5a9b6f2d97841.zip
wip on dynamic tool tips in objects module(still incomplete, bugged and undocumented :D)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@86 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/class_widget.h')
-rw-r--r--src/modules/objects/class_widget.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/modules/objects/class_widget.h b/src/modules/objects/class_widget.h
index 8f5453c10..38f7a5414 100644
--- a/src/modules/objects/class_widget.h
+++ b/src/modules/objects/class_widget.h
@@ -23,13 +23,10 @@
//
#include "kvi_string.h"
-
-
-
-
-
+#include "qtooltip.h"
#include "object_macros.h"
+class KviKvsTip;
class KviKvsObject_widget : public KviKvsObject
{
Q_OBJECT
@@ -51,7 +48,7 @@ protected:
// so the name of the C++ function matches exactly the name of the KVS function at this point
// let's also try to keep alphabetic order for the functions here.. so one can find them quickly
-
+ KviKvsTip *m_pTip;
bool function_addWidgetToWrappedLayout(KviKvsObjectFunctionCall *c);
bool function_backgroundColor(KviKvsObjectFunctionCall *c);
bool function_caption(KviKvsObjectFunctionCall *c);
@@ -102,9 +99,24 @@ protected:
bool function_width(KviKvsObjectFunctionCall *);
bool function_x(KviKvsObjectFunctionCall *);
bool function_y(KviKvsObjectFunctionCall *);
+ bool function_enableDynamicToolTip(KviKvsObjectFunctionCall *c);
+ bool function_disableDynamicToolTip(KviKvsObjectFunctionCall *c);
+ bool function_setDynamicToolTip(KviKvsObjectFunctionCall *c);
+
signals:
void aboutToDie();
};
+class KviKvsTip : public QToolTip
+{
+public:
+ KviKvsTip(KviKvsObject_widget * pParent,QWidget *pWidget);
+ ~KviKvsTip();
+public:
+ void maybeTip(const QPoint &pnt);
+ void doTip(const QRect &rct,const QString &str){ tip(rct,str); };
+protected:
+ KviKvsObject_widget * m_pParent;
+};
#endif // !_CLASS_WIDGET_H_