m_diffURLRequester->setWhatsThis(i18n("You can select a different diff program here. On Solaris the standard diff program does not support all the options that the GNU version does. This way you can select that version."));
bgLayout->addWidget(m_diffURLRequester);
layout->addStretch(1);
page->setMinimumSize(sizeHintForWidget(page));
m_tabWidget->addTab(page,i18n("Diff"));
}
voidDiffPage::addFormatTab()
{
QWidget*page=newQWidget(this);
QVBoxLayout*layout=newQVBoxLayout(page);
layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint());
// add diff modes
m_modeButtonGroup=newQButtonGroup(page);
QGroupBox*box=newQGroupBox(page);
box->setWhatsThis(i18n("Select the format of the output generated by diff. Unified is the one that is used most frequently because it is very readable. The KDE developers like this format the best so use it for sending patches."));
groupBox->setWhatsThis(i18n("The number of context lines is normally 2 or 3. This makes the diff readable and applicable in most cases. More than 3 lines will only bloat the diff unnecessarily."));
//groupBox->setMargin( KDialog::marginHint() );
QLabel*label=newQLabel(i18n("Number of context lines:"));
groupLayout->addWidget(label);
label->setWhatsThis(i18n("The number of context lines is normally 2 or 3. This makes the diff readable and applicable in most cases. More than 3 lines will only bloat the diff unnecessarily."));
m_locSpinBox=newQSpinBox(groupBox);
m_locSpinBox->setRange(0,100);
groupLayout->addWidget(m_locSpinBox);
m_locSpinBox->setWhatsThis(i18n("The number of context lines is normally 2 or 3. This makes the diff readable and applicable in most cases. More than 3 lines will only bloat the diff unnecessarily."));
m_newFilesCheckBox=newQCheckBox(i18n("&Treat new files as empty"),optionButtonGroup);
m_newFilesCheckBox->setToolTip(i18n("This option corresponds to the -N diff option."));
m_newFilesCheckBox->setWhatsThis(i18n("With this option enabled diff will treat a file that only exists in one of the directories as empty in the other directory. This means that the file is compared with an empty file and because of this will appear as one big insertion or deletion."));
bgLayout->addWidget(m_newFilesCheckBox);
m_smallerCheckBox=newQCheckBox(i18n("&Look for smaller changes"),optionButtonGroup);
m_smallerCheckBox->setToolTip(i18n("This corresponds to the -d diff option."));
m_smallerCheckBox->setWhatsThis(i18n("With this option enabled diff will try a little harder (at the cost of more memory) to find fewer changes."));
bgLayout->addWidget(m_smallerCheckBox);
m_largerCheckBox=newQCheckBox(i18n("O&ptimize for large files"),optionButtonGroup);
m_largerCheckBox->setToolTip(i18n("This corresponds to the -H diff option."));
m_largerCheckBox->setWhatsThis(i18n("This option lets diff makes better diffs when using large files. The definition of large is nowhere to be found though."));
bgLayout->addWidget(m_largerCheckBox);
m_caseCheckBox=newQCheckBox(i18n("&Ignore changes in case"),optionButtonGroup);
m_caseCheckBox->setToolTip(i18n("This corresponds to the -i diff option."));
m_caseCheckBox->setWhatsThis(i18n("With this option to ignore changes in case enabled, diff will not indicate a difference when something in one file is changed into SoMEthing in the other file."));
m_ignoreRegExpCheckBox->setToolTip(i18n("This option corresponds to the -I diff option."));
m_ignoreRegExpCheckBox->setWhatsThis(i18n("When this checkbox is enabled, an option to diff is given that will make diff ignore lines that match the regular expression."));
ignoreRegExpEditButton->setToolTip(i18n("Clicking this will open a regular expression dialog where\nyou can graphically create regular expressions."));
m_tabsCheckBox=newQCheckBox(i18n("E&xpand tabs to spaces in output"),moreOptionButtonGroup);
m_tabsCheckBox->setToolTip(i18n("This option corresponds to the -t diff option."));
m_tabsCheckBox->setWhatsThis(i18n("This option does not always produce the right result. Due to this expansion Kompare may have problems applying the change to the destination file."));
bgLayout->addWidget(m_tabsCheckBox);
m_linesCheckBox=newQCheckBox(i18n("I&gnore added or removed empty lines"),moreOptionButtonGroup);
m_linesCheckBox->setToolTip(i18n("This option corresponds to the -B diff option."));
m_linesCheckBox->setWhatsThis(i18n("This can be very useful in situations where code has been reorganized and empty lines have been added or removed to improve legibility."));
bgLayout->addWidget(m_linesCheckBox);
m_whitespaceCheckBox=newQCheckBox(i18n("Ig&nore changes in the amount of whitespace"),moreOptionButtonGroup);
m_whitespaceCheckBox->setToolTip(i18n("This option corresponds to the -b diff option."));
m_whitespaceCheckBox->setWhatsThis(i18n("If you are uninterested in differences arising due to, for example, changes in indentation, then use this option."));
bgLayout->addWidget(m_whitespaceCheckBox);
m_allWhitespaceCheckBox=newQCheckBox(i18n("Ign&ore all whitespace"),moreOptionButtonGroup);
m_allWhitespaceCheckBox->setToolTip(i18n("This option corresponds to the -w diff option."));
m_allWhitespaceCheckBox->setWhatsThis(i18n("This is useful for seeing the significant changes without being overwhelmed by all the white space changes."));
bgLayout->addWidget(m_allWhitespaceCheckBox);
m_ignoreTabExpansionCheckBox=newQCheckBox(i18n("Igno&re changes due to tab expansion"),moreOptionButtonGroup);
m_ignoreTabExpansionCheckBox->setToolTip(i18n("This option corresponds to the -E diff option."));
m_ignoreTabExpansionCheckBox->setWhatsThis(i18n("If there is a change because tabs have been expanded into spaces in the other file, then this option will make sure that these do not show up. Kompare currently has some problems applying such changes so be careful when you use this option."));
m_excludeFilePatternGroupBox->setTitle(i18n("File Pattern to Exclude"));
m_excludeFilePatternGroupBox->setToolTip(i18n("If this is checked you can enter a shell pattern in the text box on the right or select entries from the list."));
m_excludeFileURLComboBox->setToolTip(i18n("Here you can enter the URL of a file with shell patterns to ignore during the comparison of the folders."));
m_excludeFileURLRequester->setToolTip(i18n("Any file you select in the dialog that pops up when you click it will be put in the dialog to the left of this button."));