By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 1127
Collapse All | Expand All

(-)a/kate/app/kateconfigdialog.cpp (-1 / +11 lines)
Lines 138-143 KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view ) Link Here
138
  TQWhatsThis::add( sb_numRecentFiles, numRecentFileHelpString );
138
  TQWhatsThis::add( sb_numRecentFiles, numRecentFileHelpString );
139
  connect( sb_numRecentFiles, TQT_SIGNAL( valueChanged ( int ) ), this, TQT_SLOT( slotChanged() ) );
139
  connect( sb_numRecentFiles, TQT_SIGNAL( valueChanged ( int ) ), this, TQT_SLOT( slotChanged() ) );
140
140
141
  // Use only one instance of kate (MDI) ?
142
  cb_useInstance = new TQCheckBox(bgStartup);
143
  cb_useInstance->setText(i18n("Always use the current instance of kate to open new files"));
144
  cb_useInstance->setChecked(parent->useInstance);
145
  TQWhatsThis::add( cb_useInstance, i18n(
146
        "When checked, all files opened from outside of Kate will only use the "
147
        "currently opened instance of Kate.") );
148
  connect( cb_useInstance, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) );
149
141
  // sync the konsole ?
150
  // sync the konsole ?
142
  cb_syncKonsole = new TQCheckBox(bgStartup);
151
  cb_syncKonsole = new TQCheckBox(bgStartup);
143
  cb_syncKonsole->setText(i18n("Sync &terminal emulator with active document"));
152
  cb_syncKonsole->setText(i18n("Sync &terminal emulator with active document"));
Lines 161-167 KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view ) Link Here
161
           this, TQT_SLOT( slotChanged() ) );
170
           this, TQT_SLOT( slotChanged() ) );
162
171
163
  // GROUP with the one below: "Meta-informations"
172
  // GROUP with the one below: "Meta-informations"
164
  bgStartup = new TQButtonGroup( 1, Qt::Horizontal, i18n("Meta-Information"), frGeneral );
173
  bgStartup = new TQButtonGroup( 2, Qt::Horizontal, i18n("Meta-Information"), frGeneral );
165
  lo->addWidget( bgStartup );
174
  lo->addWidget( bgStartup );
166
175
167
  // save meta infos
176
  // save meta infos
Lines 409-414 void KateConfigDialog::slotApply() Link Here
409
    mainWindow->modNotification = cb_modNotifications->isChecked();
418
    mainWindow->modNotification = cb_modNotifications->isChecked();
410
419
411
    mainWindow->syncKonsole = cb_syncKonsole->isChecked();
420
    mainWindow->syncKonsole = cb_syncKonsole->isChecked();
421
    mainWindow->useInstance = cb_useInstance->isChecked();
412
    mainWindow->filelist->setSortType(cb_sortFiles->isChecked() ? KateFileList::sortByName : KateFileList::sortByID);
422
    mainWindow->filelist->setSortType(cb_sortFiles->isChecked() ? KateFileList::sortByName : KateFileList::sortByID);
413
423
414
    config->writeEntry( "Number of recent files", sb_numRecentFiles->value() );
424
    config->writeEntry( "Number of recent files", sb_numRecentFiles->value() );
(-)a/kate/app/kateconfigdialog.h (+1 lines)
Lines 66-71 class KateConfigDialog : public KDialogBase Link Here
66
66
67
    TQCheckBox *cb_fullPath;
67
    TQCheckBox *cb_fullPath;
68
    TQCheckBox *cb_syncKonsole;
68
    TQCheckBox *cb_syncKonsole;
69
    TQCheckBox *cb_useInstance;
69
    TQCheckBox *cb_sortFiles;
70
    TQCheckBox *cb_sortFiles;
70
    TQSpinBox *sb_numRecentFiles;
71
    TQSpinBox *sb_numRecentFiles;
71
    TQCheckBox *cb_modNotifications;
72
    TQCheckBox *cb_modNotifications;
(-)a/kate/app/katemain.cpp (-2 / +13 lines)
Lines 41-46 static TDECmdLineOptions options[] = Link Here
41
    { "start <name>", I18N_NOOP("Start Kate with a given session"), 0 },
41
    { "start <name>", I18N_NOOP("Start Kate with a given session"), 0 },
42
    { "u", 0, 0 },
42
    { "u", 0, 0 },
43
    { "use", I18N_NOOP("Use a already running kate instance (if possible)"), 0 },
43
    { "use", I18N_NOOP("Use a already running kate instance (if possible)"), 0 },
44
    { "f", 0, 0 },
45
    { "force-sdi", I18N_NOOP("Force single document mode if the MDI setting is enabled."), 0 },
44
    { "p", 0, 0 },
46
    { "p", 0, 0 },
