~ubuntu-branches/ubuntu/vivid/kdesdk/vivid

« back to all changes in this revision

Viewing changes to cervisia/cervisiapart.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-14 15:11:09 UTC
  • mfrom: (0.4.22)
  • Revision ID: package-import@ubuntu.com-20120614151109-t9h5vc8qga2sz5yo
Tags: 4:4.8.90-0ubuntu1
New upstream beta release

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
        update = new UpdateView(*config(), splitter);
147
147
        update->setFocusPolicy( Qt::StrongFocus );
148
148
        update->setFocus();
149
 
        connect( update, SIGNAL(contextMenu(K3ListView*, Q3ListViewItem*, const QPoint&)),
150
 
                 this, SLOT(popupRequested(K3ListView*, Q3ListViewItem*, const QPoint&)) );
 
149
        connect( update, SIGNAL(contextMenu(K3ListView*,Q3ListViewItem*,QPoint)),
 
150
                 this, SLOT(popupRequested(K3ListView*,Q3ListViewItem*,QPoint)) );
151
151
        connect( update, SIGNAL(fileOpened(QString)),
152
152
                 this, SLOT(openFile(QString)) );
153
153
        protocol = new ProtocolView(m_cvsServiceInterfaceName, splitter);
164
164
    {
165
165
        setupActions();
166
166
        readSettings();
167
 
        connect( update, SIGNAL( selectionChanged() ), this, SLOT( updateActions() ) );
 
167
        connect( update, SIGNAL(selectionChanged()), this, SLOT(updateActions()) );
168
168
    }
169
169
 
170
170
    setXMLFile( "cervisiaui.rc" );
241
241
    //
242
242
    action  = new KAction(KIcon("document-open"), i18n("O&pen Sandbox..."), this);
243
243
    actionCollection()->addAction("file_open", action );
244
 
    connect(action, SIGNAL(triggered(bool) ), SLOT( slotOpenSandbox() ));
 
244
    connect(action, SIGNAL(triggered(bool)), SLOT(slotOpenSandbox()));
245
245
    action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_O));
246
246
    hint = i18n("Opens a CVS working folder in the main window");
247
247
    action->setToolTip( hint );
249
249
 
250
250
    recent = new KRecentFilesAction( i18n("Recent Sandboxes"), this );
251
251
    actionCollection()->addAction("file_open_recent", recent);
252
 
    connect(recent, SIGNAL(urlSelected(const KUrl&)), SLOT(openUrl(const KUrl&))),
 
252
    connect(recent, SIGNAL(urlSelected(KUrl)), SLOT(openUrl(KUrl))),
253
253
 
254
254
    action  = new KAction(i18n("&Insert ChangeLog Entry..."), this);
255
255
    actionCollection()->addAction("insert_changelog_entry", action );
256
 
    connect(action, SIGNAL(triggered(bool) ), SLOT( slotChangeLog() ));
 
256
    connect(action, SIGNAL(triggered(bool)), SLOT(slotChangeLog()));
257
257
    hint = i18n("Inserts a new intro into the file ChangeLog in the toplevel folder");
258
258
    action->setToolTip( hint );
259
259
    action->setWhatsThis( hint );
260
260
 
261
261
    action  = new KAction(KIcon("vcs-update-cvs-cervisia"), i18n("&Update"), this);
262
262
    actionCollection()->addAction("file_update", action );
263
 
    connect(action, SIGNAL(triggered(bool) ), SLOT( slotUpdate() ));
 
263
    connect(action, SIGNAL(triggered(bool)), SLOT(slotUpdate()));
264
264
    action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_U));
265
265
    hint = i18n("Updates (cvs update) the selected files and folders");
266
266
    action->setToolTip( hint );
268
268
 
269
269
    action  = new KAction(KIcon("vcs-status-cvs-cervisia"), i18n("&Status"), this);
270
270
    actionCollection()->addAction("file_status", action );
271
 
    connect(action, SIGNAL(triggered(bool) ), SLOT( slotStatus() ));
 
271
    connect(action, SIGNAL(triggered(bool)), SLOT(slotStatus()));
272
272
    action->setShortcut(QKeySequence(Qt::Key_F5));
