summaryrefslogtreecommitdiffstats
path: root/src/modules/reguser/edituser.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 02:13:59 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 02:13:59 +0000
commita6d58bb6052ac8cb01805a48c4ad2f129126116f (patch)
treedd867a099fcbb263a8009a9fb22695b87855dad6 /src/modules/reguser/edituser.h
downloadkvirc-a6d58bb6052ac8cb01805a48c4ad2f129126116f.tar.gz
kvirc-a6d58bb6052ac8cb01805a48c4ad2f129126116f.zip
Added KDE3 version of kvirc
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1095341 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/modules/reguser/edituser.h')
-rw-r--r--src/modules/reguser/edituser.h152
1 files changed, 152 insertions, 0 deletions
diff --git a/src/modules/reguser/edituser.h b/src/modules/reguser/edituser.h
new file mode 100644
index 00000000..fecbbf09
--- /dev/null
+++ b/src/modules/reguser/edituser.h
@@ -0,0 +1,152 @@
+#ifndef _EDITUSER_H_
+#define _EDITUSER_H_
+//=============================================================================
+//
+// File : edituser.h
+// Creation date : Sun Dec 24 2000 15:16:17 CEST by Szymon Stefanek
+//
+// This file is part of the KVirc irc client distribution
+// Copyright (C) 2000-2004 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_string.h"
+#include "kvi_regusersdb.h"
+#include "kvi_selectors.h"
+
+#include <qwidget.h>
+#include <qlineedit.h>
+#include <qpushbutton.h>
+#include "kvi_tal_listview.h"
+#include "kvi_tal_listbox.h"
+#include "kvi_pointerhashtable.h"
+#include <kvi_tal_tabdialog.h>
+#ifdef COMPILE_USE_QT4
+#include <q3table.h>
+#define Kvi_Tal_Table Q3Table
+#define Kvi_Tal_TableItem Q3TableItem
+
+#else
+#include <qtable.h>
+#define Kvi_Tal_Table QTable
+#define Kvi_Tal_TableItem QTableItem
+
+#endif
+#include "kvi_tal_popupmenu.h"
+
+#ifndef _EDITUSER_CPP_
+ extern KviRegisteredUserDataBase * g_pLocalRegisteredUserDataBase;
+#endif
+
+class KviRegisteredUser;
+
+class KviReguserPropertiesDialog : public QDialog
+{
+ Q_OBJECT
+public:
+ KviReguserPropertiesDialog(QWidget *p,KviPointerHashTable<QString,QString> * dict);
+ ~KviReguserPropertiesDialog();
+protected:
+#ifdef COMPILE_USE_QT4
+ Q3Table *m_pTable;
+#else
+ QTable * m_pTable;
+#endif
+ KviPointerHashTable<QString,QString> * m_pPropertyDict;
+ QPushButton * m_pDelButton;
+ QPushButton * m_pAddButton;
+protected:
+ void fillData();
+ virtual void closeEvent(QCloseEvent *);
+protected slots:
+ void okClicked();
+ void addClicked();
+ void delClicked();
+};
+
+
+class KviReguserMaskDialog : public QDialog
+{
+ Q_OBJECT
+public:
+ KviReguserMaskDialog(QWidget * p,KviIrcMask * m);
+ ~KviReguserMaskDialog();
+protected:
+ KviIrcMask * m_pMask;
+
+ QLineEdit * m_pNickEdit;
+ QLineEdit * m_pUserEdit;
+ QLineEdit * m_pHostEdit;
+
+ virtual void closeEvent(QCloseEvent *);
+protected slots:
+ void okClicked();
+};
+
+
+class KviRegisteredUserEntryDialog : public KviTalTabDialog
+{
+ Q_OBJECT
+public:
+ KviRegisteredUserEntryDialog(QWidget * p,KviRegisteredUser * r,bool bModal = true);
+ virtual ~KviRegisteredUserEntryDialog();
+protected:
+ KviRegisteredUser * m_pUser;
+
+ QLineEdit * m_pNameEdit;
+ QLineEdit * m_pCommentEdit;
+
+ KviTalListBox * m_pMaskListBox;
+
+ QPushButton * m_pDelMaskButton;
+ QPushButton * m_pEditMaskButton;
+ QPushButton * m_pAddMaskButton;
+
+ QCheckBox * m_pNotifyCheck;
+ QLineEdit * m_pNotifyNick;
+
+ KviPixmap * m_pAvatar;
+ KviPixmapSelector * m_pAvatarSelector;
+
+ KviPointerHashTable<QString,QString> * m_pPropertyDict;
+
+ QCheckBox * m_pCustomColorCheck;
+ QColor * m_pCustomColor;
+ KviColorSelector * m_pCustomColorSelector;
+
+ //Ignore TAB
+ QCheckBox * m_pIgnoreEnabled;
+ QCheckBox * m_pIgnoreQuery;
+ QCheckBox * m_pIgnoreChannel;
+ QCheckBox * m_pIgnoreNotice;
+ QCheckBox * m_pIgnoreCtcp;
+ QCheckBox * m_pIgnoreInvite;
+ QCheckBox * m_pIgnoreDcc;
+
+ virtual void closeEvent(QCloseEvent *);
+protected slots:
+ void okClicked();
+ void addMaskClicked();
+ void delMaskClicked();
+ void editMaskClicked();
+ void editAllPropertiesClicked();
+ void maskCurrentChanged(KviTalListBoxItem *it);
+};
+
+
+
+#endif //_EDITUSER_H_