summaryrefslogtreecommitdiffstats
path: root/kate/app/kateconfigdialog.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-08-23 23:11:45 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-08-23 23:11:45 +0900
commit9599fe545110b6d676da07e3361d52e1837b0e4c (patch)
tree9937a6319896ddb63e397b7172a8b8b1f2f9b18a /kate/app/kateconfigdialog.cpp
parent027c45db6f63a04eb31eac481f9264ab9760dce1 (diff)
downloadtdebase-9599fe545110b6d676da07e3361d52e1837b0e4c.tar.gz
tdebase-9599fe545110b6d676da07e3361d52e1837b0e4c.zip
Kate: added checkbox to select whether to display the session name on the
window caption or not. This relates to issue #62. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kate/app/kateconfigdialog.cpp')
-rw-r--r--kate/app/kateconfigdialog.cpp29
1 files changed, 18 insertions, 11 deletions
diff --git a/kate/app/kateconfigdialog.cpp b/kate/app/kateconfigdialog.cpp
index 38f71f2d3..883730c08 100644
--- a/kate/app/kateconfigdialog.cpp
+++ b/kate/app/kateconfigdialog.cpp
@@ -107,18 +107,24 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
// show full path in title
config->setGroup("General");
- cb_fullPath = new TQCheckBox( i18n("&Show full path in title"), bgStartup);
- cb_fullPath->setChecked( mainWindow->viewManager()->getShowFullPath() );
- 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() ) );
+ cb_fullPath = new TQCheckBox(i18n("&Show full path in title"), bgStartup);
+ cb_fullPath->setChecked(mainWindow->viewManager()->getShowFullPath());
+ 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"));
- cb_sortFiles->setChecked(parent->filelist->sortType() == KateFileList::sortByName);
- TQWhatsThis::add( cb_sortFiles, i18n(
- "If this is checked, the files in the file list will be sorted alphabetically.") );
- connect( cb_sortFiles, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) );
+ cb_sortFiles = new TQCheckBox(bgStartup);
+ cb_sortFiles->setText(i18n("Sort &files alphabetically in the file list"));
+ cb_sortFiles->setChecked(parent->filelist->sortType() == KateFileList::sortByName);
+ TQWhatsThis::add( cb_sortFiles, i18n(
+ "If this is checked, the files in the file list will be sorted alphabetically.") );
+ connect( cb_sortFiles, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) );
// GROUP with the one below: "Behavior"
bgStartup = new TQButtonGroup( 1, Qt::Horizontal, i18n("&Behavior"), frGeneral );
@@ -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 ();