273
273
    hint = i18n("Updates the status (cvs -n update) of the selected files and folders");
274
274
    action->setToolTip( hint );
276
276
 
277
277
    action  = new KAction(i18n("&Edit"), this);
278
278
    actionCollection()->addAction("file_edit", action );
279
 
    connect(action, SIGNAL(triggered(bool) ), SLOT( slotOpen() ));
 
279
    connect(action, SIGNAL(triggered(bool)), SLOT(slotOpen()));
280
280
    hint = i18n("Opens the marked file for editing");
281
281
    action->setToolTip( hint );
282
282
    action->setWhatsThis( hint );
283
283
 
284
284
    action  = new KAction(i18n("Reso&lve..."), this);
285
285
    actionCollection()->addAction("file_resolve", action );
286
 
    connect(action, SIGNAL(triggered(bool) ), SLOT( slotResolve() ));
 
286
    connect(action, SIGNAL(triggered(bool)), SLOT(slotResolve()));
287
287
    hint = i18n("Opens the resolve dialog with the selected file");
288
288
    action->setToolTip( hint );
289
289
    action->setWhatsThis( hint );
290
290
 
291
291
    action  = new KAction(KIcon("vcs-commit-cvs-cervisia"), i18n("&Commit..."), this);
292
292
    actionCollection()->addAction("file_commit", action );
293
 
    connect(action, SIGNAL(triggered(bool) ), SLOT( slotCommit() ));
 
293
    connect(action, SIGNAL(triggered(bool)), SLOT(slotCommit()));
294
294
    action->setShortcut(QKeySequence(Qt::Key_NumberSign));
295
295
    hint = i18n("Commits the selected files");
296
296
    action->setToolTip( hint );
298
298
 
299
299
    action  = new KAction(KIcon("vcs-add-cvs-cervisia"), i18n("&Add to Repository..."), this);
300
300
    actionCollection()->addAction("file_add", action );
301
 
    connect(action, SIGNAL(triggered(bool) ), SLOT( slotAdd() ));
 
301
    connect(action, SIGNAL(triggered(bool)), SLOT(slotAdd()));
302
302
    action->setIconText(i18n("Add"));
303
303
    action->setShortcut(QKeySequence(Qt::Key_Insert));
304
304
    hint = i18n("Adds (cvs add) the selected files to the repository");
307
307
 
308
308
    action  = new KAction(i18n("Add &Binary..."), this);
309
309
    actionCollection()->addAction("file_add_binary", action );
310
 
    connect(action, SIGNAL(triggered(bool) ), SLOT( slotAddBinary() ));
 
310
    connect(action, SIGNAL(triggered(bool)), SLOT(slotAddBinary()));
311
311
    hint = i18n("Adds (cvs -kb add) the selected files as binaries to the repository");
312
312
    action->setToolTip( hint );
313
313
    action->setWhatsThis( hint );
314
314
 
315
315
    action  = new KAction(KIcon("vcs-remove-cvs-cervisia"), i18n("&Remove From Repository..."), this);
316
316
    actionCollection()->addAction("file_remove", action );
317
 
    connect(action, SIGNAL(triggered(bool) ), SLOT( slotRemove() ));
 
317
    connect(action, SIGNAL(triggered(bool)), SLOT(slotRemove()));
318
318
    action->setIconText(i18n("Remove"));
319
319
    action->setShortcut(QKeySequence(Qt::Key_Delete));
320
320
    hint = i18n("Removes (cvs remove) the selected files from the repository");
323
323
 
324
324
    action  = new KAction(i18n("Rever&t"), this);
325
325
    actionCollection()->addAction("file_revert_local_changes", action );
326
 
    connect(action, SIGNAL(triggered(bool) ), SLOT( slotRevert() ));
 
326
    connect(action, SIGNAL(triggered(bool)), SLOT(slotRevert()));
327
327
    hint = i18n("Reverts (cvs update -C) the selected files (only cvs 1.11)");
328
328
    action->setToolTip( hint );
329
329
    action->setWhatsThis( hint );
330
330
 
331
331
    action  = new KAction(i18n("&Properties"), this);
332
332
    actionCollection()->addAction("file_properties", action );
333
 
    connect(action, SIGNAL(triggered() ), SLOT( slotFileProperties() ));
 
