|
|
|
@ -112,6 +112,12 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
|
|
|
|
|
TQWhatsThis::add(cb_fullPath, i18n("If this option is checked, the full document path will be shown in the window caption."));
|
|
|
|
|
connect(cb_fullPath, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
|
|
|
|
|
|
|
|
|
|
// show session name in title
|
|
|
|
|
cb_showSessionName = new TQCheckBox(i18n("Show s&ession name in title"), bgStartup);
|
|
|
|
|
cb_showSessionName->setChecked(parent->showSessionName);
|
|
|
|
|
TQWhatsThis::add(cb_showSessionName, i18n("If this option is checked, the session name will be shown in the window caption."));
|
|
|
|
|
connect(cb_showSessionName, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
|
|
|
|
|
|
|
|
|
|
// sort filelist if desired
|
|
|
|
|
cb_sortFiles = new TQCheckBox(bgStartup);
|
|
|
|
|
cb_sortFiles->setText(i18n("Sort &files alphabetically in the file list"));
|
|
|
|
@ -417,6 +423,7 @@ void KateConfigDialog::slotApply()
|
|
|
|
|
config->writeEntry("Modified Notification", cb_modNotifications->isChecked());
|
|
|
|
|
mainWindow->modNotification = cb_modNotifications->isChecked();
|
|
|
|
|
|
|
|
|
|
mainWindow->showSessionName = cb_showSessionName->isChecked();
|
|
|
|
|
mainWindow->syncKonsole = cb_syncKonsole->isChecked();
|
|
|
|
|
mainWindow->useInstance = cb_useInstance->isChecked();
|
|
|
|
|
mainWindow->filelist->setSortType(cb_sortFiles->isChecked() ? KateFileList::sortByName : KateFileList::sortByID);
|
|
|
|
@ -437,7 +444,7 @@ void KateConfigDialog::slotApply()
|
|
|
|
|
}
|
|
|
|
|
//mainWindow->externalTools->reload();
|
|
|
|
|
|
|
|
|
|
mainWindow->viewManager()->setShowFullPath( cb_fullPath->isChecked() ); // hm, stored 2 places :(
|
|
|
|
|
mainWindow->viewManager()->setShowFullPath(cb_fullPath->isChecked());
|
|
|
|
|
|
|
|
|
|
mainWindow->saveOptions ();
|
|
|
|
|
|
|
|
|
|