diff options
| author | 2011-01-01 20:19:56 +0000 | |
|---|---|---|
| committer | 2011-01-01 20:19:56 +0000 | |
| commit | c601b5a27f74b16158adafe429faefbe573e64a2 (patch) | |
| tree | a3cde3206a45628f8ac86e8dfbdab70b20c3a831 /src/modules/reguser/RegisteredUserEntryDialog.h | |
| parent | probable compilation fix for rijndaled/crypto++ (diff) | |
| download | KVIrc-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/reguser/RegisteredUserEntryDialog.h')
| -rw-r--r-- | src/modules/reguser/RegisteredUserEntryDialog.h | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/src/modules/reguser/RegisteredUserEntryDialog.h b/src/modules/reguser/RegisteredUserEntryDialog.h new file mode 100644 index 000000000..04dc745cd --- /dev/null +++ b/src/modules/reguser/RegisteredUserEntryDialog.h @@ -0,0 +1,140 @@ +#ifndef _EDITUSER_H_ +#define _EDITUSER_H_ +//============================================================================= +// +// File : RegisteredUserEntryDialog.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-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 "KviCString.h" +#include "KviRegisteredUserDataBase.h" +#include "KviSelectors.h" +#include "KviPointerHashTable.h" +#include <QTreeWidget> +#include "KviTalPopupMenu.h" +#include <KviTalTabDialog.h> + +#include <QListWidget> +#include <QWidget> +#include <QLineEdit> +#include <QPushButton> +#include <QTableWidget> +#include <QCheckBox> + +class KviRegisteredUser; + +#ifndef _EDITUSER_CPP_ + extern KviRegisteredUserDataBase * g_pLocalRegisteredUserDataBase; +#endif + +class RegisteredUserPropertiesDialog : public QDialog +{ + Q_OBJECT +public: + RegisteredUserPropertiesDialog(QWidget *p,KviPointerHashTable<QString,QString> * dict); + ~RegisteredUserPropertiesDialog(); +protected: + QTableWidget *m_pTable; + + 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 RegisteredUserMaskDialog : public QDialog +{ + Q_OBJECT +public: + RegisteredUserMaskDialog(QWidget * p,KviIrcMask * m); + ~RegisteredUserMaskDialog(); +protected: + KviIrcMask * m_pMask; + + QLineEdit * m_pNickEdit; + QLineEdit * m_pUserEdit; + QLineEdit * m_pHostEdit; + + virtual void closeEvent(QCloseEvent *); +protected slots: + void okClicked(); +}; + + +class RegisteredUserEntryDialog : public KviTalTabDialog +{ + Q_OBJECT +public: + RegisteredUserEntryDialog(QWidget * p,KviRegisteredUser * r,bool bModal = true); + virtual ~RegisteredUserEntryDialog(); +protected: + KviRegisteredUser * m_pUser; + + QLineEdit * m_pNameEdit; + QLineEdit * m_pCommentEdit; + + QListWidget * m_pMaskListBox; + + QPushButton * m_pDelMaskButton; + QPushButton * m_pEditMaskButton; + QPushButton * m_pAddMaskButton; + + QCheckBox * m_pNotifyCheck; + QLineEdit * m_pNotifyNick; + QLabel * m_pNotifyLabel; + + 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(); + void notifyCheckClicked(bool bChecked); +}; + +#endif //_EDITUSER_H_ |