333
    connect(action, SIGNAL(triggered()), SLOT(slotFileProperties()));
334
334
 
335
335
    //
336
336
    // View Menu
337
337
    //
338
338
    action  = new KAction(KIcon("process-stop"), i18n("Stop"), this);
339
339
    actionCollection()->addAction("stop_job", action );
340
 
    connect(action, SIGNAL(triggered(bool) ), protocol, SLOT(cancelJob()));
 
340
    connect(action, SIGNAL(triggered(bool)), protocol, SLOT(cancelJob()));
341
341
    action->setShortcut(QKeySequence(Qt::Key_Escape));
342
342
    action->setEnabled( false );
343
343
    hint = i18n("Stops any running sub-processes");
347
347
 
348
348
    action  = new KAction(i18n("Browse &Log..."), this);
349
349
    actionCollection()->addAction("view_log", action );
350
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotBrowseLog()));
 
350
    connect(action, SIGNAL(triggered(bool)), SLOT(slotBrowseLog()));
351
351
    action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_L));
352
352
    hint = i18n("Shows the revision tree of the selected file");
353
353
    action->setToolTip( hint );
360
360
#endif
361
361
    action  = new KAction(i18n("&Annotate..."), this);
362
362
    actionCollection()->addAction("view_annotate", action );
363
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotAnnotate()));
 
363
    connect(action, SIGNAL(triggered(bool)), SLOT(slotAnnotate()));
364
364
    action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_A));
365
365
    hint = i18n("Shows a blame-annotated view of the selected file");
366
366
    action->setToolTip( hint );
368
368
 
369
369
    action  = new KAction(KIcon("vcs-diff-cvs-cervisia"), i18n("&Difference to Repository (BASE)..."), this);
370
370
    actionCollection()->addAction("view_diff_base", action );
371
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotDiffBase()));
 
371
    connect(action, SIGNAL(triggered(bool)), SLOT(slotDiffBase()));
372
372
    action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_D));
373
373
    hint = i18n("Shows the differences of the selected file to the checked out version (tag BASE)");
374
374
    action->setToolTip( hint );
376
376
 
377
377
    action  = new KAction(KIcon("vcs-diff-cvs-cervisia"), i18n("Difference to Repository (HEAD)..."), this);
378
378
    actionCollection()->addAction("view_diff_head", action );
379
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotDiffHead()));
 
379
    connect(action, SIGNAL(triggered(bool)), SLOT(slotDiffHead()));
380
380
    action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_H));
381
381
    hint = i18n("Shows the differences of the selected file to the newest version in the repository (tag HEAD)");
382
382
    action->setToolTip( hint );
384
384
 
385
385
    action  = new KAction(i18n("Last &Change..."), this);
386
386
    actionCollection()->addAction("view_last_change", action );
387
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotLastChange()));
 
387
    connect(action, SIGNAL(triggered(bool)), SLOT(slotLastChange()));
388
388
    hint = i18n("Shows the differences between the last two revisions of the selected file");
389
389
    action->setToolTip( hint );
390
390
    action->setWhatsThis( hint );
391
391
 
392
392
    action  = new KAction(i18n("&History..."), this);
393
393
    actionCollection()->addAction("view_history", action );
394
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotHistory()));
 
394
    connect(action, SIGNAL(triggered(bool)), SLOT(slotHistory()));
395
395
    hint = i18n("Shows the CVS history as reported by the server");
396
396
    action->setToolTip( hint );
397
397
    action->setWhatsThis( hint );
398
398
 
399
399
    action  = new KAction(i18n("&Unfold File Tree"), this);
400
400
    actionCollection()->addAction("view_unfold_tree", action );
401
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotUnfoldTree()));
 
401
    connect(action, SIGNAL(triggered(bool)), SLOT(slotUnfoldTree()));
402
402
 
403
403
    hint = i18n("Opens all branches of the file tree");
404
404
    action->setToolTip( hint );
406
406
 
407
407
    action  = new KAction(i18n("&Fold File Tree"), this);
408
408
    actionCollection()->addAction("view_fold_tree", action );
409
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotFoldTree()));
 
409
    connect(action, SIGNAL(triggered(bool)), SLOT(slotFoldTree()));
