Changeset View
Changeset View
Standalone View
Standalone View
krusader/Synchronizer/synchronizergui.cpp
Show First 20 Lines • Show All 518 Lines • ▼ Show 20 Line(s) | 137 | { | |||
---|---|---|---|---|---|
519 | btnCloseSync->setText(i18n("Close")); | 519 | btnCloseSync->setText(i18n("Close")); | ||
520 | btnCloseSync->setIcon(Icon("dialog-close")); | 520 | btnCloseSync->setIcon(Icon("dialog-close")); | ||
521 | buttons->addWidget(btnCloseSync); | 521 | buttons->addWidget(btnCloseSync); | ||
522 | 522 | | |||
523 | synchGrid->addLayout(buttons, 1, 0); | 523 | synchGrid->addLayout(buttons, 1, 0); | ||
524 | 524 | | |||
525 | /* =============================== Connect table ================================ */ | 525 | /* =============================== Connect table ================================ */ | ||
526 | 526 | | |||
527 | connect(syncList, SIGNAL(itemRightClicked(QTreeWidgetItem*,QPoint,int)), | 527 | connect(syncList, &KrTreeWidget::itemRightClicked, this, &SynchronizerGUI::rightMouseClicked); | ||
528 | this, SLOT(rightMouseClicked(QTreeWidgetItem*,QPoint))); | 528 | connect(syncList, &KrTreeWidget::itemActivated, this, &SynchronizerGUI::doubleClicked); | ||
529 | connect(syncList, SIGNAL(itemActivated(QTreeWidgetItem*,int)), | | |||
530 | this, SLOT(doubleClicked(QTreeWidgetItem*))); | | |||
531 | | ||||
532 | connect(profileManager, SIGNAL(loadFromProfile(QString)), this, SLOT(loadFromProfile(QString))); | | |||
533 | connect(profileManager, SIGNAL(saveToProfile(QString)), this, SLOT(saveToProfile(QString))); | | |||
534 | | ||||
535 | connect(btnSwapSides, SIGNAL(clicked()), this, SLOT(swapSides())); | | |||
536 | connect(btnCompareDirs, SIGNAL(clicked()), this, SLOT(compare())); | | |||
537 | connect(btnStopComparing, SIGNAL(clicked()), this, SLOT(stop())); | | |||
538 | connect(btnFeedToListBox, SIGNAL(clicked()), this, SLOT(feedToListBox())); | | |||
539 | connect(btnSynchronize, SIGNAL(clicked()), this, SLOT(synchronize())); | | |||
540 | connect(btnScrollResults, SIGNAL(toggled(bool)), this, SLOT(setScrolling(bool))); | | |||
541 | connect(btnCloseSync, SIGNAL(clicked()), this, SLOT(closeDialog())); | | |||
542 | | ||||
543 | connect(cbSubdirs, SIGNAL(toggled(bool)), this, SLOT(subdirsChecked(bool))); | | |||
544 | connect(cbAsymmetric, SIGNAL(toggled(bool)), this, SLOT(setPanelLabels())); | | |||
545 | | ||||
546 | connect(&synchronizer, SIGNAL(comparedFileData(SynchronizerFileItem*)), this, | | |||
547 | SLOT(addFile(SynchronizerFileItem*))); | | |||
548 | connect(&synchronizer, SIGNAL(markChanged(SynchronizerFileItem*,bool)), this, | | |||
549 | SLOT(markChanged(SynchronizerFileItem*,bool))); | | |||
550 | connect(&synchronizer, SIGNAL(statusInfo(QString)), this, SLOT(statusInfo(QString))); | | |||
551 | | ||||
552 | connect(btnLeftToRight, SIGNAL(toggled(bool)), this, SLOT(refresh())); | | |||
553 | connect(btnEquals, SIGNAL(toggled(bool)), this, SLOT(refresh())); | | |||
554 | connect(btnDifferents, SIGNAL(toggled(bool)), this, SLOT(refresh())); | | |||
555 | connect(btnRightToLeft, SIGNAL(toggled(bool)), this, SLOT(refresh())); | | |||
556 | connect(btnDeletable, SIGNAL(toggled(bool)), this, SLOT(refresh())); | | |||
557 | connect(btnDuplicates, SIGNAL(toggled(bool)), this, SLOT(refresh())); | | |||
558 | connect(btnSingles, SIGNAL(toggled(bool)), this, SLOT(refresh())); | | |||
559 | | ||||
560 | connect(fileFilter, SIGNAL(currentTextChanged(QString)), this, SLOT(connectFilters(QString))); | | |||
561 | connect(generalFilter->searchFor, SIGNAL(currentTextChanged(QString)), this, SLOT(connectFilters(QString))); | | |||
562 | connect(generalFilter->searchFor, SIGNAL(currentTextChanged(QString)), this, SLOT(setCompletion())); | | |||
563 | connect(generalFilter->dontSearchIn, &KURLListRequester::checkValidity, | | |||
564 | this, &SynchronizerGUI::checkExcludeURLValidity); | | |||
565 | 529 | | |||
566 | connect(profileManager, SIGNAL(loadFromProfile(QString)), filterTabs, SLOT(loadFromProfile(QString))); | 530 | connect(profileManager, &ProfileManager::loadFromProfile, this, &SynchronizerGUI::loadFromProfile); | ||
567 | connect(profileManager, SIGNAL(saveToProfile(QString)), filterTabs, SLOT(saveToProfile(QString))); | 531 | connect(profileManager, &ProfileManager::saveToProfile, this, &SynchronizerGUI::saveToProfile); | ||
532 | | ||||
533 | connect(btnSwapSides, &QPushButton::clicked, this, &SynchronizerGUI::swapSides); | ||||
534 | connect(btnCompareDirs, &QPushButton::clicked, this, &SynchronizerGUI::compare); | ||||
535 | connect(btnStopComparing, &QPushButton::clicked, this, &SynchronizerGUI::stop); | ||||
536 | connect(btnFeedToListBox, &QPushButton::clicked, this, &SynchronizerGUI::feedToListBox); | ||||
537 | connect(btnSynchronize, &QPushButton::clicked, this, &SynchronizerGUI::synchronize); | ||||
538 | connect(btnScrollResults, &QPushButton::toggled, this, &SynchronizerGUI::setScrolling); | ||||
539 | connect(btnCloseSync, &QPushButton::clicked, this, &SynchronizerGUI::closeDialog); | ||||
540 | | ||||
541 | connect(cbSubdirs, &QCheckBox::toggled, this, &SynchronizerGUI::subdirsChecked); | ||||
542 | connect(cbAsymmetric, &QCheckBox::toggled, this, &SynchronizerGUI::setPanelLabels); | ||||
543 | | ||||
544 | connect(&synchronizer, &Synchronizer::comparedFileData, this, &SynchronizerGUI::addFile); | ||||
545 | connect(&synchronizer, &Synchronizer::markChanged, this, &SynchronizerGUI::markChanged); | ||||
546 | connect(&synchronizer, &Synchronizer::statusInfo, this, &SynchronizerGUI::statusInfo); | ||||
547 | | ||||
548 | connect(btnLeftToRight, &QPushButton::toggled, this, &SynchronizerGUI::refresh); | ||||
549 | connect(btnEquals, &QPushButton::toggled, this, &SynchronizerGUI::refresh); | ||||
550 | connect(btnDifferents, &QPushButton::toggled, this, &SynchronizerGUI::refresh); | ||||
551 | connect(btnRightToLeft, &QPushButton::toggled, this, &SynchronizerGUI::refresh); | ||||
552 | connect(btnDeletable, &QPushButton::toggled, this, &SynchronizerGUI::refresh); | ||||
553 | connect(btnDuplicates, &QPushButton::toggled, this, &SynchronizerGUI::refresh); | ||||
554 | connect(btnSingles, &QPushButton::toggled, this, &SynchronizerGUI::refresh); | ||||
555 | | ||||
556 | connect(fileFilter, &KHistoryComboBox::currentTextChanged, this, &SynchronizerGUI::connectFilters); | ||||
557 | connect(generalFilter->searchFor, &KHistoryComboBox::currentTextChanged, this, &SynchronizerGUI::connectFilters); | ||||
558 | connect(generalFilter->searchFor, &KHistoryComboBox::currentTextChanged, this, &SynchronizerGUI::setCompletion); | ||||
559 | connect(generalFilter->dontSearchIn, &KURLListRequester::checkValidity, this, &SynchronizerGUI::checkExcludeURLValidity); | ||||
560 | | ||||
561 | connect(profileManager, &ProfileManager::loadFromProfile, filterTabs, &FilterTabs::loadFromProfile); | ||||
562 | connect(profileManager, &ProfileManager::saveToProfile, filterTabs, &FilterTabs::saveToProfile); | ||||
568 | 563 | | |||
569 | setPanelLabels(); | 564 | setPanelLabels(); | ||
570 | setCompletion(); | 565 | setCompletion(); | ||
571 | 566 | | |||
572 | /* =============================== Loading the colors ================================ */ | 567 | /* =============================== Loading the colors ================================ */ | ||
573 | 568 | | |||
574 | KConfigGroup gc(krConfig, "Colors"); | 569 | KConfigGroup gc(krConfig, "Colors"); | ||
575 | 570 | | |||
▲ Show 20 Lines • Show All 1053 Lines • Show Last 20 Lines |