45
    { "pid <pid>", I18N_NOOP("Only try to reuse kate instance with this pid"), 0 },
47
    { "pid <pid>", I18N_NOOP("Only try to reuse kate instance with this pid"), 0 },
46
    { "e", 0, 0 },
48
    { "e", 0, 0 },
Lines 57-62 static TDECmdLineOptions options[] = Link Here
57
59
58
extern "C" KDE_EXPORT int kdemain( int argc, char **argv )
60
extern "C" KDE_EXPORT int kdemain( int argc, char **argv )
59
{
61
{
62
  TDEConfig * config = NULL;
63
  bool alwaysUseInstance;
60
  // here we go, construct the Kate version
64
  // here we go, construct the Kate version
61
  TQString kateVersion = KateApp::kateVersion();
65
  TQString kateVersion = KateApp::kateVersion();
62
66
Lines 98-103 extern "C" KDE_EXPORT int kdemain( int argc, char **argv ) Link Here
98
102
99
  aboutData.setTranslator(I18N_NOOP2("NAME OF TRANSLATORS","Your names"), I18N_NOOP2("EMAIL OF TRANSLATORS","Your emails"));
103
  aboutData.setTranslator(I18N_NOOP2("NAME OF TRANSLATORS","Your names"), I18N_NOOP2("EMAIL OF TRANSLATORS","Your emails"));
100
104
105
  TDEInstance instance( &aboutData );
106
101
  // command line args init and co
107
  // command line args init and co
102
  TDECmdLineArgs::init (argc, argv, &aboutData);
108
  TDECmdLineArgs::init (argc, argv, &aboutData);
103
  TDECmdLineArgs::addCmdLineOptions (options);
109
  TDECmdLineArgs::addCmdLineOptions (options);
Lines 107-114 extern "C" KDE_EXPORT int kdemain( int argc, char **argv ) Link Here
107
  // get our command line args ;)
113
  // get our command line args ;)
108
  TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
114
  TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
109
115
110
  // now, first try to contact running kate instance if needed
116
  config = TDEGlobal::config();
111
  if ( args->isSet("use") || (::getenv("KATE_PID")!=0) )
117
  config->setGroup("General");
118
  alwaysUseInstance = config->readBoolEntry("UseInstance");
119
120
// now, first try to contact running kate instance if needed
121
  if ( ((args->isSet("use") || alwaysUseInstance) &&
122
       !(args->isSet("force-sdi")))  || (::getenv("KATE_PID")!=0) )
112
  {
123
  {
113
    DCOPClient client;
124
    DCOPClient client;
114
    client.attach ();
125
    client.attach ();
(-)a/kate/app/katemainwindow.cpp (+3 lines)
Lines 406-411 void KateMainWindow::readOptions () Link Here
406
406
407
  config->setGroup("General");
407
  config->setGroup("General");
408
  syncKonsole =  config->readBoolEntry("Sync Konsole", true);
408
  syncKonsole =  config->readBoolEntry("Sync Konsole", true);
409
  useInstance =  config->readBoolEntry("UseInstance", false);
409
  modNotification = config->readBoolEntry("Modified Notification", false);
410
  modNotification = config->readBoolEntry("Modified Notification", false);
410
  KateDocManager::self()->setSaveMetaInfos(config->readBoolEntry("Save Meta Infos", true));
411
  KateDocManager::self()->setSaveMetaInfos(config->readBoolEntry("Save Meta Infos", true));
411
  KateDocManager::self()->setDaysMetaInfos(config->readNumEntry("Days Meta Infos", 30));
412
  KateDocManager::self()->setDaysMetaInfos(config->readNumEntry("Days Meta Infos", 30));
Lines 437-442 void KateMainWindow::saveOptions () Link Here
437
438
438
  config->writeEntry("Sync Konsole", syncKonsole);
439
  config->writeEntry("Sync Konsole", syncKonsole);
439
440
441
  config->writeEntry("UseInstance", useInstance);
442
440
  fileOpenRecent->saveEntries(config, "Recent Files");
443
  fileOpenRecent->saveEntries(config, "Recent Files");
441
444
442
  fileselector->writeConfig(config, "fileselector");
445
  fileselector->writeConfig(config, "fileselector");
(-)a/kate/app/katemainwindow.h (+1 lines)
Lines 182-187 class KateMainWindow : public KateMDI::MainWindow, virtual public KParts::PartBa Link Here
182
    Kate::ToolViewManager *m_toolViewManager;
182
    Kate::ToolViewManager *m_toolViewManager;
183
183
184
    bool syncKonsole;
184
    bool syncKonsole;
185
    bool useInstance;
185
    bool modNotification;
186
    bool modNotification;
186
187
187
    DCOPObject *m_dcop;
188
    DCOPObject *m_dcop;

Return to bug 1127