410
410
    hint = i18n("Closes all branches of the file tree");
411
411
    action->setToolTip( hint );
412
412
    action->setWhatsThis( hint );
416
416
    //
417
417
    action  = new KAction(i18n("&Tag/Branch..."), this);
418
418
    actionCollection()->addAction("create_tag", action );
419
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotCreateTag()));
 
419
    connect(action, SIGNAL(triggered(bool)), SLOT(slotCreateTag()));
420
420
    hint = i18n("Creates a tag or branch for the selected files");
421
421
    action->setToolTip( hint );
422
422
    action->setWhatsThis( hint );
423
423
 
424
424
    action  = new KAction(i18n("&Delete Tag..."), this);
425
425
    actionCollection()->addAction("delete_tag", action );
426
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotDeleteTag()));
 
426
    connect(action, SIGNAL(triggered(bool)), SLOT(slotDeleteTag()));
427
427
    hint = i18n("Deletes a tag from the selected files");
428
428
    action->setToolTip( hint );
429
429
    action->setWhatsThis( hint );
430
430
 
431
431
    action  = new KAction(i18n("&Update to Tag/Date..."), this);
432
432
    actionCollection()->addAction("update_to_tag", action );
433
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotUpdateToTag()));
 
433
    connect(action, SIGNAL(triggered(bool)), SLOT(slotUpdateToTag()));
434
434
    hint = i18n("Updates the selected files to a given tag, branch or date");
435
435
    action->setToolTip( hint );
436
436
    action->setWhatsThis( hint );
437
437
 
438
438
    action  = new KAction(i18n("Update to &HEAD"), this);
439
439
    actionCollection()->addAction("update_to_head", action );
440
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotUpdateToHead()));
 
440
    connect(action, SIGNAL(triggered(bool)), SLOT(slotUpdateToHead()));
441
441
    hint = i18n("Updates the selected files to the HEAD revision");
442
442
    action->setToolTip( hint );
443
443
    action->setWhatsThis( hint );
444
444
 
445
445
    action  = new KAction(i18n("&Merge..."), this);
446
446
    actionCollection()->addAction("merge", action );
447
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotMerge()));
 
447
    connect(action, SIGNAL(triggered(bool)), SLOT(slotMerge()));
448
448
    hint = i18n("Merges a branch or a set of modifications into the selected files");
449
449
    action->setToolTip( hint );
450
450
    action->setWhatsThis( hint );
451
451
 
452
452
    action  = new KAction(i18n("&Add Watch..."), this);
453
453
    actionCollection()->addAction("add_watch", action );
454
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotAddWatch()));
 
454
    connect(action, SIGNAL(triggered(bool)), SLOT(slotAddWatch()));
455
455
    hint = i18n("Adds a watch for the selected files");
456
456
    action->setToolTip( hint );
457
457
    action->setWhatsThis( hint );
458
458
 
459
459
    action  = new KAction(i18n("&Remove Watch..."), this);
460
460
    actionCollection()->addAction("remove_watch", action );
461
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotRemoveWatch()));
 
461
    connect(action, SIGNAL(triggered(bool)), SLOT(slotRemoveWatch()));
462
462
    hint = i18n("Removes a watch from the selected files");
463
463
    action->setToolTip( hint );
464
464
    action->setWhatsThis( hint );
465
465
 
466
466
    action  = new KAction(i18n("Show &Watchers"), this);
467
467
    actionCollection()->addAction("show_watchers", action );
468
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotShowWatchers()));
 
468
    connect(action, SIGNAL(triggered(bool)), SLOT(slotShowWatchers()));
469
469
    hint = i18n("Shows the watchers of the selected files");
470
470
    action->setToolTip( hint );
471
471
    action->setWhatsThis( hint );
472
472
 
473
473
    action  = new KAction(i18n("Ed&it Files"), this);
474
474
    actionCollection()->addAction("edit_files", action );
475
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotEdit()));
 
475
    connect(action, SIGNAL(triggered(bool)), SLOT(slotEdit()));
476
476
    hint = i18n("Edits (cvs edit) the selected files");
477
477
    action->setToolTip( hint );
478
478
    action->setWhatsThis( hint );
479
479
 
