KVIrc  4.9.2
DeveloperAPIs
RegisteredUserEntryDialog.h
Go to the documentation of this file.
1 #ifndef _EDITUSER_H_
2 #define _EDITUSER_H_
3 //=============================================================================
4 //
5 // File : RegisteredUserEntryDialog.h
6 // Creation date : Sun Dec 24 2000 15:16:17 CEST by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2000-2010 Szymon Stefanek (pragma at kvirc dot net)
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "KviCString.h"
29 #include "KviSelectors.h"
30 #include "KviPointerHashTable.h"
31 #include <QTreeWidget>
32 #include <KviTalTabDialog.h>
33 
34 #include <QListWidget>
35 #include <QWidget>
36 #include <QLineEdit>
37 #include <QPushButton>
38 #include <QTableWidget>
39 #include <QCheckBox>
40 #include <QMenu>
41 
42 class KviRegisteredUser;
43 
44 #ifndef _EDITUSER_CPP_
46 #endif
47 
48 class RegisteredUserPropertiesDialog : public QDialog
49 {
50  Q_OBJECT
51 public:
54 
55 protected:
56  QTableWidget * m_pTable;
57 
59  QPushButton * m_pDelButton;
60  QPushButton * m_pAddButton;
61 
62 protected:
63  void fillData();
64  virtual void closeEvent(QCloseEvent *);
65 protected slots:
66  void okClicked();
67  void addClicked();
68  void delClicked();
69 };
70 
71 class RegisteredUserMaskDialog : public QDialog
72 {
73  Q_OBJECT
74 public:
75  RegisteredUserMaskDialog(QWidget * p, KviIrcMask * m);
77 
78 protected:
80 
81  QLineEdit * m_pNickEdit;
82  QLineEdit * m_pUserEdit;
83  QLineEdit * m_pHostEdit;
84 
85  virtual void closeEvent(QCloseEvent *);
86 protected slots:
87  void okClicked();
88 };
89 
91 {
92  Q_OBJECT
93 public:
94  RegisteredUserEntryDialog(QWidget * p, KviRegisteredUser * r, bool bModal = true);
96 
97 protected:
99 
100  QLineEdit * m_pNameEdit;
101  QLineEdit * m_pCommentEdit;
102 
103  QListWidget * m_pMaskListBox;
104 
105  QPushButton * m_pDelMaskButton;
106  QPushButton * m_pEditMaskButton;
107  QPushButton * m_pAddMaskButton;
108 
109  QCheckBox * m_pNotifyCheck;
110  QLineEdit * m_pNotifyNick;
111  QLabel * m_pNotifyLabel;
112 
115 
117 
118  QCheckBox * m_pCustomColorCheck;
119  QColor * m_pCustomColor;
121 
122  //Ignore TAB
123  QCheckBox * m_pIgnoreEnabled;
124  QCheckBox * m_pIgnoreQuery;
125  QCheckBox * m_pIgnoreChannel;
126  QCheckBox * m_pIgnoreNotice;
127  QCheckBox * m_pIgnoreCtcp;
128  QCheckBox * m_pIgnoreInvite;
129  QCheckBox * m_pIgnoreDcc;
130  QCheckBox * m_pIgnoreHighlight;
131 
132  virtual void closeEvent(QCloseEvent *);
133 protected slots:
134  void okClicked();
135  void addMaskClicked();
136  void delMaskClicked();
137  void editMaskClicked();
139  void maskCurrentChanged();
140  void notifyCheckClicked(bool bChecked);
141 };
142 
143 #endif //_EDITUSER_H_
QCheckBox * m_pIgnoreChannel
Definition: RegisteredUserEntryDialog.h:125
QCheckBox * m_pIgnoreCtcp
Definition: RegisteredUserEntryDialog.h:127
void fillData()
Definition: RegisteredUserEntryDialog.cpp:134
void editAllPropertiesClicked()
Definition: RegisteredUserEntryDialog.cpp:749
QColor * m_pCustomColor
Definition: RegisteredUserEntryDialog.h:119
void maskCurrentChanged()
Definition: RegisteredUserEntryDialog.cpp:575
virtual ~RegisteredUserEntryDialog()
Definition: RegisteredUserEntryDialog.cpp:535
QPushButton * m_pEditMaskButton
Definition: RegisteredUserEntryDialog.h:106
#define m
Definition: detector.cpp:77
KviPixmapSelector * m_pAvatarSelector
Definition: RegisteredUserEntryDialog.h:114
QLineEdit * m_pNickEdit
Definition: RegisteredUserEntryDialog.h:81
Definition: RegisteredUserEntryDialog.h:48
KviPointerHashTable< QString, QString > * m_pPropertyDict
Definition: RegisteredUserEntryDialog.h:58
void delClicked()
Definition: RegisteredUserEntryDialog.cpp:189
QLineEdit * m_pNameEdit
Definition: RegisteredUserEntryDialog.h:100
QLineEdit * m_pNotifyNick
Definition: RegisteredUserEntryDialog.h:110
KviColorSelector * m_pCustomColorSelector
Definition: RegisteredUserEntryDialog.h:120
QCheckBox * m_pIgnoreHighlight
Definition: RegisteredUserEntryDialog.h:130
QCheckBox * m_pNotifyCheck
Definition: RegisteredUserEntryDialog.h:109
void okClicked()
Definition: RegisteredUserEntryDialog.cpp:280
Definition: KviRegisteredUser.h:35
void notifyCheckClicked(bool bChecked)
Definition: RegisteredUserEntryDialog.cpp:542
KviPixmap * m_pAvatar
Definition: RegisteredUserEntryDialog.h:113
Definition: KviSelectors.h:163
virtual void closeEvent(QCloseEvent *)
Definition: RegisteredUserEntryDialog.cpp:274
QLineEdit * m_pUserEdit
Definition: RegisteredUserEntryDialog.h:82
Irc user mask handling.
Definition: KviIrcMask.h:45
virtual void closeEvent(QCloseEvent *)
Definition: RegisteredUserEntryDialog.cpp:528
void okClicked()
Definition: RegisteredUserEntryDialog.cpp:156
Pointer Hash Table.
RegisteredUserEntryDialog(QWidget *p, KviRegisteredUser *r, bool bModal=true)
Definition: RegisteredUserEntryDialog.cpp:300
Definition: KviPixmap.h:33
QCheckBox * m_pIgnoreQuery
Definition: RegisteredUserEntryDialog.h:124
KviRegisteredUserDataBase * g_pLocalRegisteredUserDataBase
Definition: RegisteredUserEntryDialog.cpp:66
void addClicked()
Definition: RegisteredUserEntryDialog.cpp:174
void delMaskClicked()
Definition: RegisteredUserEntryDialog.cpp:719
QPushButton * m_pAddButton
Definition: RegisteredUserEntryDialog.h:60
QCheckBox * m_pIgnoreEnabled
Definition: RegisteredUserEntryDialog.h:123
void addMaskClicked()
Definition: RegisteredUserEntryDialog.cpp:703
Definition: KviRegisteredUserDataBase.h:53
virtual void closeEvent(QCloseEvent *)
Definition: RegisteredUserEntryDialog.cpp:128
QCheckBox * m_pIgnoreDcc
Definition: RegisteredUserEntryDialog.h:129
QLineEdit * m_pCommentEdit
Definition: RegisteredUserEntryDialog.h:101
#define r
Definition: detector.cpp:82
KviRegisteredUser * m_pUser
Definition: RegisteredUserEntryDialog.h:98
QCheckBox * m_pIgnoreInvite
Definition: RegisteredUserEntryDialog.h:128
QCheckBox * m_pIgnoreNotice
Definition: RegisteredUserEntryDialog.h:126
void okClicked()
Definition: RegisteredUserEntryDialog.cpp:583
QPushButton * m_pDelButton
Definition: RegisteredUserEntryDialog.h:59
Definition: KviTalTabDialog.h:36
KviIrcMask * m_pMask
Definition: RegisteredUserEntryDialog.h:79
QPushButton * m_pAddMaskButton
Definition: RegisteredUserEntryDialog.h:107
QLineEdit * m_pHostEdit
Definition: RegisteredUserEntryDialog.h:83
KviPointerHashTable< QString, QString > * m_pPropertyDict
Definition: RegisteredUserEntryDialog.h:116
Definition: RegisteredUserEntryDialog.h:71
Definition: RegisteredUserEntryDialog.h:90
QListWidget * m_pMaskListBox
Definition: RegisteredUserEntryDialog.h:103
Definition: KviSelectors.h:267
void editMaskClicked()
Definition: RegisteredUserEntryDialog.cpp:727
QLabel * m_pNotifyLabel
Definition: RegisteredUserEntryDialog.h:111
QTableWidget * m_pTable
Definition: RegisteredUserEntryDialog.h:56
RegisteredUserMaskDialog(QWidget *p, KviIrcMask *m)
Definition: RegisteredUserEntryDialog.cpp:202
#define p
Definition: detector.cpp:80
QCheckBox * m_pCustomColorCheck
Definition: RegisteredUserEntryDialog.h:118
QPushButton * m_pDelMaskButton
Definition: RegisteredUserEntryDialog.h:105
RegisteredUserPropertiesDialog(QWidget *p, KviPointerHashTable< QString, QString > *dict)
Definition: RegisteredUserEntryDialog.cpp:68