2 Copyright (C) 1997 Thomas Tanghus (tanghus@earthling.net)
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #ifndef __KDMUSERS_H__
21 #define __KDMUSERS_H__
36 class KDMUsersWidget
: public QWidget
{
40 KDMUsersWidget( QWidget
*parent
= 0 );
47 bool eventFilter( QObject
*o
, QEvent
*e
);
50 void slotClearUsers();
51 void slotAddUsers( const QMap
<QString
,int> & );
52 void slotDelUsers( const QMap
<QString
,int> & );
56 void setMinMaxUID( int, int );
59 void slotMinMaxChanged();
61 void slotUpdateOptIn( Q3ListViewItem
*item
);
62 void slotUpdateOptOut( Q3ListViewItem
*item
);
63 void slotUserSelected();
64 void slotUnsetUserPix();
66 void slotUserButtonClicked();
69 void updateOptList( Q3ListViewItem
*item
, QStringList
&list
);
70 void userButtonDropEvent( QDropEvent
*e
);
71 void changeUserPix( const QString
& );
73 QGroupBox
*minGroup
; // top left
74 QLineEdit
*leminuid
, *lemaxuid
;
76 QGroupBox
*usrGroup
; // right below
77 QCheckBox
*cbshowlist
, *cbcomplete
, *cbinverted
, *cbusrsrt
;
79 QLabel
*s_label
; // middle
80 QStackedWidget
*wstack
;
81 K3ListView
*optoutlv
, *optinlv
;
83 QGroupBox
*faceGroup
; // right
84 QRadioButton
*rbadmonly
, *rbprefadm
, *rbprefusr
, *rbusronly
;
86 KComboBox
*usercombo
; // right below
87 QPushButton
*userbutton
;
88 QPushButton
*rstuserbutton
;
91 QString m_defaultText
;
92 QStringList hiddenUsers
, selectedUsers
;
93 QString defminuid
, defmaxuid
;