480
480
    action  = new KAction(i18n("U&nedit Files"), this);
481
481
    actionCollection()->addAction("unedit_files", action );
482
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotUnedit()));
 
482
    connect(action, SIGNAL(triggered(bool)), SLOT(slotUnedit()));
483
483
    hint = i18n("Unedits (cvs unedit) the selected files");
484
484
    action->setToolTip( hint );
485
485
    action->setWhatsThis( hint );
486
486
 
487
487
    action  = new KAction(i18n("Show &Editors"), this);
488
488
    actionCollection()->addAction("show_editors", action );
489
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotShowEditors()));
 
489
    connect(action, SIGNAL(triggered(bool)), SLOT(slotShowEditors()));
490
490
    hint = i18n("Shows the editors of the selected files");
491
491
    action->setToolTip( hint );
492
492
    action->setWhatsThis( hint );
493
493
 
494
494
    action  = new KAction(i18n("&Lock Files"), this);
495
495
    actionCollection()->addAction("lock_files", action );
496
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotLock()));
 
496
    connect(action, SIGNAL(triggered(bool)), SLOT(slotLock()));
497
497
    hint = i18n("Locks the selected files, so that others cannot modify them");
498
498
    action->setToolTip( hint );
499
499
    action->setWhatsThis( hint );
500
500
 
501
501
    action  = new KAction(i18n("Unl&ock Files"), this);
502
502
    actionCollection()->addAction("unlock_files", action );
503
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotUnlock()));
 
503
    connect(action, SIGNAL(triggered(bool)), SLOT(slotUnlock()));
504
504
    hint = i18n("Unlocks the selected files");
505
505
    action->setToolTip( hint );
506
506
    action->setWhatsThis( hint );
507
507
 
508
508
    action  = new KAction(i18n("Create &Patch Against Repository..."), this);
509
509
    actionCollection()->addAction("make_patch", action );
510
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotMakePatch()));
 
510
    connect(action, SIGNAL(triggered(bool)), SLOT(slotMakePatch()));
511
511
    hint = i18n("Creates a patch from the modifications in your sandbox");
512
512
    action->setToolTip( hint );
513
513
    action->setWhatsThis( hint );
517
517
    //
518
518
    action  = new KAction(i18n("&Create..."), this);
519
519
    actionCollection()->addAction("repository_create", action );
520
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotCreateRepository()));
 
520
    connect(action, SIGNAL(triggered(bool)), SLOT(slotCreateRepository()));
521
521
 
522
522
    action  = new KAction(i18n("&Checkout..."), this);
523
523
    actionCollection()->addAction("repository_checkout", action );
524
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotCheckout()));
 
524
    connect(action, SIGNAL(triggered(bool)), SLOT(slotCheckout()));
525
525
    hint = i18n("Allows you to checkout a module from a repository");
526
526
    action->setToolTip( hint );
527
527
    action->setWhatsThis( hint );
528
528
 
529
529
    action  = new KAction(i18n("&Import..."), this);
530
530
    actionCollection()->addAction("repository_import", action );
531
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotImport()));
 
531
    connect(action, SIGNAL(triggered(bool)), SLOT(slotImport()));
532
532
    hint = i18n("Allows you to import a module into a repository");
533
533
    action->setToolTip( hint );
534
534
    action->setWhatsThis( hint );
535
535
 
536
536
    action  = new KAction(i18n("&Repositories..."), this);
537
537
    actionCollection()->addAction("show_repositories", action );
538
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotRepositories()));
 
538
    connect(action, SIGNAL(triggered(bool)), SLOT(slotRepositories()));
539
539
    hint = i18n("Configures a list of repositories you regularly use");
540
540
    action->setToolTip( hint );
541
541
    action->setWhatsThis( hint );
545
545
    //
546
546
    action  = new KToggleAction(i18n("Hide All &Files"), this);
547
547
    actionCollection()->addAction("settings_hide_files", action );
548
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotHideFiles()));
 
548
    connect(action, SIGNAL(triggered(bool)), SLOT(slotHideFiles()));
549
549
    hint = i18n("Determines whether only folders are shown");
550
550
    action->setToolTip( hint );
551
551
    action->setWhatsThis( hint );
