From f4da8086b4ab698510290f92aa679a305a537a27 Mon Sep 17 00:00:00 2001 From: Robert Förster Date: Tue, 16 Sep 2008 11:43:31 +0000 Subject: pop in some EOL and svn properties fixes. - all textfiles were converted to unix line endings - svn:eol-style native has been set on that files so noone has to care about it again, now the svn client does take care of that, a checkout on unix will get unix lineendings, a checkout on windows will get windows lineendings - svn:executable fixup (some file had the executable bit set were they shouldn't) - svn:mime-type fixes for most of the files, which will probaly only affect trac in viewing that files - some typo fixup, the manpage seems to need some love, though. this will be pushed to the branches once i get to it today. git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2469 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/objects/class_widget.h | 282 ++++++++++++++++++------------------- 1 file changed, 141 insertions(+), 141 deletions(-) (limited to 'src/modules/objects/class_widget.h') diff --git a/src/modules/objects/class_widget.h b/src/modules/objects/class_widget.h index ef1c32d6f..acc8156fc 100644 --- a/src/modules/objects/class_widget.h +++ b/src/modules/objects/class_widget.h @@ -1,141 +1,141 @@ -#ifndef _CLASS_WIDGET_H_ -#define _CLASS_WIDGET_H_ -// File : class_widget.h -// Creation date : Mon 11 Sep 16:34:36 CET 2000 by Krzysztof Godlewski -// -// This file is part of the KVirc irc client distribution -// Copyright (C) 1999-2000 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. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// - -#include "kvi_string.h" -#include "kvi_tal_tooltip.h" -#include "object_macros.h" - -#ifdef COMPILE_WEBKIT_SUPPORT - #include -#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); - - // ok, it is clear that we're messing with the naming conventions for the - // object classes :D - // let's try to use this one: - // function_isEnabled - // function_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 function_addWidgetToWrappedLayout(KviKvsObjectFunctionCall *c); - bool function_backgroundColor(KviKvsObjectFunctionCall *c); - bool function_centerToScreen(KviKvsObjectFunctionCall *c); - bool function_colorPalette(KviKvsObjectFunctionCall *c); - bool function_fontAscent(KviKvsObjectFunctionCall * c); - bool function_fontDescent(KviKvsObjectFunctionCall * c); - bool function_fontMetricsHeight(KviKvsObjectFunctionCall * c); - bool function_fontMetricsWidth(KviKvsObjectFunctionCall * c); - bool function_foregroundColor(KviKvsObjectFunctionCall *c); - bool function_geometry(KviKvsObjectFunctionCall *c); - bool function_globalCursorX(KviKvsObjectFunctionCall *c); - bool function_globalCursorY(KviKvsObjectFunctionCall *c); - bool function_hasFocus(KviKvsObjectFunctionCall *c); - bool function_height(KviKvsObjectFunctionCall *); - bool function_hide(KviKvsObjectFunctionCall *); - bool function_isEnabled(KviKvsObjectFunctionCall *c); - bool function_isTopLevel(KviKvsObjectFunctionCall *c); - bool function_isVisible(KviKvsObjectFunctionCall *c); - bool function_loadInterface(KviKvsObjectFunctionCall *c); - bool function_lower(KviKvsObjectFunctionCall *); - bool function_mapFromGlobal(KviKvsObjectFunctionCall *c); - bool function_mapToGlobal(KviKvsObjectFunctionCall *c); - bool function_move(KviKvsObjectFunctionCall *c); - bool function_parentWidget(KviKvsObjectFunctionCall *c); - bool function_raise(KviKvsObjectFunctionCall *); - bool function_repaint(KviKvsObjectFunctionCall *c); - bool function_insertIntoStatusBar(KviKvsObjectFunctionCall *c); - bool function_removeFromStatusBar(KviKvsObjectFunctionCall *c); - bool function_reparent(KviKvsObjectFunctionCall *c); - bool function_resize(KviKvsObjectFunctionCall *c); - bool function_screenResolution(KviKvsObjectFunctionCall * c); - bool function_setAttribute(KviKvsObjectFunctionCall *c); - bool function_setBackgroundColor(KviKvsObjectFunctionCall *c); - bool function_setBackgroundImage(KviKvsObjectFunctionCall *c); - bool function_setEnabled(KviKvsObjectFunctionCall *c); - bool function_setFocus(KviKvsObjectFunctionCall *c); - bool function_setFocusPolicy(KviKvsObjectFunctionCall *c); - bool function_setFont(KviKvsObjectFunctionCall *c); - bool function_setGeometry(KviKvsObjectFunctionCall *c); - bool function_setKeyShortcut(KviKvsObjectFunctionCall *c); - bool function_setMask(KviKvsObjectFunctionCall *c); - bool function_setMaximumHeight(KviKvsObjectFunctionCall *c); - bool function_setMaximumWidth(KviKvsObjectFunctionCall *c); - bool function_setMinimumHeight(KviKvsObjectFunctionCall *c); - bool function_setMinimumWidth(KviKvsObjectFunctionCall *c); - bool function_setMouseTracking(KviKvsObjectFunctionCall *c); - bool function_setPaletteForeground(KviKvsObjectFunctionCall *c); - bool function_setStyleSheet(KviKvsObjectFunctionCall *c); - bool function_setToolTip(KviKvsObjectFunctionCall *); - bool function_setWindowIcon(KviKvsObjectFunctionCall *c); - bool function_setWindowTitle(KviKvsObjectFunctionCall *c); - bool function_setWFlags(KviKvsObjectFunctionCall *c); - bool function_show(KviKvsObjectFunctionCall *c); - bool function_sizeHint(KviKvsObjectFunctionCall *c); - bool function_update(KviKvsObjectFunctionCall *c); - bool function_width(KviKvsObjectFunctionCall *); - bool function_windowTitle(KviKvsObjectFunctionCall *c); - bool function_x(KviKvsObjectFunctionCall *); - bool function_y(KviKvsObjectFunctionCall *); - -#ifdef COMPILE_WEBKIT_SUPPORT - bool function_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_ +#ifndef _CLASS_WIDGET_H_ +#define _CLASS_WIDGET_H_ +// File : class_widget.h +// Creation date : Mon 11 Sep 16:34:36 CET 2000 by Krzysztof Godlewski +// +// This file is part of the KVirc irc client distribution +// Copyright (C) 1999-2000 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. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// + +#include "kvi_string.h" +#include "kvi_tal_tooltip.h" +#include "object_macros.h" + +#ifdef COMPILE_WEBKIT_SUPPORT + #include +#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); + + // ok, it is clear that we're messing with the naming conventions for the + // object classes :D + // let's try to use this one: + // function_isEnabled + // function_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 function_addWidgetToWrappedLayout(KviKvsObjectFunctionCall *c); + bool function_backgroundColor(KviKvsObjectFunctionCall *c); + bool function_centerToScreen(KviKvsObjectFunctionCall *c); + bool function_colorPalette(KviKvsObjectFunctionCall *c); + bool function_fontAscent(KviKvsObjectFunctionCall * c); + bool function_fontDescent(KviKvsObjectFunctionCall * c); + bool function_fontMetricsHeight(KviKvsObjectFunctionCall * c); + bool function_fontMetricsWidth(KviKvsObjectFunctionCall * c); + bool function_foregroundColor(KviKvsObjectFunctionCall *c); + bool function_geometry(KviKvsObjectFunctionCall *c); + bool function_globalCursorX(KviKvsObjectFunctionCall *c); + bool function_globalCursorY(KviKvsObjectFunctionCall *c); + bool function_hasFocus(KviKvsObjectFunctionCall *c); + bool function_height(KviKvsObjectFunctionCall *); + bool function_hide(KviKvsObjectFunctionCall *); + bool function_isEnabled(KviKvsObjectFunctionCall *c); + bool function_isTopLevel(KviKvsObjectFunctionCall *c); + bool function_isVisible(KviKvsObjectFunctionCall *c); + bool function_loadInterface(KviKvsObjectFunctionCall *c); + bool function_lower(KviKvsObjectFunctionCall *); + bool function_mapFromGlobal(KviKvsObjectFunctionCall *c); + bool function_mapToGlobal(KviKvsObjectFunctionCall *c); + bool function_move(KviKvsObjectFunctionCall *c); + bool function_parentWidget(KviKvsObjectFunctionCall *c); + bool function_raise(KviKvsObjectFunctionCall *); + bool function_repaint(KviKvsObjectFunctionCall *c); + bool function_insertIntoStatusBar(KviKvsObjectFunctionCall *c); + bool function_removeFromStatusBar(KviKvsObjectFunctionCall *c); + bool function_reparent(KviKvsObjectFunctionCall *c); + bool function_resize(KviKvsObjectFunctionCall *c); + bool function_screenResolution(KviKvsObjectFunctionCall * c); + bool function_setAttribute(KviKvsObjectFunctionCall *c); + bool function_setBackgroundColor(KviKvsObjectFunctionCall *c); + bool function_setBackgroundImage(KviKvsObjectFunctionCall *c); + bool function_setEnabled(KviKvsObjectFunctionCall *c); + bool function_setFocus(KviKvsObjectFunctionCall *c); + bool function_setFocusPolicy(KviKvsObjectFunctionCall *c); + bool function_setFont(KviKvsObjectFunctionCall *c); + bool function_setGeometry(KviKvsObjectFunctionCall *c); + bool function_setKeyShortcut(KviKvsObjectFunctionCall *c); + bool function_setMask(KviKvsObjectFunctionCall *c); + bool function_setMaximumHeight(KviKvsObjectFunctionCall *c); + bool function_setMaximumWidth(KviKvsObjectFunctionCall *c); + bool function_setMinimumHeight(KviKvsObjectFunctionCall *c); + bool function_setMinimumWidth(KviKvsObjectFunctionCall *c); + bool function_setMouseTracking(KviKvsObjectFunctionCall *c); + bool function_setPaletteForeground(KviKvsObjectFunctionCall *c); + bool function_setStyleSheet(KviKvsObjectFunctionCall *c); + bool function_setToolTip(KviKvsObjectFunctionCall *); + bool function_setWindowIcon(KviKvsObjectFunctionCall *c); + bool function_setWindowTitle(KviKvsObjectFunctionCall *c); + bool function_setWFlags(KviKvsObjectFunctionCall *c); + bool function_show(KviKvsObjectFunctionCall *c); + bool function_sizeHint(KviKvsObjectFunctionCall *c); + bool function_update(KviKvsObjectFunctionCall *c); + bool function_width(KviKvsObjectFunctionCall *); + bool function_windowTitle(KviKvsObjectFunctionCall *c); + bool function_x(KviKvsObjectFunctionCall *); + bool function_y(KviKvsObjectFunctionCall *); + +#ifdef COMPILE_WEBKIT_SUPPORT + bool function_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_ -- cgit v1.3.1-10-gc9f91