|
|
@ -110,7 +110,7 @@ class UserConfigApp(programbase):
|
|
|
|
label = QLabel(i18n("User Accounts:"),hb)
|
|
|
|
label = QLabel(i18n("User Accounts:"),hb)
|
|
|
|
hb.setStretchFactor(label,1)
|
|
|
|
hb.setStretchFactor(label,1)
|
|
|
|
|
|
|
|
|
|
|
|
self.userlist = KListView(vbox)
|
|
|
|
self.userlist = TDEListView(vbox)
|
|
|
|
self.userlist.addColumn(i18n("Login Name"))
|
|
|
|
self.userlist.addColumn(i18n("Login Name"))
|
|
|
|
self.userlist.addColumn(i18n("Real Name"))
|
|
|
|
self.userlist.addColumn(i18n("Real Name"))
|
|
|
|
self.userlist.addColumn(i18n("UID"))
|
|
|
|
self.userlist.addColumn(i18n("UID"))
|
|
|
@ -120,7 +120,7 @@ class UserConfigApp(programbase):
|
|
|
|
self.connect(self.userlist, SIGNAL("selectionChanged(QListViewItem *)"), self.slotListClicked)
|
|
|
|
self.connect(self.userlist, SIGNAL("selectionChanged(QListViewItem *)"), self.slotListClicked)
|
|
|
|
if isroot:
|
|
|
|
if isroot:
|
|
|
|
self.connect(self.userlist, SIGNAL("doubleClicked(QListViewItem *)"), self.slotModifyClicked)
|
|
|
|
self.connect(self.userlist, SIGNAL("doubleClicked(QListViewItem *)"), self.slotModifyClicked)
|
|
|
|
self.connect(self.userlist, SIGNAL("contextMenu(KListView*,QListViewItem*,const QPoint&)"), self.slotUserContext)
|
|
|
|
self.connect(self.userlist, SIGNAL("contextMenu(TDEListView*,QListViewItem*,const QPoint&)"), self.slotUserContext)
|
|
|
|
|
|
|
|
|
|
|
|
self.showspecialcheckbox = QCheckBox(i18n("Show system accounts"),vbox)
|
|
|
|
self.showspecialcheckbox = QCheckBox(i18n("Show system accounts"),vbox)
|
|
|
|
vbox.setStretchFactor(self.showspecialcheckbox,0)
|
|
|
|
vbox.setStretchFactor(self.showspecialcheckbox,0)
|
|
|
@ -211,7 +211,7 @@ class UserConfigApp(programbase):
|
|
|
|
|
|
|
|
|
|
|
|
groupsplitter = QSplitter(Qt.Vertical,groupsvbox)
|
|
|
|
groupsplitter = QSplitter(Qt.Vertical,groupsvbox)
|
|
|
|
|
|
|
|
|
|
|
|
self.grouplist = KListView(groupsplitter)
|
|
|
|
self.grouplist = TDEListView(groupsplitter)
|
|
|
|
self.grouplist.addColumn(i18n("Group Name"))
|
|
|
|
self.grouplist.addColumn(i18n("Group Name"))
|
|
|
|
self.grouplist.addColumn(i18n("GID"))
|
|
|
|
self.grouplist.addColumn(i18n("GID"))
|
|
|
|
self.grouplist.setAllColumnsShowFocus(True)
|
|
|
|
self.grouplist.setAllColumnsShowFocus(True)
|
|
|
@ -219,7 +219,7 @@ class UserConfigApp(programbase):
|
|
|
|
|
|
|
|
|
|
|
|
if isroot:
|
|
|
|
if isroot:
|
|
|
|
self.connect(self.grouplist, SIGNAL("doubleClicked(QListViewItem *)"), self.slotModifyGroupClicked)
|
|
|
|
self.connect(self.grouplist, SIGNAL("doubleClicked(QListViewItem *)"), self.slotModifyGroupClicked)
|
|
|
|
self.connect(self.grouplist, SIGNAL("contextMenu(KListView*,QListViewItem*,const QPoint&)"),
|
|
|
|
self.connect(self.grouplist, SIGNAL("contextMenu(TDEListView*,QListViewItem*,const QPoint&)"),
|
|
|
|
self.slotGroupContext)
|
|
|
|
self.slotGroupContext)
|
|
|
|
|
|
|
|
|
|
|
|
groupbottomvbox = QVBox(groupsplitter)
|
|
|
|
groupbottomvbox = QVBox(groupsplitter)
|
|
|
@ -255,7 +255,7 @@ class UserConfigApp(programbase):
|
|
|
|
label = QLabel(i18n("Group Members:"),groupbottomvbox)
|
|
|
|
label = QLabel(i18n("Group Members:"),groupbottomvbox)
|
|
|
|
groupsvbox.setStretchFactor(label,0)
|
|
|
|
groupsvbox.setStretchFactor(label,0)
|
|
|
|
|
|
|
|
|
|
|
|
self.groupmemberlist = KListView(groupbottomvbox)
|
|
|
|
self.groupmemberlist = TDEListView(groupbottomvbox)
|
|
|
|
self.groupmemberlist.addColumn(i18n("Login Name"))
|
|
|
|
self.groupmemberlist.addColumn(i18n("Login Name"))
|
|
|
|
self.groupmemberlist.addColumn(i18n("Real Name"))
|
|
|
|
self.groupmemberlist.addColumn(i18n("Real Name"))
|
|
|
|
self.groupmemberlist.addColumn(i18n("UID"))
|
|
|
|
self.groupmemberlist.addColumn(i18n("UID"))
|
|
|
@ -296,7 +296,7 @@ class UserConfigApp(programbase):
|
|
|
|
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
#######################################################################
|
|
|
|
def slotUserContext(self,l,v,p):
|
|
|
|
def slotUserContext(self,l,v,p):
|
|
|
|
cmenu = KPopupMenu(self,"MyActions")
|
|
|
|
cmenu = TDEPopupMenu(self,"MyActions")
|
|
|
|
cmenu.insertItem(i18n("Modify..."), self.slotModifyClicked, 0, 0)
|
|
|
|
cmenu.insertItem(i18n("Modify..."), self.slotModifyClicked, 0, 0)
|
|
|
|
cmenu.insertItem(i18n("Delete..."), self.slotDeleteClicked, 0, 1)
|
|
|
|
cmenu.insertItem(i18n("Delete..."), self.slotDeleteClicked, 0, 1)
|
|
|
|
if not isroot:
|
|
|
|
if not isroot:
|
|
|
@ -307,7 +307,7 @@ class UserConfigApp(programbase):
|
|
|
|
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
#######################################################################
|
|
|
|
def slotGroupContext(self,l,v,p):
|
|
|
|
def slotGroupContext(self,l,v,p):
|
|
|
|
cmenu = KPopupMenu(self,"MyActions")
|
|
|
|
cmenu = TDEPopupMenu(self,"MyActions")
|
|
|
|
cmenu.insertItem(i18n("Modify..."), self.slotModifyGroupClicked, 0, 0)
|
|
|
|
cmenu.insertItem(i18n("Modify..."), self.slotModifyGroupClicked, 0, 0)
|
|
|
|
cmenu.insertItem(i18n("Delete..."), self.slotDeleteGroupClicked, 0, 1)
|
|
|
|
cmenu.insertItem(i18n("Delete..."), self.slotDeleteGroupClicked, 0, 1)
|
|
|
|
if not isroot:
|
|
|
|
if not isroot:
|
|
|
@ -439,7 +439,7 @@ class UserConfigApp(programbase):
|
|
|
|
for userobj in users:
|
|
|
|
for userobj in users:
|
|
|
|
uid = userobj.getUID()
|
|
|
|
uid = userobj.getUID()
|
|
|
|
if self.showsystemaccounts or not userobj.isSystemUser():
|
|
|
|
if self.showsystemaccounts or not userobj.isSystemUser():
|
|
|
|
lvi = KListViewItem(self.userlist,userobj.getUsername(),userobj.getRealName(),unicode(uid))
|
|
|
|
lvi = TDEListViewItem(self.userlist,userobj.getUsername(),userobj.getRealName(),unicode(uid))
|
|
|
|
if userobj.isLocked():
|
|
|
|
if userobj.isLocked():
|
|
|
|
lvi.setPixmap(0,UserIcon("hi16-encrypted"))
|
|
|
|
lvi.setPixmap(0,UserIcon("hi16-encrypted"))
|
|
|
|
self.useridsToListItems[uid] = lvi
|
|
|
|
self.useridsToListItems[uid] = lvi
|
|
|
@ -1267,7 +1267,7 @@ class ListPickerDialog(KDialogBase):
|
|
|
|
self.tophbox.setStretchFactor(vbox,1)
|
|
|
|
self.tophbox.setStretchFactor(vbox,1)
|
|
|
|
label = QLabel(leftlabel,vbox)
|
|
|
|
label = QLabel(leftlabel,vbox)
|
|
|
|
vbox.setStretchFactor(label,0)
|
|
|
|
vbox.setStretchFactor(label,0)
|
|
|
|
self.availablelist = KListBox(vbox)
|
|
|
|
self.availablelist = TDEListBox(vbox)
|
|
|
|
vbox.setStretchFactor(self.availablelist,1)
|
|
|
|
vbox.setStretchFactor(self.availablelist,1)
|
|
|
|
|
|
|
|
|
|
|
|
# ->, <- Buttons
|
|
|
|
# ->, <- Buttons
|
|
|
@ -1289,7 +1289,7 @@ class ListPickerDialog(KDialogBase):
|
|
|
|
self.tophbox.setStretchFactor(vbox,1)
|
|
|
|
self.tophbox.setStretchFactor(vbox,1)
|
|
|
|
label = QLabel(rightlabel,vbox)
|
|
|
|
label = QLabel(rightlabel,vbox)
|
|
|
|
vbox.setStretchFactor(label,0)
|
|
|
|
vbox.setStretchFactor(label,0)
|
|
|
|
self.selectedlist = KListBox(vbox)
|
|
|
|
self.selectedlist = TDEListBox(vbox)
|
|
|
|
vbox.setStretchFactor(self.selectedlist,1)
|
|
|
|
vbox.setStretchFactor(self.selectedlist,1)
|
|
|
|
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
#######################################################################
|
|
|
@ -1567,7 +1567,7 @@ class GroupEditDialog(KDialogBase):
|
|
|
|
hbox.setStretchFactor(vbox,1)
|
|
|
|
hbox.setStretchFactor(vbox,1)
|
|
|
|
label = QLabel(i18n("Available Accounts"),vbox)
|
|
|
|
label = QLabel(i18n("Available Accounts"),vbox)
|
|
|
|
vbox.setStretchFactor(label,0)
|
|
|
|
vbox.setStretchFactor(label,0)
|
|
|
|
self.availablelist = KListBox(vbox)
|
|
|
|
self.availablelist = TDEListBox(vbox)
|
|
|
|
vbox.setStretchFactor(self.availablelist,1)
|
|
|
|
vbox.setStretchFactor(self.availablelist,1)
|
|
|
|
|
|
|
|
|
|
|
|
# ->, <- Buttons
|
|
|
|
# ->, <- Buttons
|
|
|
@ -1591,7 +1591,7 @@ class GroupEditDialog(KDialogBase):
|
|
|
|
hbox.setStretchFactor(vbox,1)
|
|
|
|
hbox.setStretchFactor(vbox,1)
|
|
|
|
label = QLabel(i18n("Selected Accounts"),vbox)
|
|
|
|
label = QLabel(i18n("Selected Accounts"),vbox)
|
|
|
|
vbox.setStretchFactor(label,0)
|
|
|
|
vbox.setStretchFactor(label,0)
|
|
|
|
self.selectedlist = KListBox(vbox)
|
|
|
|
self.selectedlist = TDEListBox(vbox)
|
|
|
|
vbox.setStretchFactor(self.selectedlist,1)
|
|
|
|
vbox.setStretchFactor(self.selectedlist,1)
|
|
|
|
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
#######################################################################
|
|
|
|