From c75b9f00eaeee4b8503ba662b3d7ccc9e1914096 Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Mon, 18 Dec 2006 01:34:15 +0000 Subject: Switching from cvs to svn, initial import git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@14 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/codetester/.svnignore | 9 + src/modules/codetester/Makefile.am | 17 ++ src/modules/codetester/codetester.cpp | 157 ++++++++++++++++ src/modules/codetester/codetester.h | 67 +++++++ src/modules/codetester/codetester.vcproj | 172 +++++++++++++++++ src/modules/codetester/codetester_vc05.vcproj | 261 ++++++++++++++++++++++++++ src/modules/codetester/kvicodetester.dsp | 147 +++++++++++++++ src/modules/codetester/kvicodetester.dsw | 29 +++ src/modules/codetester/libkvicodetester.cpp | 89 +++++++++ 9 files changed, 948 insertions(+) create mode 100644 src/modules/codetester/.svnignore create mode 100644 src/modules/codetester/Makefile.am create mode 100644 src/modules/codetester/codetester.cpp create mode 100644 src/modules/codetester/codetester.h create mode 100755 src/modules/codetester/codetester.vcproj create mode 100644 src/modules/codetester/codetester_vc05.vcproj create mode 100644 src/modules/codetester/kvicodetester.dsp create mode 100644 src/modules/codetester/kvicodetester.dsw create mode 100644 src/modules/codetester/libkvicodetester.cpp (limited to 'src/modules/codetester') diff --git a/src/modules/codetester/.svnignore b/src/modules/codetester/.svnignore new file mode 100644 index 000000000..71a203562 --- /dev/null +++ b/src/modules/codetester/.svnignore @@ -0,0 +1,9 @@ +Makefile.in +Makefile +.deps +*.o +*.lo +*.la +*.moc +.libs +moc_*.cpp \ No newline at end of file diff --git a/src/modules/codetester/Makefile.am b/src/modules/codetester/Makefile.am new file mode 100644 index 000000000..37540094a --- /dev/null +++ b/src/modules/codetester/Makefile.am @@ -0,0 +1,17 @@ +AM_CPPFLAGS = -I$(SS_TOPSRCDIR)/src/kvilib/include/ -I$(SS_TOPSRCDIR)/src/kvirc/include/ \ +$(SS_INCDIRS) $(SS_CPPFLAGS) -DGLOBAL_KVIRC_DIR=\"$(globalkvircdir)\" + +pluglib_LTLIBRARIES = libkvicodetester.la + +libkvicodetester_la_LDFLAGS = -module -avoid-version $(SS_LDFLAGS) $(SS_LIBDIRS) + +libkvicodetester_la_SOURCES = libkvicodetester.cpp codetester.cpp +nodist_libkvicodetester_la_SOURCES = moc_codetester.cpp + +noinst_HEADERS = codetester.h +libkvicodetester_la_LIBADD = $(SS_LIBLINK) ../../kvilib/build/libkvilib.la + +# noinst_HEADERS= + +moc_codetester.cpp: codetester.h + $(SS_QT_MOC) $< -o $@ diff --git a/src/modules/codetester/codetester.cpp b/src/modules/codetester/codetester.cpp new file mode 100644 index 000000000..c94475a14 --- /dev/null +++ b/src/modules/codetester/codetester.cpp @@ -0,0 +1,157 @@ +// +// File : codetester.cpp +// Creation date : Mon Dec 23 2002 20:28:18 by Szymon Stefanek +// +// This file is part of the KVirc irc client distribution +// Copyright (C) 2002 Szymon Stefanek (pragma at kvirc dot net) +// +// This program is FREE software. You can redistribute it and/or +// modify it under the linkss 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 "codetester.h" + +#include "kvi_iconmanager.h" +#include "kvi_options.h" +#include "kvi_locale.h" +#include "kvi_config.h" +#include "kvi_filedialog.h" +#include "kvi_fileutils.h" +#include "kvi_scripteditor.h" + +#include "kvi_app.h" +#include "kvi_console.h" +#include "kvi_parameterlist.h" +#include "kvi_kvs_script.h" +#include "kvi_kvs_variantlist.h" + +#include +#include +#include +#include +#include + +extern KviPtrList * g_pCodeTesterWindowList; + + + + +KviCodeTester::KviCodeTester(QWidget * par) +: QWidget(par,"code_tester") +{ + QGridLayout * g = new QGridLayout(this,2,4,2,2); + m_pEditor = KviScriptEditor::createInstance(this); + g->addMultiCellWidget(m_pEditor,0,0,0,3); + m_pExecuteButton = new QPushButton(__tr2qs("&Execute"),this); + g->addWidget(m_pExecuteButton,1,3); + connect(m_pExecuteButton,SIGNAL(clicked()),this,SLOT(execute())); + + m_pModeLabel = new QLabel(__tr("Params:"),this); + g->addWidget(m_pModeLabel,1,1); + m_pParams = new QLineEdit(this); + g->addWidget(m_pParams,1,2); +} + +KviCodeTester::~KviCodeTester() +{ + KviScriptEditor::destroyInstance(m_pEditor); +} + +//#warning "Allow to bind the command to a specified window" + +void KviCodeTester::execute() +{ + QString parms = m_pParams->text(); + QString buffer; + m_pEditor->getText(buffer); + KviConsole * con = g_pApp->activeConsole(); + //KviParameterList * l = new KviParameterList(parms.ptr()); + KviKvsScript::run(buffer,con,new KviKvsVariantList(new QString(parms))); +} + +KviCodeTesterWindow::KviCodeTesterWindow(KviFrame * lpFrm) +: KviWindow(KVI_WINDOW_TYPE_SCRIPTEDITOR,lpFrm,"codetester",0) +{ + g_pCodeTesterWindowList->append(this); + + m_pTester = new KviCodeTester(this); +} + +KviCodeTesterWindow::~KviCodeTesterWindow() +{ + g_pCodeTesterWindowList->removeRef(this); +} + +QPixmap * KviCodeTesterWindow::myIconPtr() +{ + return g_pIconManager->getSmallIcon(KVI_SMALLICON_BOMB); +} + +void KviCodeTesterWindow::resizeEvent(QResizeEvent *e) +{ + m_pTester->setGeometry(0,0,width(),height()); +} + +void KviCodeTesterWindow::fillCaptionBuffers() +{ + m_szPlainTextCaption = __tr2qs("Script Tester"); + + static QString p1(""); + static QString p3(""); + + m_szHtmlActiveCaption = p1; + m_szHtmlActiveCaption += KVI_OPTION_COLOR(KviOption_colorCaptionTextActive).name(); + m_szHtmlActiveCaption += p2; + m_szHtmlActiveCaption += m_szPlainTextCaption; + m_szHtmlActiveCaption += p3; + + m_szHtmlInactiveCaption = p1; + m_szHtmlInactiveCaption += KVI_OPTION_COLOR(KviOption_colorCaptionTextInactive).name(); + m_szHtmlInactiveCaption += p2; + m_szHtmlInactiveCaption += m_szPlainTextCaption; + m_szHtmlInactiveCaption += p3; +} + + +void KviCodeTesterWindow::getConfigGroupName(KviStr &szName) +{ + szName = "codetester"; +} + + +void KviCodeTesterWindow::saveProperties(KviConfig *cfg) +{ +/* +#ifdef COMPILE_SCRIPTTOOLBAR + cfg->writeEntry("Sizes",m_pEditor->sizes()); + cfg->writeEntry("LastRaw",m_pEditor->lastEditedRaw().ptr()); + //debug("LAST EDITED=%s",m_pEditor->lastEditedRaw().ptr()); +#endif // COMPILE_SCRIPTTOOLBAR +*/ +} + +void KviCodeTesterWindow::loadProperties(KviConfig *cfg) +{ +/* +#ifdef COMPILE_SCRIPTTOOLBAR + QValueList def; + def.append(20); + def.append(80); + m_pEditor->setSizes(cfg->readIntListEntry("Sizes",def)); + KviStr tmp = cfg->readEntry("LastRaw",""); + m_pEditor->editRaw(tmp); + //debug("LAST EDITED WAS %s",tmp.ptr()); +#endif // COMPILE_SCRIPTTOOLBAR +*/ +} diff --git a/src/modules/codetester/codetester.h b/src/modules/codetester/codetester.h new file mode 100644 index 000000000..e203d21e0 --- /dev/null +++ b/src/modules/codetester/codetester.h @@ -0,0 +1,67 @@ +#ifndef _CODETESTER_H_ +#define _CODETESTER_H_ +// +// File : eventeditor.h +// Creation date : Mon Dec 23 2002 20:24:55 CEST by Szymon Stefanek +// +// This file is part of the KVirc irc client distribution +// Copyright (C) 2002 Szymon Stefanek (pragma at kvirc dot net) +// +// This program is FREE software. You can redistribute it and/or +// modify it under the linkss 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_window.h" +#include "kvi_string.h" + +#include + +class QPushButton; +class QLabel; + +class KviScriptEditor; + +class KviCodeTester : public QWidget +{ + Q_OBJECT +public: + KviCodeTester(QWidget * par); + ~KviCodeTester(); +private: + KviScriptEditor * m_pEditor; + QLineEdit * m_pParams; + QPushButton * m_pExecuteButton; + QLabel * m_pModeLabel; +private slots: + void execute(); +}; + +class KviCodeTesterWindow : public KviWindow +{ + Q_OBJECT +public: + KviCodeTesterWindow(KviFrame * lpFrm); + ~KviCodeTesterWindow(); +protected: + KviCodeTester * m_pTester; +protected: + virtual QPixmap * myIconPtr(); + virtual void fillCaptionBuffers(); + virtual void resizeEvent(QResizeEvent *e); + virtual void getConfigGroupName(KviStr &szName); + virtual void saveProperties(KviConfig *); + virtual void loadProperties(KviConfig *); +}; + +#endif //_CODETESTER_H_ diff --git a/src/modules/codetester/codetester.vcproj b/src/modules/codetester/codetester.vcproj new file mode 100755 index 000000000..0aa4daf32 --- /dev/null +++ b/src/modules/codetester/codetester.vcproj @@ -0,0 +1,172 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/modules/codetester/codetester_vc05.vcproj b/src/modules/codetester/codetester_vc05.vcproj new file mode 100644 index 000000000..7e1a3550c --- /dev/null +++ b/src/modules/codetester/codetester_vc05.vcproj @@ -0,0 +1,261 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/modules/codetester/kvicodetester.dsp b/src/modules/codetester/kvicodetester.dsp new file mode 100644 index 000000000..587b0a65a --- /dev/null +++ b/src/modules/codetester/kvicodetester.dsp @@ -0,0 +1,147 @@ +# Microsoft Developer Studio Project File - Name="kvicodetester" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 + +CFG=kvicodetester - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "kvicodetester.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "kvicodetester.mak" CFG="kvicodetester - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "kvicodetester - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "kvicodetester - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "kvicodetester - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CODETESTER_EXPORTS" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /O2 /I "_$(QTDIR)\include" /I "$(QTDIR)\include" /I "..\..\kvilib\tal" /I "..\..\kvilib\system" /I "..\..\kvilib\irc" /I "..\..\kvilib\file" /I "..\..\kvilib\ext" /I "..\..\kvilib\net" /I "..\..\kvilib\core\wstring" /I "..\..\kvilib\core" /I "..\..\kvilib\config" /I "..\..\kvirc\kvs" /I "..\..\kvirc\module" /I "..\..\kvirc\uparser\scripttoolbar" /I "..\..\kvirc\uparser" /I "..\..\kvirc\sparser" /I "..\..\kvirc\kernel" /I "..\..\kvirc\ui" /I "C:\ssl" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CODETESTER_EXPORTS" /D "QT_DLL" /D "QT_THREAD_SUPPORT" /YX /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x809 /d "NDEBUG" +# ADD RSC /l 0x809 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 +# ADD LINK32 $(QTDIR)\lib\qt-mtnc321.lib $(QTDIR)\lib\qtmain.lib libeay32.lib SSLeay32.lib ws2_32.lib kvilib.lib kvirc.lib msvcrt.lib /nologo /dll /machine:I386 /out:"..\..\..\win32build\bin\modules\kvicodetester.dll" /libpath:"C:\OpenSSL\lib\VC" /libpath:"..\..\kvilib\Release" /libpath:"..\..\kvirc\Release" + +!ELSEIF "$(CFG)" == "kvicodetester - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CODETESTER_EXPORTS" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /GX /O2 /I "_$(QTDIR)\include" /I "$(QTDIR)\include" /I "..\..\kvilib\tal" /I "..\..\kvilib\system" /I "..\..\kvilib\irc" /I "..\..\kvilib\file" /I "..\..\kvilib\ext" /I "..\..\kvilib\net" /I "..\..\kvilib\core\wstring" /I "..\..\kvilib\core" /I "..\..\kvilib\config" /I "..\..\kvirc\kvs" /I "..\..\kvirc\module" /I "..\..\kvirc\uparser\scripttoolbar" /I "..\..\kvirc\uparser" /I "..\..\kvirc\sparser" /I "..\..\kvirc\kernel" /I "..\..\kvirc\ui" /I "C:\ssl" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CODETESTER_EXPORTS" /D "QT_DLL" /D "QT_THREAD_SUPPORT" /YX /FD /c +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x809 /d "_DEBUG" +# ADD RSC /l 0x809 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept +# ADD LINK32 $(QTDIR)\lib\qt-mtnc321.lib $(QTDIR)\lib\qtmain.lib libeay32.lib SSLeay32.lib ws2_32.lib kvilib.lib kvirc.lib msvcrt.lib /nologo /dll /incremental:no /machine:I386 /nodefaultlib:"msvcrtd.lib" /out:"..\..\..\win32build\KviDebug\modules\kvicodetester.dll" /libpath:"C:\OpenSSL\lib\VC" /libpath:"..\..\kvilib\Debug" /libpath:"..\..\kvirc\Debug" +# SUBTRACT LINK32 /debug + +!ENDIF + +# Begin Target + +# Name "kvicodetester - Win32 Release" +# Name "kvicodetester - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\codetester.cpp +# End Source File +# Begin Source File + +SOURCE=.\libkvicodetester.cpp +# End Source File +# Begin Source File + +SOURCE=.\moc_codetester.cpp +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=.\codetester.h + +!IF "$(CFG)" == "kvicodetester - Win32 Release" + +# Begin Custom Build +InputDir=. +InputPath=.\codetester.h +InputName=codetester + +"$(InputDir)\moc_$(InputName).cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + %qtdir%\bin\moc.exe $(InputDir)\$(InputName).h -o $(InputDir)\moc_$(InputName).cpp + +# End Custom Build + +!ELSEIF "$(CFG)" == "kvicodetester - Win32 Debug" + +# Begin Custom Build +InputDir=. +InputPath=.\codetester.h +InputName=codetester + +"$(InputDir)\moc_$(InputName).cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + %qtdir%\bin\moc.exe $(InputDir)\$(InputName).h -o $(InputDir)\moc_$(InputName).cpp + +# End Custom Build + +!ENDIF + +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project diff --git a/src/modules/codetester/kvicodetester.dsw b/src/modules/codetester/kvicodetester.dsw new file mode 100644 index 000000000..d7d2c874c --- /dev/null +++ b/src/modules/codetester/kvicodetester.dsw @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "kvicodetester"=.\kvicodetester.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/src/modules/codetester/libkvicodetester.cpp b/src/modules/codetester/libkvicodetester.cpp new file mode 100644 index 000000000..849c2fadb --- /dev/null +++ b/src/modules/codetester/libkvicodetester.cpp @@ -0,0 +1,89 @@ +//=============================================================================== +// +// File : libkvicodetester.cpp +// Creation date : Mon 23 Dec 2002 20:23:59 2002 GMT by Szymon Stefanek +// +// This toolbar is part of the KVirc irc client distribution +// Copyright (C) 2002-2005 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_module.h" +#include "kvi_locale.h" +#include "kvi_frame.h" +#include "kvi_list.h" + +#include "codetester.h" + +KviPtrList * g_pCodeTesterWindowList = 0; + + +/* + @doc: codetester.open + @type: + command + @title: + codetester.open + @short: + Shows the code tester window + @syntax: + codetester.open + @description: + Opens a new code tester window +*/ + +static bool codetester_kvs_cmd_open(KviKvsModuleCommandCall * c) +{ + KviCodeTesterWindow * w = new KviCodeTesterWindow(c->window()->frame()); + c->window()->frame()->addWindow(w); + w->setFocus(); + return true; +} + +static bool codetester_module_init(KviModule * m) +{ + KVSM_REGISTER_SIMPLE_COMMAND(m,"open",codetester_kvs_cmd_open); + + g_pCodeTesterWindowList = new KviPtrList(); + g_pCodeTesterWindowList->setAutoDelete(false); + return true; +} + +static bool codetester_module_can_unload(KviModule * m) +{ + return (g_pCodeTesterWindowList->count() == 0); +} + +static bool codetester_module_cleanup(KviModule *m) +{ + while(KviCodeTesterWindow * w = g_pCodeTesterWindowList->first()) + { + w->close(); // deleted path! + } + return true; +} + +KVIRC_MODULE( + "CodeTester", // module name + "1.0.0", // module version + "Copyright (C) 2002 Szymon Stefanek (pragma at kvirc dot net)", // author & (C) + "Code tester window", + codetester_module_init, + codetester_module_can_unload, + 0, + codetester_module_cleanup +) -- cgit v1.3.1-10-gc9f91