aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_widget.h
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2011-01-01 20:19:56 +0000
committerGravatar Szymon Tomasz Stefanek2011-01-01 20:19:56 +0000
commitc601b5a27f74b16158adafe429faefbe573e64a2 (patch)
treea3cde3206a45628f8ac86e8dfbdab70b20c3a831 /src/modules/objects/class_widget.h
parentprobable compilation fix for rijndaled/crypto++ (diff)
downloadKVIrc-c601b5a27f74b16158adafe429faefbe573e64a2.tar.gz
KVIrc-c601b5a27f74b16158adafe429faefbe573e64a2.tar.bz2
KVIrc-c601b5a27f74b16158adafe429faefbe573e64a2.zip
The big rename for modules. Still some details remaining.
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5284 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/class_widget.h')
-rw-r--r--src/modules/objects/class_widget.h145
1 files changed, 0 insertions, 145 deletions
diff --git a/src/modules/objects/class_widget.h b/src/modules/objects/class_widget.h
deleted file mode 100644
index 14dc1655d..000000000
--- a/src/modules/objects/class_widget.h
+++ /dev/null
@@ -1,145 +0,0 @@
-#ifndef _CLASS_WIDGET_H_
-#define _CLASS_WIDGET_H_
-//=============================================================================
-//
-// File : class_widget.h
-// Creation date : Mon Sep 11 16:35:32 CET 2000 by Krzysztof Godlewski
-//
-// This file is part of the KVIrc irc client distribution
-// Copyright (C) 2000 Krzysztof Godlewski
-// Copyright (C) 2000-2010 Szymon Stefanek (pragma at kvirc dot net)
-//
-// 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 opinion) any later version.
-//
-// This program is distributed in the HOPE that it will be USEFUL,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-// See the GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, write to the Free Software Foundation,
-// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-//
-//=============================================================================
-
-#include "kvi_settings.h"
-#include "KviCString.h"
-#include "KviTalToolTip.h"
-#include "object_macros.h"
-
-#ifdef COMPILE_WEBKIT_SUPPORT
- #include <QtWebKit/QWebView>
-#endif
-
-class KviKvsObject_widget : public KviKvsObject
-{
- Q_OBJECT
-public:
- KVSO_DECLARE_OBJECT(KviKvsObject_widget)
-
-public:
- QWidget * widget() { return (QWidget *)object(); };
-
-protected:
- virtual bool init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams);
-
-#ifdef COMPILE_WEBKIT_SUPPORT
- QWebView * m_pWebview;
-#endif
- virtual bool eventFilter(QObject *o,QEvent *e);
- KviKvsRunTimeContext *m_pContext;
- // ok, it is clear that we're messing with the naming conventions for the
- // object classes :D
- // let's try to use this one:
- // isEnabled
- // setEnabled..
- // ... etc
- // 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
-
- bool addWidgetToWrappedLayout(KviKvsObjectFunctionCall *c);
- bool backgroundColor(KviKvsObjectFunctionCall *c);
- bool centerToScreen(KviKvsObjectFunctionCall *c);
- bool colorPalette(KviKvsObjectFunctionCall *c);
- bool fontAscent(KviKvsObjectFunctionCall * c);
- bool fontDescent(KviKvsObjectFunctionCall * c);
- bool fontMetricsHeight(KviKvsObjectFunctionCall * c);
- bool fontMetricsWidth(KviKvsObjectFunctionCall * c);
- bool foregroundColor(KviKvsObjectFunctionCall *c);
- bool geometry(KviKvsObjectFunctionCall *c);
- bool globalCursorX(KviKvsObjectFunctionCall *c);
- bool globalCursorY(KviKvsObjectFunctionCall *c);
- bool hasFocus(KviKvsObjectFunctionCall *c);
- bool height(KviKvsObjectFunctionCall *);
- bool hide(KviKvsObjectFunctionCall *);
- bool isEnabled(KviKvsObjectFunctionCall *c);
- bool isTopLevel(KviKvsObjectFunctionCall *c);
- bool isVisible(KviKvsObjectFunctionCall *c);
- bool loadInterface(KviKvsObjectFunctionCall *c);
- bool lower(KviKvsObjectFunctionCall *);
- bool mapFromGlobal(KviKvsObjectFunctionCall *c);
- bool mapToGlobal(KviKvsObjectFunctionCall *c);
- bool move(KviKvsObjectFunctionCall *c);
- bool parentWidget(KviKvsObjectFunctionCall *c);
- bool raise(KviKvsObjectFunctionCall *);
- bool repaint(KviKvsObjectFunctionCall *c);
- bool insertIntoStatusBar(KviKvsObjectFunctionCall *c);
- bool removeFromStatusBar(KviKvsObjectFunctionCall *c);
- bool setParent(KviKvsObjectFunctionCall *c);
- bool resize(KviKvsObjectFunctionCall *c);
- bool screenResolution(KviKvsObjectFunctionCall * c);
- bool setAttribute(KviKvsObjectFunctionCall *c);
- bool setBackgroundColor(KviKvsObjectFunctionCall *c);
- bool setBackgroundImage(KviKvsObjectFunctionCall *c);
- bool setEnabled(KviKvsObjectFunctionCall *c);
- bool setFocus(KviKvsObjectFunctionCall *c);
- bool setFocusPolicy(KviKvsObjectFunctionCall *c);
- bool setFont(KviKvsObjectFunctionCall *c);
- bool setGeometry(KviKvsObjectFunctionCall *c);
- bool setKeyShortcut(KviKvsObjectFunctionCall *c);
- bool setMask(KviKvsObjectFunctionCall *c);
- bool setMaximumHeight(KviKvsObjectFunctionCall *c);
- bool setMaximumWidth(KviKvsObjectFunctionCall *c);
- bool setMinimumHeight(KviKvsObjectFunctionCall *c);
- bool setMinimumWidth(KviKvsObjectFunctionCall *c);
- bool setMouseTracking(KviKvsObjectFunctionCall *c);
- bool setForegroundColor(KviKvsObjectFunctionCall *c);
- bool setStyleSheet(KviKvsObjectFunctionCall *c);
- bool setToolTip(KviKvsObjectFunctionCall *);
- bool setWindowIcon(KviKvsObjectFunctionCall *c);
- bool setWindowTitle(KviKvsObjectFunctionCall *c);
- bool setWFlags(KviKvsObjectFunctionCall *c);
- bool show(KviKvsObjectFunctionCall *c);
- bool sizeHint(KviKvsObjectFunctionCall *c);
- bool update(KviKvsObjectFunctionCall *c);
- bool width(KviKvsObjectFunctionCall *);
- bool windowTitle(KviKvsObjectFunctionCall *c);
- bool x(KviKvsObjectFunctionCall *);
- bool y(KviKvsObjectFunctionCall *);
-#ifdef COMPILE_WEBKIT_SUPPORT
- bool setWebView(KviKvsObjectFunctionCall *c);
-#endif
-
-signals:
- void aboutToDie();
-};
-
-class KviKvsWidget : public QWidget
-{
- Q_OBJECT
- Q_PROPERTY(QSize sizeHint READ sizeHint)
-public:
- KviKvsWidget(KviKvsObject_widget * ob,QWidget * par);
-
-
- virtual ~KviKvsWidget();
-protected:
- KviKvsObject_widget * m_pObject;
-public:
- QSize sizeHint() const;
-};
-#endif //_CLASS_WIDGET_H_