summaryrefslogtreecommitdiffstats
path: root/kompare/libdialogpages/diffpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kompare/libdialogpages/diffpage.cpp')
-rw-r--r--kompare/libdialogpages/diffpage.cpp142
1 files changed, 71 insertions, 71 deletions
diff --git a/kompare/libdialogpages/diffpage.cpp b/kompare/libdialogpages/diffpage.cpp
index 7f805c5b..0423f1a5 100644
--- a/kompare/libdialogpages/diffpage.cpp
+++ b/kompare/libdialogpages/diffpage.cpp
@@ -15,15 +15,15 @@
**
***************************************************************************/
-#include <qcheckbox.h>
-#include <qhgroupbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qradiobutton.h>
-#include <qspinbox.h>
-#include <qtooltip.h>
-#include <qvbuttongroup.h>
-#include <qwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqhgroupbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqradiobutton.h>
+#include <tqspinbox.h>
+#include <tqtooltip.h>
+#include <tqvbuttongroup.h>
+#include <tqwhatsthis.h>
#include <kapplication.h>
#include <kcombobox.h>
@@ -42,7 +42,7 @@
#include "diffpage.h"
-DiffPage::DiffPage( QWidget* parent ) : PageBase( parent ),
+DiffPage::DiffPage( TQWidget* parent ) : PageBase( parent ),
m_ignoreRegExpDialog( 0 )
{
addDiffTab();
@@ -146,7 +146,7 @@ void DiffPage::setDefaults()
m_ignoreTabExpansionCheckBox->setChecked( false );
m_ignoreRegExpCheckBox->setChecked( false );
- m_ignoreRegExpEdit->setText( QString::null );
+ m_ignoreRegExpEdit->setText( TQString::null );
m_locSpinBox->setValue( 3 );
@@ -160,7 +160,7 @@ void DiffPage::setDefaults()
void DiffPage::slotShowRegExpEditor()
{
if ( ! m_ignoreRegExpDialog )
- m_ignoreRegExpDialog = KParts::ComponentFactory::createInstanceFromQuery<QDialog>( "KRegExpEditor/KRegExpEditor", QString::null, this );
+ m_ignoreRegExpDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( "KRegExpEditor/KRegExpEditor", TQString::null, this );
KRegExpEditorInterface *iface = static_cast<KRegExpEditorInterface *>( m_ignoreRegExpDialog->qt_cast( "KRegExpEditorInterface" ) );
@@ -202,18 +202,18 @@ void DiffPage::slotExcludeFileToggled( bool on )
void DiffPage::addDiffTab()
{
- QWidget* page = new QWidget( this );
- QVBoxLayout* layout = new QVBoxLayout( page );
+ TQWidget* page = new TQWidget( this );
+ TQVBoxLayout* layout = new TQVBoxLayout( page );
layout->setSpacing( KDialog::spacingHint() );
layout->setMargin( KDialog::marginHint() );
// add diff program selector
- m_diffProgramGroup = new QVButtonGroup( i18n( "Diff Program" ), page );
+ m_diffProgramGroup = new TQVButtonGroup( i18n( "Diff Program" ), page );
layout->addWidget( m_diffProgramGroup );
m_diffProgramGroup->setMargin( KDialog::marginHint() );
m_diffURLRequester = new KURLRequester( m_diffProgramGroup, "diffURLRequester" );
- QWhatsThis::add( m_diffURLRequester, 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." ) );
+ TQWhatsThis::add( m_diffURLRequester, 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." ) );
layout->addStretch( 1 );
page->setMinimumSize( sizeHintForWidget( page ) );
@@ -223,34 +223,34 @@ void DiffPage::addDiffTab()
void DiffPage::addFormatTab()
{
- QWidget* page = new QWidget( this );
- QVBoxLayout* layout = new QVBoxLayout( page );
+ TQWidget* page = new TQWidget( this );
+ TQVBoxLayout* layout = new TQVBoxLayout( page );
layout->setSpacing( KDialog::spacingHint() );
layout->setMargin( KDialog::marginHint() );
// add diff modes
- m_modeButtonGroup = new QVButtonGroup( i18n( "Output Format" ), page );
- QWhatsThis::add( m_modeButtonGroup, 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." ) );
+ m_modeButtonGroup = new TQVButtonGroup( i18n( "Output Format" ), page );
+ TQWhatsThis::add( m_modeButtonGroup, 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." ) );
layout->addWidget( m_modeButtonGroup );
m_modeButtonGroup->setMargin( KDialog::marginHint() );
- QRadioButton* radioButton;
- radioButton = new QRadioButton( i18n( "Context" ), m_modeButtonGroup );
- radioButton = new QRadioButton( i18n( "Ed" ), m_modeButtonGroup );
+ TQRadioButton* radioButton;
+ radioButton = new TQRadioButton( i18n( "Context" ), m_modeButtonGroup );
+ radioButton = new TQRadioButton( i18n( "Ed" ), m_modeButtonGroup );
radioButton->setEnabled( false );
- radioButton = new QRadioButton( i18n( "Normal" ), m_modeButtonGroup );
- radioButton = new QRadioButton( i18n( "RCS" ), m_modeButtonGroup );
+ radioButton = new TQRadioButton( i18n( "Normal" ), m_modeButtonGroup );
+ radioButton = new TQRadioButton( i18n( "RCS" ), m_modeButtonGroup );
radioButton->setEnabled( false );
- radioButton = new QRadioButton( i18n( "Unified" ), m_modeButtonGroup );
+ radioButton = new TQRadioButton( i18n( "Unified" ), m_modeButtonGroup );
// #lines of context (loc)
- QHGroupBox* groupBox = new QHGroupBox( i18n( "Lines of Context" ), page );
+ TQHGroupBox* groupBox = new TQHGroupBox( i18n( "Lines of Context" ), page );
layout->addWidget( groupBox );
groupBox->setMargin( KDialog::marginHint() );
- QLabel* label = new QLabel( i18n( "Number of context lines:" ), groupBox );
- m_locSpinBox = new QSpinBox( 0, 100, 1, groupBox );
- QWhatsThis::add( m_locSpinBox, 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." ) );
+ TQLabel* label = new TQLabel( i18n( "Number of context lines:" ), groupBox );
+ m_locSpinBox = new TQSpinBox( 0, 100, 1, groupBox );
+ TQWhatsThis::add( m_locSpinBox, 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." ) );
label->setBuddy( m_locSpinBox );
layout->addStretch( 1 );
@@ -261,56 +261,56 @@ void DiffPage::addFormatTab()
void DiffPage::addOptionsTab()
{
- QWidget* page = new QWidget( this );
- QVBoxLayout* layout = new QVBoxLayout( page );
+ TQWidget* page = new TQWidget( this );
+ TQVBoxLayout* layout = new TQVBoxLayout( page );
layout->setSpacing( KDialog::spacingHint() );
layout->setMargin( KDialog::marginHint() );
// add diff options
- QVButtonGroup* optionButtonGroup = new QVButtonGroup( i18n( "General" ), page );
+ TQVButtonGroup* optionButtonGroup = new TQVButtonGroup( i18n( "General" ), page );
layout->addWidget( optionButtonGroup );
optionButtonGroup->setMargin( KDialog::marginHint() );
- m_smallerCheckBox = new QCheckBox( i18n( "&Look for smaller changes" ), optionButtonGroup );
- QToolTip::add( m_smallerCheckBox, i18n( "This corresponds to the -d diff option." ) );
- m_largerCheckBox = new QCheckBox( i18n( "O&ptimize for large files" ), optionButtonGroup );
- QToolTip::add( m_largerCheckBox, i18n( "This corresponds to the -H diff option." ) );
- m_caseCheckBox = new QCheckBox( i18n( "&Ignore changes in case" ), optionButtonGroup );
- QToolTip::add( m_caseCheckBox, i18n( "This corresponds to the -i diff option." ) );
+ m_smallerCheckBox = new TQCheckBox( i18n( "&Look for smaller changes" ), optionButtonGroup );
+ TQToolTip::add( m_smallerCheckBox, i18n( "This corresponds to the -d diff option." ) );
+ m_largerCheckBox = new TQCheckBox( i18n( "O&ptimize for large files" ), optionButtonGroup );
+ TQToolTip::add( m_largerCheckBox, i18n( "This corresponds to the -H diff option." ) );
+ m_caseCheckBox = new TQCheckBox( i18n( "&Ignore changes in case" ), optionButtonGroup );
+ TQToolTip::add( m_caseCheckBox, i18n( "This corresponds to the -i diff option." ) );
- QHBoxLayout* groupLayout = new QHBoxLayout( layout, -1, "regexp_horizontal_layout" );
+ TQHBoxLayout* groupLayout = new TQHBoxLayout( layout, -1, "regexp_horizontal_layout" );
groupLayout->setMargin( KDialog::marginHint() );
- m_ignoreRegExpCheckBox = new QCheckBox( i18n( "Ignore regexp:" ), page );
- QToolTip::add( m_ignoreRegExpCheckBox, i18n( "This option corresponds to the -I diff option." ) );
+ m_ignoreRegExpCheckBox = new TQCheckBox( i18n( "Ignore regexp:" ), page );
+ TQToolTip::add( m_ignoreRegExpCheckBox, i18n( "This option corresponds to the -I diff option." ) );
groupLayout->addWidget( m_ignoreRegExpCheckBox );
- m_ignoreRegExpEdit = new KLineEdit( QString::null, page, "regexplineedit" );
- QToolTip::add( m_ignoreRegExpEdit, i18n( "Add the regular expression here that you want to use\nto ignore lines that match it." ) );
+ m_ignoreRegExpEdit = new KLineEdit( TQString::null, page, "regexplineedit" );
+ TQToolTip::add( m_ignoreRegExpEdit, i18n( "Add the regular expression here that you want to use\nto ignore lines that match it." ) );
groupLayout->addWidget( m_ignoreRegExpEdit );
if ( !KTrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty() )
{
// Ok editor is available, use it
- QButton* ignoreRegExpEditButton = new QPushButton( i18n( "&Edit..." ), page, "regexp_editor_button" );
- QToolTip::add( ignoreRegExpEditButton, i18n( "Clicking this will open a regular expression dialog where\nyou can graphically create regular expressions." ) );
+ TQButton* ignoreRegExpEditButton = new TQPushButton( i18n( "&Edit..." ), page, "regexp_editor_button" );
+ TQToolTip::add( ignoreRegExpEditButton, i18n( "Clicking this will open a regular expression dialog where\nyou can graphically create regular expressions." ) );
groupLayout->addWidget( ignoreRegExpEditButton );
- connect( ignoreRegExpEditButton, SIGNAL( clicked() ), this, SLOT( slotShowRegExpEditor() ) );
+ connect( ignoreRegExpEditButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotShowRegExpEditor() ) );
}
- QVButtonGroup* moreOptionButtonGroup = new QVButtonGroup( i18n( "Whitespace" ), page );
+ TQVButtonGroup* moreOptionButtonGroup = new TQVButtonGroup( i18n( "Whitespace" ), page );
layout->addWidget( moreOptionButtonGroup );
moreOptionButtonGroup->setMargin( KDialog::marginHint() );
- m_tabsCheckBox = new QCheckBox( i18n( "E&xpand tabs to spaces in output" ), moreOptionButtonGroup );
- QToolTip::add( m_tabsCheckBox, i18n( "This option corresponds to the -t diff option." ) );
- m_linesCheckBox = new QCheckBox( i18n( "I&gnore added or removed empty lines" ), moreOptionButtonGroup );
- QToolTip::add( m_linesCheckBox, i18n( "This option corresponds to the -B diff option." ) );
- m_whitespaceCheckBox = new QCheckBox( i18n( "Ig&nore changes in the amount of whitespace" ), moreOptionButtonGroup );
- QToolTip::add( m_whitespaceCheckBox, i18n( "This option corresponds to the -b diff option." ) );
- m_allWhitespaceCheckBox = new QCheckBox( i18n( "Ign&ore all whitespace" ), moreOptionButtonGroup );
- QToolTip::add( m_allWhitespaceCheckBox, i18n( "This option corresponds to the -w diff option." ) );
- m_ignoreTabExpansionCheckBox = new QCheckBox( i18n( "Igno&re changes due to tab expansion" ), moreOptionButtonGroup );
- QToolTip::add( m_ignoreTabExpansionCheckBox, i18n( "This option corresponds to the -E diff option." ) );
+ m_tabsCheckBox = new TQCheckBox( i18n( "E&xpand tabs to spaces in output" ), moreOptionButtonGroup );
+ TQToolTip::add( m_tabsCheckBox, i18n( "This option corresponds to the -t diff option." ) );
+ m_linesCheckBox = new TQCheckBox( i18n( "I&gnore added or removed empty lines" ), moreOptionButtonGroup );
+ TQToolTip::add( m_linesCheckBox, i18n( "This option corresponds to the -B diff option." ) );
+ m_whitespaceCheckBox = new TQCheckBox( i18n( "Ig&nore changes in the amount of whitespace" ), moreOptionButtonGroup );
+ TQToolTip::add( m_whitespaceCheckBox, i18n( "This option corresponds to the -b diff option." ) );
+ m_allWhitespaceCheckBox = new TQCheckBox( i18n( "Ign&ore all whitespace" ), moreOptionButtonGroup );
+ TQToolTip::add( m_allWhitespaceCheckBox, i18n( "This option corresponds to the -w diff option." ) );
+ m_ignoreTabExpansionCheckBox = new TQCheckBox( i18n( "Igno&re changes due to tab expansion" ), moreOptionButtonGroup );
+ TQToolTip::add( m_ignoreTabExpansionCheckBox, i18n( "This option corresponds to the -E diff option." ) );
layout->addStretch( 1 );
page->setMinimumSize( sizeHintForWidget( page ) );
@@ -320,31 +320,31 @@ void DiffPage::addOptionsTab()
void DiffPage::addExcludeTab()
{
- QWidget* page = new QWidget( this );
- QVBoxLayout* layout = new QVBoxLayout( page );
+ TQWidget* page = new TQWidget( this );
+ TQVBoxLayout* layout = new TQVBoxLayout( page );
layout->setSpacing( KDialog::spacingHint() );
layout->setMargin( KDialog::marginHint() );
- QHGroupBox* excludeFilePatternGroupBox = new QHGroupBox( i18n( "File Pattern to Exclude" ), page );
- m_excludeFilePatternCheckBox = new QCheckBox( "", excludeFilePatternGroupBox );
- QToolTip::add( m_excludeFilePatternCheckBox, i18n( "If this is checked you can enter a shell pattern in the text box on the right or select entries from the list." ) );
+ TQHGroupBox* excludeFilePatternGroupBox = new TQHGroupBox( i18n( "File Pattern to Exclude" ), page );
+ m_excludeFilePatternCheckBox = new TQCheckBox( "", excludeFilePatternGroupBox );
+ TQToolTip::add( m_excludeFilePatternCheckBox, 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_excludeFilePatternEditListBox = new KEditListBox( excludeFilePatternGroupBox, "exclude_file_pattern_editlistbox", false, KEditListBox::Add|KEditListBox::Remove );
- QToolTip::add( m_excludeFilePatternEditListBox, i18n( "Here you can enter or remove a shell pattern or select one or more entries from the list." ) );
+ TQToolTip::add( m_excludeFilePatternEditListBox, i18n( "Here you can enter or remove a shell pattern or select one or more entries from the list." ) );
layout->addWidget( excludeFilePatternGroupBox );
- connect( m_excludeFilePatternCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotExcludeFilePatternToggled(bool)));
+ connect( m_excludeFilePatternCheckBox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotExcludeFilePatternToggled(bool)));
- QHGroupBox* excludeFileNameGroupBox = new QHGroupBox( i18n( "File with Filenames to Exclude" ), page );
- m_excludeFileCheckBox = new QCheckBox( "", excludeFileNameGroupBox );
- QToolTip::add( m_excludeFileCheckBox, i18n( "If this is checked you can enter a filename in the combo box on the right." ) );
+ TQHGroupBox* excludeFileNameGroupBox = new TQHGroupBox( i18n( "File with Filenames to Exclude" ), page );
+ m_excludeFileCheckBox = new TQCheckBox( "", excludeFileNameGroupBox );
+ TQToolTip::add( m_excludeFileCheckBox, i18n( "If this is checked you can enter a filename in the combo box on the right." ) );
m_excludeFileURLComboBox = new KURLComboBox( KURLComboBox::Files, true, excludeFileNameGroupBox, "exclude_file_urlcombo" );
- QToolTip::add( m_excludeFileURLComboBox, i18n( "Here you can enter the URL of a file with shell patterns to ignore during the comparison of the folders." ) );
+ TQToolTip::add( m_excludeFileURLComboBox, i18n( "Here you can enter the URL of a file with shell patterns to ignore during the comparison of the folders." ) );
m_excludeFileURLRequester = new KURLRequester( m_excludeFileURLComboBox, excludeFileNameGroupBox, "exclude_file_name_urlrequester" );
- QToolTip::add( m_excludeFileURLRequester, 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." ) );
+ TQToolTip::add( m_excludeFileURLRequester, 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." ) );
layout->addWidget( excludeFileNameGroupBox );
- connect( m_excludeFileCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotExcludeFileToggled(bool)));
+ connect( m_excludeFileCheckBox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotExcludeFileToggled(bool)));
layout->addStretch( 1 );
page->setMinimumSize( sizeHintForWidget( page ) );