387
387
void KPropertiesDialog::insertPlugin (KPropertiesDialogPlugin* plugin)
389
connect (plugin, SIGNAL (changed ()),
390
plugin, SLOT (setDirty ()));
389
connect (plugin, SIGNAL (changed()),
390
plugin, SLOT (setDirty()));
392
392
d->m_pageList.append(plugin);
932
932
d->m_lined->setSelection(0, lastDot);
935
connect( d->m_lined, SIGNAL( textChanged( const QString & ) ),
936
this, SLOT( nameFileChanged(const QString & ) ) );
935
connect( d->m_lined, SIGNAL(textChanged(QString)),
936
this, SLOT(nameFileChanged(QString)) );
939
939
grid->addWidget(d->nameArea, curRow++, 2);
1017
1017
d->m_sizeDetermineButton = new QPushButton( i18n("Calculate"), d->m_frame );
1018
1018
d->m_sizeStopButton = new QPushButton( i18n("Stop"), d->m_frame );
1019
connect( d->m_sizeDetermineButton, SIGNAL( clicked() ), this, SLOT( slotSizeDetermine() ) );
1020
connect( d->m_sizeStopButton, SIGNAL( clicked() ), this, SLOT( slotSizeStop() ) );
1019
connect( d->m_sizeDetermineButton, SIGNAL(clicked()), this, SLOT(slotSizeDetermine()) );
1020
connect( d->m_sizeStopButton, SIGNAL(clicked()), this, SLOT(slotSizeStop()) );
1021
1021
sizelay->addWidget(d->m_sizeDetermineButton, 0);
1022
1022
sizelay->addWidget(d->m_sizeStopButton, 0);
1023
1023
sizelay->addStretch(10); // so that the buttons don't grow horizontally
1247
1247
d->dirSizeJob = KIO::directorySize( properties->items() );
1248
1248
d->dirSizeUpdateTimer = new QTimer(this);
1249
connect( d->dirSizeUpdateTimer, SIGNAL( timeout() ),
1250
SLOT( slotDirSizeUpdate() ) );
1249
connect( d->dirSizeUpdateTimer, SIGNAL(timeout()),
1250
SLOT(slotDirSizeUpdate()) );
1251
1251
d->dirSizeUpdateTimer->start(500);
1252
connect( d->dirSizeJob, SIGNAL( result( KJob * ) ),
1253
SLOT( slotDirSizeFinished( KJob * ) ) );
1252
connect( d->dirSizeJob, SIGNAL(result(KJob*)),
1253
SLOT(slotDirSizeFinished(KJob*)) );
1254
1254
d->m_sizeStopButton->setEnabled(true);
1255
1255
d->m_sizeDetermineButton->setEnabled(false);
1343
1343
else // Copying a template
1344
1344
job = KIO::copyAs( oldurl, properties->kurl() );
1346
connect( job, SIGNAL( result( KJob * ) ),
1347
SLOT( slotCopyFinished( KJob * ) ) );
1348
connect( job, SIGNAL( renamed( KIO::Job *, const KUrl &, const KUrl & ) ),
1349
SLOT( slotFileRenamed( KIO::Job *, const KUrl &, const KUrl & ) ) );
1346
connect( job, SIGNAL(result(KJob*)),
1347
SLOT(slotCopyFinished(KJob*)) );
1348
connect( job, SIGNAL(renamed(KIO::Job*,KUrl,KUrl)),
1349
SLOT(slotFileRenamed(KIO::Job*,KUrl,KUrl)) );
1350
1350
// wait for job
1351
1351
QEventLoop eventLoop;
1352
1352
connect(this, SIGNAL(leaveModality()),
1701
1701
l = d->ownerPermCombo = new KComboBox(gb);
1702
1702
lbl->setBuddy(l);
1703
1703
gl->addWidget(l, 1, 1);
1704
connect(l, SIGNAL( activated(int) ), this, SIGNAL( changed() ));
1704
connect(l, SIGNAL(activated(int)), this, SIGNAL(changed()));
1705
1705
l->setWhatsThis(i18n("Specifies the actions that the owner is allowed to do."));
1707
1707
lbl = new QLabel( i18n("Gro&up:"), gb);
1709
1709
l = d->groupPermCombo = new KComboBox(gb);
1710
1710
lbl->setBuddy(l);
1711
1711
gl->addWidget(l, 2, 1);
1712
connect(l, SIGNAL( activated(int) ), this, SIGNAL( changed() ));
1712
connect(l, SIGNAL(activated(int)), this, SIGNAL(changed()));
1713
1713
l->setWhatsThis(i18n("Specifies the actions that the members of the group are allowed to do."));
1715
1715
lbl = new QLabel( i18n("O&thers:"), gb);
1717
1717
l = d->othersPermCombo = new KComboBox(gb);
1718
1718
lbl->setBuddy(l);
1719
1719
gl->addWidget(l, 3, 1);
1720
connect(l, SIGNAL( activated(int) ), this, SIGNAL( changed() ));
1720
connect(l, SIGNAL(activated(int)), this, SIGNAL(changed()));
1721
1721
l->setWhatsThis(i18n("Specifies the actions that all users, who are neither "
1722
1722
"owner nor in the group, are allowed to do."));
1726
1726
i18n("Only own&er can rename and delete folder content") :
1727
1727
i18n("Is &executable"),
1729
connect( d->extraCheckbox, SIGNAL( clicked() ), this, SIGNAL( changed() ) );
1729
connect( d->extraCheckbox, SIGNAL(clicked()), this, SIGNAL(changed()) );
1730
1730
gl->addWidget(l, 4, 1);
1731
1731
l->setWhatsThis(hasDir ? i18n("Enable this option to allow only the folder's owner to "
1732
1732
"delete or rename the contained files and folders. Other "
1742
1742
pbAdvancedPerm = new QPushButton(i18n("A&dvanced Permissions"), gb);
1743
1743
gl->addWidget(pbAdvancedPerm, 6, 0, 1, 2, Qt::AlignRight);
1744
connect(pbAdvancedPerm, SIGNAL( clicked() ), this, SLOT( slotShowAdvancedPermissions() ));
1744
connect(pbAdvancedPerm, SIGNAL(clicked()), this, SLOT(slotShowAdvancedPermissions()));
1747
1747
d->extraCheckbox = 0;
1782
1782
KGlobalSettings::CompletionNone);
1783
1783
d->usrEdit->setText(d->strOwner);
1784
1784
gl->addWidget(d->usrEdit, 1, 1);
1785
connect( d->usrEdit, SIGNAL( textChanged( const QString & ) ),
1786
this, SIGNAL( changed() ) );
1785
connect( d->usrEdit, SIGNAL(textChanged(QString)),
1786
this, SIGNAL(changed()) );
1849
1849
d->grpEdit->setCompletionMode(KGlobalSettings::CompletionAuto);
1850
1850
d->grpEdit->setText(d->strGroup);
1851
1851
gl->addWidget(d->grpEdit, 2, 1);
1852
connect( d->grpEdit, SIGNAL( textChanged( const QString & ) ),
1853
this, SIGNAL( changed() ) );
1852
connect( d->grpEdit, SIGNAL(textChanged(QString)),
1853
this, SIGNAL(changed()) );
1855
1855
else if ((groupList.count() > 1) && isMyFile && isLocal)
1859
1859
d->grpCombo->addItems(groupList);
1860
1860
d->grpCombo->setCurrentIndex(groupList.indexOf(d->strGroup));
1861
1861
gl->addWidget(d->grpCombo, 2, 1);
1862
connect( d->grpCombo, SIGNAL( activated( int ) ),
1863
this, SIGNAL( changed() ) );
1862
connect( d->grpCombo, SIGNAL(activated(int)),
1863
this, SIGNAL(changed()) );
1874
1874
if ( hasDir && !isLink && !isTrash )
1876
1876
d->cbRecursive = new QCheckBox( i18n("Apply changes to all subfolders and their contents"), d->m_frame );
1877
connect( d->cbRecursive, SIGNAL( clicked() ), this, SIGNAL( changed() ) );
1877
connect( d->cbRecursive, SIGNAL(clicked()), this, SIGNAL(changed()) );
1878
1878
box->addWidget( d->cbRecursive );
2525
2525
if ( defaultACLChange && d->fileSystemSupportsACLs )
2526
2526
job->addMetaData( "DEFAULT_ACL_STRING", d->defaultACL.isValid()?d->defaultACL.asString():"ACL_DELETE" );
2528
connect( job, SIGNAL( result( KJob * ) ),
2529
SLOT( slotChmodResult( KJob * ) ) );
2528
connect( job, SIGNAL(result(KJob*)),
2529
SLOT(slotChmodResult(KJob*)) );
2530
2530
QEventLoop eventLoop;
2531
2531
connect(this, SIGNAL(leaveModality()),
2532
2532
&eventLoop, SLOT(quit()));
2540
2540
if ( defaultACLChange && d->fileSystemSupportsACLs )
2541
2541
job->addMetaData( "DEFAULT_ACL_STRING", d->defaultACL.isValid()?d->defaultACL.asString():"ACL_DELETE" );
2543
connect( job, SIGNAL( result( KJob * ) ),
2544
SLOT( slotChmodResult( KJob * ) ) );
2543
connect( job, SIGNAL(result(KJob*)),
2544
SLOT(slotChmodResult(KJob*)) );
2545
2545
QEventLoop eventLoop;
2546
2546
connect(this, SIGNAL(leaveModality()),
2547
2547
&eventLoop, SLOT(quit()));
2759
2759
d->device->setEditable( true );
2760
2760
d->device->addItems( devices );
2761
2761
layout->addWidget(d->device, 0, 1);
2762
connect( d->device, SIGNAL( activated( int ) ),
2763
this, SLOT( slotActivated( int ) ) );
2762
connect( d->device, SIGNAL(activated(int)),
2763
this, SLOT(slotActivated(int)) );
2765
2765
d->readonly = new QCheckBox( d->m_frame );
2766
2766
d->readonly->setObjectName( QLatin1String( "CheckBox_readonly" ) );
2845
2845
d->readonly->setChecked( ro );
2847
connect( d->device, SIGNAL( activated( int ) ),
2848
this, SIGNAL( changed() ) );
2849
connect( d->device, SIGNAL( textChanged( const QString & ) ),
2850
this, SIGNAL( changed() ) );
2851
connect( d->readonly, SIGNAL( toggled( bool ) ),
2852
this, SIGNAL( changed() ) );
2847
connect( d->device, SIGNAL(activated(int)),
2848
this, SIGNAL(changed()) );
2849
connect( d->device, SIGNAL(textChanged(QString)),
2850
this, SIGNAL(changed()) );
2851
connect( d->readonly, SIGNAL(toggled(bool)),
2852
this, SIGNAL(changed()) );
2854
connect( d->device, SIGNAL( textChanged( const QString & ) ),
2855
this, SLOT( slotDeviceChanged() ) );
2854
connect( d->device, SIGNAL(textChanged(QString)),
2855
this, SLOT(slotDeviceChanged()) );
2858
2858
KDevicePropsPlugin::~KDevicePropsPlugin()
3025
3025
d->w->pathEdit->setMode(KFile::Directory | KFile::LocalOnly);
3026
3026
d->w->pathEdit->lineEdit()->setAcceptDrops(false);
3028
connect( d->w->nameEdit, SIGNAL( textChanged( const QString & ) ), this, SIGNAL( changed() ) );
3029
connect( d->w->genNameEdit, SIGNAL( textChanged( const QString & ) ), this, SIGNAL( changed() ) );
3030
connect( d->w->commentEdit, SIGNAL( textChanged( const QString & ) ), this, SIGNAL( changed() ) );
3031
connect( d->w->commandEdit, SIGNAL( textChanged( const QString & ) ), this, SIGNAL( changed() ) );
3032
connect( d->w->pathEdit, SIGNAL( textChanged( const QString & ) ), this, SIGNAL( changed() ) );
3028
connect( d->w->nameEdit, SIGNAL(textChanged(QString)), this, SIGNAL(changed()) );
3029
connect( d->w->genNameEdit, SIGNAL(textChanged(QString)), this, SIGNAL(changed()) );
3030
connect( d->w->commentEdit, SIGNAL(textChanged(QString)), this, SIGNAL(changed()) );
3031
connect( d->w->commandEdit, SIGNAL(textChanged(QString)), this, SIGNAL(changed()) );
3032
connect( d->w->pathEdit, SIGNAL(textChanged(QString)), this, SIGNAL(changed()) );
3034
connect( d->w->browseButton, SIGNAL( clicked() ), this, SLOT( slotBrowseExec() ) );
3035
connect( d->w->addFiletypeButton, SIGNAL( clicked() ), this, SLOT( slotAddFiletype() ) );
3036
connect( d->w->delFiletypeButton, SIGNAL( clicked() ), this, SLOT( slotDelFiletype() ) );
3037
connect( d->w->advancedButton, SIGNAL( clicked() ), this, SLOT( slotAdvanced() ) );
3034
connect( d->w->browseButton, SIGNAL(clicked()), this, SLOT(slotBrowseExec()) );
3035
connect( d->w->addFiletypeButton, SIGNAL(clicked()), this, SLOT(slotAddFiletype()) );
3036
connect( d->w->delFiletypeButton, SIGNAL(clicked()), this, SLOT(slotDelFiletype()) );
3037
connect( d->w->advancedButton, SIGNAL(clicked()), this, SLOT(slotAdvanced()) );
3039
3039
// now populate the page
3366
connect( w.terminalEdit, SIGNAL( textChanged( const QString & ) ),
3367
this, SIGNAL( changed() ) );
3368
connect( w.terminalCloseCheck, SIGNAL( toggled( bool ) ),
3369
this, SIGNAL( changed() ) );
3370
connect( w.terminalCheck, SIGNAL( toggled( bool ) ),
3371
this, SIGNAL( changed() ) );
3372
connect( w.suidCheck, SIGNAL( toggled( bool ) ),
3373
this, SIGNAL( changed() ) );
3374
connect( w.suidEdit, SIGNAL( textChanged( const QString & ) ),
3375
this, SIGNAL( changed() ) );
3376
connect( w.startupInfoCheck, SIGNAL( toggled( bool ) ),
3377
this, SIGNAL( changed() ) );
3378
connect( w.systrayCheck, SIGNAL( toggled( bool ) ),
3379
this, SIGNAL( changed() ) );
3380
connect( w.dbusCombo, SIGNAL( activated( int ) ),
3381
this, SIGNAL( changed() ) );
3366
connect( w.terminalEdit, SIGNAL(textChanged(QString)),
3367
this, SIGNAL(changed()) );
3368
connect( w.terminalCloseCheck, SIGNAL(toggled(bool)),
3369
this, SIGNAL(changed()) );
3370
connect( w.terminalCheck, SIGNAL(toggled(bool)),
3371
this, SIGNAL(changed()) );
3372
connect( w.suidCheck, SIGNAL(toggled(bool)),
3373
this, SIGNAL(changed()) );
3374
connect( w.suidEdit, SIGNAL(textChanged(QString)),
3375
this, SIGNAL(changed()) );
3376
connect( w.startupInfoCheck, SIGNAL(toggled(bool)),
3377
this, SIGNAL(changed()) );
3378
connect( w.systrayCheck, SIGNAL(toggled(bool)),
3379
this, SIGNAL(changed()) );
3380
connect( w.dbusCombo, SIGNAL(activated(int)),
3381
this, SIGNAL(changed()) );
3383
3383
if ( dlg.exec() == QDialog::Accepted )