552
552
 
553
553
    action  = new KToggleAction(i18n("Hide Unmodified Files"), this);
554
554
    actionCollection()->addAction("settings_hide_uptodate", action );
555
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotHideUpToDate()));
 
555
    connect(action, SIGNAL(triggered(bool)), SLOT(slotHideUpToDate()));
556
556
    hint = i18n("Determines whether files with status up-to-date or "
557
557
                "unknown are hidden");
558
558
    action->setToolTip( hint );
560
560
 
561
561
    action  = new KToggleAction(i18n("Hide Removed Files"), this);
562
562
    actionCollection()->addAction("settings_hide_removed", action );
563
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotHideRemoved()));
 
563
    connect(action, SIGNAL(triggered(bool)), SLOT(slotHideRemoved()));
564
564
    hint = i18n("Determines whether removed files are hidden");
565
565
    action->setToolTip( hint );
566
566
    action->setWhatsThis( hint );
567
567
 
568
568
    action  = new KToggleAction(i18n("Hide Non-CVS Files"), this);
569
569
    actionCollection()->addAction("settings_hide_notincvs", action );
570
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotHideNotInCVS()));
 
570
    connect(action, SIGNAL(triggered(bool)), SLOT(slotHideNotInCVS()));
571
571
    hint = i18n("Determines whether files not in CVS are hidden");
572
572
    action->setToolTip( hint );
573
573
    action->setWhatsThis( hint );
574
574
 
575
575
    action  = new KToggleAction(i18n("Hide Empty Folders"), this);
576
576
    actionCollection()->addAction("settings_hide_empty_directories", action );
577
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotHideEmptyDirectories()));
 
577
    connect(action, SIGNAL(triggered(bool)), SLOT(slotHideEmptyDirectories()));
578
578
    hint = i18n("Determines whether folders without visible entries are hidden");
579
579
    action->setToolTip( hint );
580
580
    action->setWhatsThis( hint );
581
581
 
582
582
    action  = new KToggleAction(i18n("Create &Folders on Update"), this);
583
583
    actionCollection()->addAction("settings_create_dirs", action );
584
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotCreateDirs()));
 
584
    connect(action, SIGNAL(triggered(bool)), SLOT(slotCreateDirs()));
585
585
    hint = i18n("Determines whether updates create folders");
586
586
    action->setToolTip( hint );
587
587
    action->setWhatsThis( hint );
588
588
 
589
589
    action  = new KToggleAction(i18n("&Prune Empty Folders on Update"), this);
590
590
    actionCollection()->addAction("settings_prune_dirs", action );
591
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotPruneDirs()));
 
591
    connect(action, SIGNAL(triggered(bool)), SLOT(slotPruneDirs()));
592
592
    hint = i18n("Determines whether updates remove empty folders");
593
593
    action->setToolTip( hint );
594
594
    action->setWhatsThis( hint );
595
595
 
596
596
    action  = new KToggleAction(i18n("&Update Recursively"), this);
597
597
    actionCollection()->addAction("settings_update_recursively", action );
598
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotUpdateRecursive()));
 
598
    connect(action, SIGNAL(triggered(bool)), SLOT(slotUpdateRecursive()));
599
599
    hint = i18n("Determines whether updates are recursive");
600
600
    action->setToolTip( hint );
601
601
    action->setWhatsThis( hint );
602
602
 
603
603
    action  = new KToggleAction(i18n("C&ommit && Remove Recursively"), this);
604
604
    actionCollection()->addAction("settings_commit_recursively", action );
605
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotCommitRecursive()));
 
605
    connect(action, SIGNAL(triggered(bool)), SLOT(slotCommitRecursive()));
606
606
    hint = i18n("Determines whether commits and removes are recursive");
607
607
    action->setToolTip( hint );
608
608
    action->setWhatsThis( hint );
609
609
 
610
610
    action  = new KToggleAction(i18n("Do cvs &edit Automatically When Necessary"), this);
611
611
    actionCollection()->addAction("settings_do_cvs_edit", action );
612
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotDoCVSEdit()));
 
612
    connect(action, SIGNAL(triggered(bool)), SLOT(slotDoCVSEdit()));
613
613
    hint = i18n("Determines whether automatic cvs editing is active");
