|
|
|
@ -93,7 +93,7 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
|
|
|
|
|
gl->addWidget (la, 1, 2);
|
|
|
|
|
|
|
|
|
|
la = new TQLabel( i18n("Exec"), groupPermission );
|
|
|
|
|
TQSize size = la->tqsizeHint();
|
|
|
|
|
TQSize size = la->sizeHint();
|
|
|
|
|
size.setWidth(size.width() + 15);
|
|
|
|
|
la->setFixedSize(size);
|
|
|
|
|
gl->addWidget (la, 1, 3);
|
|
|
|
@ -140,7 +140,7 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
|
|
|
|
|
groupOwner->tqlayout()->setSpacing( 6 );
|
|
|
|
|
groupOwner->tqlayout()->setMargin( 11 );
|
|
|
|
|
groupOwnerLayout = new TQVBoxLayout( groupOwner->tqlayout() );
|
|
|
|
|
groupOwnerLayout->tqsetAlignment( TQt::AlignTop );
|
|
|
|
|
groupOwnerLayout->setAlignment( TQt::AlignTop );
|
|
|
|
|
|
|
|
|
|
Layout2 = new TQHBoxLayout( 0, 0, 6 );
|
|
|
|
|
Layout3 = new TQHBoxLayout( 0, 0, 6 );
|
|
|
|
@ -157,10 +157,10 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
|
|
|
|
|
setpwent();
|
|
|
|
|
for (i=0; ((user = getpwent()) != 0L) && (i < MAXENTRIES); i++) {
|
|
|
|
|
if( uid == 0 )
|
|
|
|
|
username->insertItem(TQString::tqfromLatin1(user->pw_name));
|
|
|
|
|
username->insertItem(TQString::fromLatin1(user->pw_name));
|
|
|
|
|
else
|
|
|
|
|
if( user->pw_uid == uid )
|
|
|
|
|
username->insertItem(TQString::tqfromLatin1(user->pw_name));
|
|
|
|
|
username->insertItem(TQString::fromLatin1(user->pw_name));
|
|
|
|
|
}
|
|
|
|
|
endpwent();
|
|
|
|
|
|
|
|
|
@ -171,14 +171,14 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
|
|
|
|
|
setgrent();
|
|
|
|
|
for (i=0; ((ge = getgrent()) != 0L) && (i < MAXENTRIES); i++) {
|
|
|
|
|
if( uid == 0 ) {
|
|
|
|
|
groupname->insertItem(TQString::tqfromLatin1(ge->gr_name));
|
|
|
|
|
groupname->insertItem(TQString::fromLatin1(ge->gr_name));
|
|
|
|
|
} else {
|
|
|
|
|
char ** members = ge->gr_mem;
|
|
|
|
|
char * member;
|
|
|
|
|
|
|
|
|
|
while ((member = *members) != 0L) {
|
|
|
|
|
if (strUser == member) {
|
|
|
|
|
groupname->insertItem(TQString::tqfromLatin1(ge->gr_name));
|
|
|
|
|
groupname->insertItem(TQString::fromLatin1(ge->gr_name));
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -191,7 +191,7 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
|
|
|
|
|
/* add the users group */
|
|
|
|
|
ge = getgrgid (getegid());
|
|
|
|
|
if (ge) {
|
|
|
|
|
TQString name = TQString::tqfromLatin1(ge->gr_name);
|
|
|
|
|
TQString name = TQString::fromLatin1(ge->gr_name);
|
|
|
|
|
if (name.isEmpty())
|
|
|
|
|
name.setNum(ge->gr_gid);
|
|
|
|
|
|
|
|
|
|