|
Lines 112-122
Link Here
|
| 112 |
TQWhatsThis::add(cb_fullPath,i18n("If this option is checked, the full document path will be shown in the window caption.")); |
112 |
TQWhatsThis::add(cb_fullPath,i18n("If this option is checked, the full document path will be shown in the window caption.")); |
| 113 |
connect( cb_fullPath, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) ); |
113 |
connect( cb_fullPath, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) ); |
|
|
114 |
// sort filelist ? ### remove |
| 115 |
cb_sortFiles = new TQCheckBox(bgStartup); |
| 116 |
cb_sortFiles->setText(i18n("Sort &files alphabetically in the file list")); |
| 117 |
cb_sortFiles->setChecked(parent->filelist->sortType() == KateFileList::sortByName); |
| 118 |
TQWhatsThis::add( cb_sortFiles, i18n( |
| 119 |
"If this is checked, the files in the file list will be sorted alphabetically.") ); |
| 120 |
connect( cb_sortFiles, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) ); |
| 114 |
// GROUP with the one below: "Behavior" |
121 |
// GROUP with the one below: "Behavior" |
| 115 |
bgStartup = new TQButtonGroup( 1, Qt::Horizontal, i18n("&Behavior"), frGeneral ); |
122 |
bgStartup = new TQButtonGroup( 1, Qt::Horizontal, i18n("&Behavior"), frGeneral ); |
| 116 |
lo->addWidget( bgStartup ); |
123 |
lo->addWidget( bgStartup ); |
|
|
124 |
// number of recent files |
| 125 |
TQHBox *hbNrf = new TQHBox( bgStartup ); |
| 126 |
TQLabel *lNrf = new TQLabel( i18n("&Number of recent files:"), hbNrf ); |
| 127 |
sb_numRecentFiles = new TQSpinBox( 0, 1000, 1, hbNrf ); |
| 128 |
sb_numRecentFiles->setValue( mainWindow->fileOpenRecent->maxItems() ); |
| 129 |
lNrf->setBuddy( sb_numRecentFiles ); |
| 130 |
TQString youwouldnotbelieveit ( i18n( |
| 131 |
"<qt>Sets the number of recent files remembered by Kate.<p><strong>NOTE: </strong>" |
| 132 |
"If you set this lower than the current value, the list will be truncated and " |
| 133 |
"some items forgotten.</qt>") ); |
| 134 |
TQWhatsThis::add( lNrf, youwouldnotbelieveit ); |
| 135 |
TQWhatsThis::add( sb_numRecentFiles, youwouldnotbelieveit ); |
| 136 |
connect( sb_numRecentFiles, TQT_SIGNAL( valueChanged ( int ) ), this, TQT_SLOT( slotChanged() ) ); |
| 137 |
|
| 117 |
// sync the konsole ? |
138 |
// sync the konsole ? |
| 118 |
cb_syncKonsole = new TQCheckBox(bgStartup); |
139 |
cb_syncKonsole = new TQCheckBox(bgStartup); |
| 119 |
cb_syncKonsole->setText(i18n("Sync &terminal emulator with active document")); |
140 |
cb_syncKonsole->setText(i18n("Sync &terminal emulator with active document")); |
|
Lines 389-394
Link Here
|
| 389 |
mainWindow->syncKonsole = cb_syncKonsole->isChecked(); |
403 |
mainWindow->syncKonsole = cb_syncKonsole->isChecked(); |
|
|
404 |
mainWindow->filelist->setSortType(cb_sortFiles->isChecked() ? KateFileList::sortByName : KateFileList::sortByID); |
| 405 |
|
| 406 |
config->writeEntry( "Number of recent files", sb_numRecentFiles->value() ); |
| 407 |
mainWindow->fileOpenRecent->setMaxItems( sb_numRecentFiles->value() ); |
| 408 |
|
| 390 |
fileSelConfigPage->apply(); |
409 |
fileSelConfigPage->apply(); |
| 391 |
filelistConfigPage->apply(); |
410 |
filelistConfigPage->apply(); |