614
614
    action->setToolTip( hint );
615
615
    action->setWhatsThis( hint );
616
616
 
617
617
    action  = new KAction(KIcon("configure"), i18n("Configure Cervisia..."), this);
618
618
    actionCollection()->addAction("configure_cervisia", action );
619
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotConfigure()));
 
619
    connect(action, SIGNAL(triggered(bool)), SLOT(slotConfigure()));
620
620
    hint = i18n("Allows you to configure the Cervisia KPart");
621
621
    action->setToolTip( hint );
622
622
    action->setWhatsThis( hint );
629
629
 
630
630
    action  = new KAction(i18n("CVS &Manual"), this);
631
631
    actionCollection()->addAction("help_cvs_manual", action );
632
 
    connect(action, SIGNAL(triggered(bool) ), SLOT(slotCVSInfo()));
 
632
    connect(action, SIGNAL(triggered(bool)), SLOT(slotCVSInfo()));
633
633
    hint = i18n("Opens the help browser with the CVS documentation");
634
634
    action->setToolTip( hint );
635
635
    action->setWhatsThis( hint );
639
639
    //
640
640
    action  = new KToggleAction(i18n("Unfold Folder"), this);
641
641
    actionCollection()->addAction("unfold_folder", action );
642
 
    connect(action, SIGNAL(triggered(bool) ), SLOT( slotUnfoldFolder() ));
 
642
    connect(action, SIGNAL(triggered(bool)), SLOT(slotUnfoldFolder()));
643
643
}
644
644
 
645
645
 
902
902
    {
903
903
        showJobStart(cmdline);
904
904
        connect( protocol, SIGNAL(receivedLine(QString)), update, SLOT(processUpdateLine(QString)) );
905
 
        connect( protocol, SIGNAL(jobFinished(bool, int)), update, SLOT(finishJob(bool, int)) );
906
 
        connect( protocol, SIGNAL(jobFinished(bool, int)), this, SLOT(slotJobFinished()) );
 
905
        connect( protocol, SIGNAL(jobFinished(bool,int)), update, SLOT(finishJob(bool,int)) );
 
906
        connect( protocol, SIGNAL(jobFinished(bool,int)), this, SLOT(slotJobFinished()) );
907
907
    }
908
908
}
909
909
 
1021
1021
        {
1022
1022
            m_jobType = Commit;
1023
1023
            showJobStart(cmdline);
1024
 
            connect( protocol, SIGNAL(jobFinished(bool, int)), update, SLOT(finishJob(bool, int)) );
1025
 
            connect( protocol, SIGNAL(jobFinished(bool, int)), this, SLOT(slotJobFinished()) );
 
1024
            connect( protocol, SIGNAL(jobFinished(bool,int)), update, SLOT(finishJob(bool,int)) );
 
1025
            connect( protocol, SIGNAL(jobFinished(bool,int)), this, SLOT(slotJobFinished()) );
1026
1026
        }
1027
1027
    }
1028
1028
}
1090
1090
    {
1091
1091
        showJobStart(cmdline);
1092
1092
        connect( protocol, SIGNAL(receivedLine(QString)), update, SLOT(processUpdateLine(QString)) );
1093
 
        connect( protocol, SIGNAL(jobFinished(bool, int)), update, SLOT(finishJob(bool, int)) );
1094
 
        connect( protocol, SIGNAL(jobFinished(bool, int)), this, SLOT(slotJobFinished()) );
 
1093
        connect( protocol, SIGNAL(jobFinished(bool,int)), update, SLOT(finishJob(bool,int)) );
 
1094
        connect( protocol, SIGNAL(jobFinished(bool,int)), this, SLOT(slotJobFinished()) );
1095
1095
    }
1096
1096
}
1097
1097
 
1143
1143
        if (protocol->startJob())
1144
1144
        {
1145
1145
            showJobStart(cmdline);
1146
 
            connect( protocol, SIGNAL(jobFinished(bool, int)),
1147
 
                     update, SLOT(finishJob(bool, int)) );
1148
 
            connect( protocol, SIGNAL(jobFinished(bool, int)),
 
1146
            connect( protocol, SIGNAL(jobFinished(bool,int)),
 
1147
                     update, SLOT(finishJob(bool,int)) );
 
1148
            connect( protocol, SIGNAL(jobFinished(bool,int)),
1149
1149
                     this, SLOT(slotJobFinished()) );
1150
1150
        }
1151
1151
    }
1237
1237
        if( protocol->startJob() )
1238
1238
        {
1239
1239
            showJobStart(cmdline);
1240
 
            connect( protocol, SIGNAL(jobFinished(bool, int)),
 
1240
            connect( protocol, SIGNAL(jobFinished(bool,int)),
1241
1241
                     this,     SLOT(slotJobFinished()) );
1242
1242
        }
1243
1243
    }
1281
1281
    if( protocol->startJob() )
1282
1282
    {
1283
1283
        showJobStart(cmdline);
1284
 
        connect( protocol, SIGNAL(jobFinished(bool, int)),
 
1284
        connect( protocol, SIGNAL(jobFinished(bool,int)),
1285
1285
                 this,     SLOT(slotJobFinished()) );
1286
1286
    }
1287
1287
}
1309
1309
    if( protocol->startJob() )
1310
1310
    {
1311
1311
        showJobStart(cmdline);
1312
 
        connect( protocol, SIGNAL(jobFinished(bool, int)),
 
1312
        connect( protocol, SIGNAL(jobFinished(bool,int)),
1313
1313
                 this,     SLOT(slotJobFinished()) );
1314
1314
    }
1315
1315
}
1335
1335
    if( protocol->startJob() )
1336
1336
    {
1337
1337
        showJobStart(cmdline);
1338
 
        connect( protocol, SIGNAL(jobFinished(bool, int)),
 
1338
        connect( protocol, SIGNAL(jobFinished(bool,int)),
1339
1339
                 this,     SLOT(slotJobFinished()) );
1340
1340
    }
1341
1341
}
1362
1362
    if( protocol->startJob() )
1363
1363
    {
1364
1364
        showJobStart(cmdline);
1365
 
        connect( protocol, SIGNAL(jobFinished(bool, int)),
 
1365
        connect( protocol, SIGNAL(jobFinished(bool,int)),
1366
1366
                 this,     SLOT(slotJobFinished()) );
1367
1367
    }
1368
1368
}
1389
1389
    if( protocol->startJob() )
1390
1390
    {
1391
1391
        showJobStart(cmdline);
1392
 
        connect( protocol, SIGNAL(jobFinished(bool, int)),
 
1392
        connect( protocol, SIGNAL(jobFinished(bool,int)),
1393
1393
                 this,     SLOT(slotJobFinished()) );
1394
1394
    }
1395
1395
}
1465
1465
    if( protocol->startJob() )
1466
1466
    {
1467
1467
        showJobStart(cmdline);
1468
 
        connect( protocol, SIGNAL(jobFinished(bool, int)),
 
1468
        connect( protocol, SIGNAL(jobFinished(bool,int)),
1469
1469
                 this,     SLOT(slotJobFinished()) );
1470
1470
    }
1471
1471
}
1492
1492
    if( protocol->startJob() )
1493
1493
    {
1494
1494
        showJobStart(cmdline);
1495
 
        connect( protocol, SIGNAL(jobFinished(bool, int)),
 
1495
        connect( protocol, SIGNAL(jobFinished(bool,int)),
1496
1496
                 this,     SLOT(slotJobFinished()) );
1497
1497
    }
1498
1498
}
1519
1519
    if( protocol->startJob() )
1520
1520
    {
1521
1521
        showJobStart(cmdline);
1522
 
        connect( protocol, SIGNAL(jobFinished(bool, int)),
 
1522
        connect( protocol, SIGNAL(jobFinished(bool,int)),
1523
1523
                 this,     SLOT(slotJobFinished()) );
1524
1524
    }
1525
1525
}
1573
1573
        if( protocol->startJob() )
1574
1574
        {
1575
1575
            showJobStart(cmdline);
1576
 
            connect( protocol, SIGNAL(jobFinished(bool, int)),
 
1576
            connect( protocol, SIGNAL(jobFinished(bool,int)),
1577
1577
                     this,     SLOT(slotJobFinished()) );
1578
1578
        }
1579
1579
    }