diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kate/part/katedialogs.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/part/katedialogs.cpp')
-rw-r--r-- | kate/part/katedialogs.cpp | 692 |
1 files changed, 346 insertions, 346 deletions
diff --git a/kate/part/katedialogs.cpp b/kate/part/katedialogs.cpp index 91da42e8f..d3a481856 100644 --- a/kate/part/katedialogs.cpp +++ b/kate/part/katedialogs.cpp @@ -74,39 +74,39 @@ #include <kstandarddirs.h> #include <ktempfile.h> -#include <qbuttongroup.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qdialog.h> -#include <qdom.h> -#include <qfile.h> -#include <qgrid.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qheader.h> -#include <qhgroupbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qlineedit.h> -#include <qlistbox.h> -#include <qlistview.h> -#include <qmap.h> -#include <qobjectlist.h> -#include <qpainter.h> -#include <qpointarray.h> -#include <qptrcollection.h> -#include <qpushbutton.h> -#include <qradiobutton.h> -#include <qslider.h> -#include <qspinbox.h> -#include <qstringlist.h> -#include <qtabwidget.h> -#include <qtextcodec.h> -#include <qtoolbutton.h> -#include <qvbox.h> -#include <qvgroupbox.h> -#include <qwhatsthis.h> -#include <qwidgetstack.h> +#include <tqbuttongroup.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqdialog.h> +#include <tqdom.h> +#include <tqfile.h> +#include <tqgrid.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqheader.h> +#include <tqhgroupbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqlineedit.h> +#include <tqlistbox.h> +#include <tqlistview.h> +#include <tqmap.h> +#include <tqobjectlist.h> +#include <tqpainter.h> +#include <tqpointarray.h> +#include <tqptrcollection.h> +#include <tqpushbutton.h> +#include <tqradiobutton.h> +#include <tqslider.h> +#include <tqspinbox.h> +#include <tqstringlist.h> +#include <tqtabwidget.h> +#include <tqtextcodec.h> +#include <tqtoolbutton.h> +#include <tqvbox.h> +#include <tqvgroupbox.h> +#include <tqwhatsthis.h> +#include <tqwidgetstack.h> // trailing slash is important #define HLDOWNLOADPATH "http://kate.kde.org/syntax/" @@ -114,11 +114,11 @@ //END //BEGIN KateConfigPage -KateConfigPage::KateConfigPage ( QWidget *parent, const char *name ) +KateConfigPage::KateConfigPage ( TQWidget *parent, const char *name ) : Kate::ConfigPage (parent, name) , m_changed (false) { - connect (this, SIGNAL(changed()), this, SLOT(somethingHasChanged ())); + connect (this, TQT_SIGNAL(changed()), this, TQT_SLOT(somethingHasChanged ())); } KateConfigPage::~KateConfigPage () @@ -144,47 +144,47 @@ const int KateIndentConfigTab::flags[] = { KateDocumentConfig::cfIndentPastedText }; -KateIndentConfigTab::KateIndentConfigTab(QWidget *parent) +KateIndentConfigTab::KateIndentConfigTab(TQWidget *parent) : KateConfigPage(parent) { - QVBoxLayout *layout = new QVBoxLayout(this, 0, KDialog::spacingHint() ); + TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); int configFlags = KateDocumentConfig::global()->configFlags(); - QVGroupBox *gbAuto = new QVGroupBox(i18n("Automatic Indentation"), this); + TQVGroupBox *gbAuto = new TQVGroupBox(i18n("Automatic Indentation"), this); - QHBox *indentLayout = new QHBox(gbAuto); + TQHBox *indentLayout = new TQHBox(gbAuto); indentLayout->setSpacing(KDialog::spacingHint()); - QLabel *indentLabel = new QLabel(i18n("&Indentation mode:"), indentLayout); + TQLabel *indentLabel = new TQLabel(i18n("&Indentation mode:"), indentLayout); m_indentMode = new KComboBox (indentLayout); m_indentMode->insertStringList (KateAutoIndent::listModes()); indentLabel->setBuddy(m_indentMode); - m_configPage = new QPushButton(SmallIconSet("configure"), i18n("Configure..."), indentLayout); + m_configPage = new TQPushButton(SmallIconSet("configure"), i18n("Configure..."), indentLayout); - opt[5] = new QCheckBox(i18n("Insert leading Doxygen \"*\" when typing"), gbAuto); - opt[7] = new QCheckBox(i18n("Adjust indentation of code pasted from the clipboard"), gbAuto); + opt[5] = new TQCheckBox(i18n("Insert leading Doxygen \"*\" when typing"), gbAuto); + opt[7] = new TQCheckBox(i18n("Adjust indentation of code pasted from the clipboard"), gbAuto); - QVGroupBox *gbSpaces = new QVGroupBox(i18n("Indentation with Spaces"), this); - QVBox *spaceLayout = new QVBox(gbSpaces); - opt[0] = new QCheckBox(i18n("Use &spaces instead of tabs to indent"), spaceLayout ); - opt[6] = new QCheckBox(i18n("Emacs style mixed mode"), spaceLayout); + TQVGroupBox *gbSpaces = new TQVGroupBox(i18n("Indentation with Spaces"), this); + TQVBox *spaceLayout = new TQVBox(gbSpaces); + opt[0] = new TQCheckBox(i18n("Use &spaces instead of tabs to indent"), spaceLayout ); + opt[6] = new TQCheckBox(i18n("Emacs style mixed mode"), spaceLayout); indentationWidth = new KIntNumInput(KateDocumentConfig::global()->indentationWidth(), spaceLayout); indentationWidth->setRange(1, 16, 1, false); indentationWidth->setLabel(i18n("Number of spaces:"), AlignVCenter); - opt[1] = new QCheckBox(i18n("Keep indent &profile"), this); - opt[2] = new QCheckBox(i18n("&Keep extra spaces"), this); + opt[1] = new TQCheckBox(i18n("Keep indent &profile"), this); + opt[2] = new TQCheckBox(i18n("&Keep extra spaces"), this); - QVGroupBox *keys = new QVGroupBox(i18n("Keys to Use"), this); - opt[3] = new QCheckBox(i18n("&Tab key indents"), keys); - opt[4] = new QCheckBox(i18n("&Backspace key indents"), keys); + TQVGroupBox *keys = new TQVGroupBox(i18n("Keys to Use"), this); + opt[3] = new TQCheckBox(i18n("&Tab key indents"), keys); + opt[4] = new TQCheckBox(i18n("&Backspace key indents"), keys); - QRadioButton *rb1, *rb2, *rb3; - m_tabs = new QButtonGroup( 1, Qt::Horizontal, i18n("Tab Key Mode if Nothing Selected"), this ); + TQRadioButton *rb1, *rb2, *rb3; + m_tabs = new TQButtonGroup( 1, Qt::Horizontal, i18n("Tab Key Mode if Nothing Selected"), this ); m_tabs->setRadioButtonExclusive( true ); - m_tabs->insert( rb1=new QRadioButton( i18n("Insert indent &characters"), m_tabs ), 0 ); - m_tabs->insert( rb2=new QRadioButton( i18n("I&nsert tab character"), m_tabs ), 1 ); - m_tabs->insert( rb3=new QRadioButton( i18n("Indent current &line"), m_tabs ), 2 ); + m_tabs->insert( rb1=new TQRadioButton( i18n("Insert indent &characters"), m_tabs ), 0 ); + m_tabs->insert( rb2=new TQRadioButton( i18n("I&nsert tab character"), m_tabs ), 1 ); + m_tabs->insert( rb3=new TQRadioButton( i18n("Indent current &line"), m_tabs ), 2 ); opt[0]->setChecked(configFlags & flags[0]); opt[1]->setChecked(configFlags & flags[1]); @@ -205,28 +205,28 @@ KateIndentConfigTab::KateIndentConfigTab(QWidget *parent) layout->addStretch(); // What is this? help - QWhatsThis::add(opt[0], i18n( + TQWhatsThis::add(opt[0], i18n( "Check this if you want to indent with spaces rather than tabs.")); - QWhatsThis::add(opt[2], i18n( + TQWhatsThis::add(opt[2], i18n( "Indentations of more than the selected number of spaces will not be " "shortened.")); - QWhatsThis::add(opt[3], i18n( + TQWhatsThis::add(opt[3], i18n( "This allows the <b>Tab</b> key to be used to increase the indentation " "level.")); - QWhatsThis::add(opt[4], i18n( + TQWhatsThis::add(opt[4], i18n( "This allows the <b>Backspace</b> key to be used to decrease the " "indentation level.")); - QWhatsThis::add(opt[5], i18n( + TQWhatsThis::add(opt[5], i18n( "Automatically inserts a leading \"*\" while typing within a Doxygen " "style comment.")); - QWhatsThis::add( opt[6], i18n( + TQWhatsThis::add( opt[6], i18n( "Use a mix of tab and space characters for indentation.") ); - QWhatsThis::add( opt[7], i18n( + TQWhatsThis::add( opt[7], i18n( "If this option is selected, pasted code from the clipboard is indented. " "Triggering the <b>undo</b>-action removes the indentation.") ); - QWhatsThis::add(indentationWidth, i18n("The number of spaces to indent with.")); + TQWhatsThis::add(indentationWidth, i18n("The number of spaces to indent with.")); - QWhatsThis::add(m_configPage, i18n( + TQWhatsThis::add(m_configPage, i18n( "If this button is enabled, additional indenter specific options are " "available and can be configured in an extra dialog.") ); @@ -236,27 +236,27 @@ KateIndentConfigTab::KateIndentConfigTab(QWidget *parent) // after initial reload, connect the stuff for the changed () signal // - connect(m_indentMode, SIGNAL(activated(int)), this, SLOT(slotChanged())); - connect(m_indentMode, SIGNAL(activated(int)), this, SLOT(indenterSelected(int))); + connect(m_indentMode, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotChanged())); + connect(m_indentMode, TQT_SIGNAL(activated(int)), this, TQT_SLOT(indenterSelected(int))); - connect( opt[0], SIGNAL(toggled(bool)), this, SLOT(somethingToggled())); + connect( opt[0], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(somethingToggled())); - connect( opt[0], SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); - connect( opt[1], SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); - connect( opt[2], SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); - connect( opt[3], SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); - connect( opt[4], SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); - connect( opt[5], SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); - connect( opt[6], SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); - connect( opt[7], SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); + connect( opt[0], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) ); + connect( opt[1], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) ); + connect( opt[2], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) ); + connect( opt[3], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) ); + connect( opt[4], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) ); + connect( opt[5], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) ); + connect( opt[6], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) ); + connect( opt[7], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) ); - connect(indentationWidth, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); + connect(indentationWidth, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged())); - connect(rb1, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); - connect(rb2, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); - connect(rb3, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); + connect(rb1, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); + connect(rb2, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); + connect(rb3, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); - connect(m_configPage, SIGNAL(clicked()), this, SLOT(configPage())); + connect(m_configPage, TQT_SIGNAL(clicked()), this, TQT_SLOT(configPage())); } void KateIndentConfigTab::somethingToggled() { @@ -282,10 +282,10 @@ void KateIndentConfigTab::configPage() KDialogBase dlg(this, "indenter_config_dialog", true, i18n("Configure Indenter"), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Cancel, true); - QVBox *box = new QVBox(&dlg); + TQVBox *box = new TQVBox(&dlg); box->setSpacing( KDialog::spacingHint() ); dlg.setMainWidget(box); - new QLabel("<qt><b>" + KateAutoIndent::modeDescription(index) + "</b></qt>", box); + new TQLabel("<qt><b>" + KateAutoIndent::modeDescription(index) + "</b></qt>", box); new KSeparator(KSeparator::HLine, box); IndenterConfigPage* page = KateAutoIndent::configPage(box, index); @@ -293,7 +293,7 @@ void KateIndentConfigTab::configPage() if (!page) return; box->setStretchFactor(page, 1); - connect( &dlg, SIGNAL(okClicked()), page, SLOT(apply()) ); + connect( &dlg, TQT_SIGNAL(okClicked()), page, TQT_SLOT(apply()) ); dlg.resize(400, 300); dlg.exec(); @@ -347,68 +347,68 @@ void KateIndentConfigTab::reload () //BEGIN KateSelectConfigTab const int KateSelectConfigTab::flags[] = {}; -KateSelectConfigTab::KateSelectConfigTab(QWidget *parent) +KateSelectConfigTab::KateSelectConfigTab(TQWidget *parent) : KateConfigPage(parent) { int configFlags = KateDocumentConfig::global()->configFlags(); - QVBoxLayout *layout = new QVBoxLayout(this, 0, KDialog::spacingHint() ); + TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); - QVGroupBox *gbCursor = new QVGroupBox(i18n("Text Cursor Movement"), this); + TQVGroupBox *gbCursor = new TQVGroupBox(i18n("Text Cursor Movement"), this); - opt[0] = new QCheckBox(i18n("Smart ho&me and smart end"), gbCursor); + opt[0] = new TQCheckBox(i18n("Smart ho&me and smart end"), gbCursor); opt[0]->setChecked(configFlags & KateDocumentConfig::cfSmartHome); - connect(opt[0], SIGNAL(toggled(bool)), this, SLOT(slotChanged())); + connect(opt[0], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); - opt[1] = new QCheckBox(i18n("Wrap c&ursor"), gbCursor); + opt[1] = new TQCheckBox(i18n("Wrap c&ursor"), gbCursor); opt[1]->setChecked(configFlags & KateDocumentConfig::cfWrapCursor); - connect(opt[1], SIGNAL(toggled(bool)), this, SLOT(slotChanged())); + connect(opt[1], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); - e6 = new QCheckBox(i18n("&PageUp/PageDown moves cursor"), gbCursor); + e6 = new TQCheckBox(i18n("&PageUp/PageDown moves cursor"), gbCursor); e6->setChecked(KateDocumentConfig::global()->pageUpDownMovesCursor()); - connect(e6, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); + connect(e6, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); e4 = new KIntNumInput(KateViewConfig::global()->autoCenterLines(), gbCursor); e4->setRange(0, 1000000, 1, false); e4->setLabel(i18n("Autocenter cursor (lines):"), AlignVCenter); - connect(e4, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); + connect(e4, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged())); layout->addWidget(gbCursor); - QRadioButton *rb1, *rb2; + TQRadioButton *rb1, *rb2; - m_tabs = new QButtonGroup( 1, Qt::Horizontal, i18n("Selection Mode"), this ); + m_tabs = new TQButtonGroup( 1, Qt::Horizontal, i18n("Selection Mode"), this ); layout->add (m_tabs); m_tabs->setRadioButtonExclusive( true ); - m_tabs->insert( rb1=new QRadioButton( i18n("&Normal"), m_tabs ), 0 ); - m_tabs->insert( rb2=new QRadioButton( i18n("&Persistent"), m_tabs ), 1 ); + m_tabs->insert( rb1=new TQRadioButton( i18n("&Normal"), m_tabs ), 0 ); + m_tabs->insert( rb2=new TQRadioButton( i18n("&Persistent"), m_tabs ), 1 ); layout->addStretch(); - QWhatsThis::add(rb1, i18n( + TQWhatsThis::add(rb1, i18n( "Selections will be overwritten by typed text and will be lost on " "cursor movement.")); - QWhatsThis::add(rb2, i18n( + TQWhatsThis::add(rb2, i18n( "Selections will stay even after cursor movement and typing.")); - QWhatsThis::add(e4, i18n( + TQWhatsThis::add(e4, i18n( "Sets the number of lines to maintain visible above and below the " "cursor when possible.")); - QWhatsThis::add(opt[0], i18n( + TQWhatsThis::add(opt[0], i18n( "When selected, pressing the home key will cause the cursor to skip " "whitespace and go to the start of a line's text. " "The same applies for the end key.")); - QWhatsThis::add(opt[1], i18n( + TQWhatsThis::add(opt[1], i18n( "When on, moving the insertion cursor using the <b>Left</b> and " "<b>Right</b> keys will go on to previous/next line at beginning/end of " "the line, similar to most editors.<p>When off, the insertion cursor " "cannot be moved left of the line start, but it can be moved off the " "line end, which can be very handy for programmers.")); - QWhatsThis::add(e6, i18n("Selects whether the PageUp and PageDown keys should alter the vertical position of the cursor relative to the top of the view.")); + TQWhatsThis::add(e6, i18n("Selects whether the PageUp and PageDown keys should alter the vertical position of the cursor relative to the top of the view.")); reload (); @@ -417,8 +417,8 @@ KateSelectConfigTab::KateSelectConfigTab(QWidget *parent) // after initial reload, connect the stuff for the changed () signal // - connect(rb1, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); - connect(rb2, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); + connect(rb1, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); + connect(rb2, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); } void KateSelectConfigTab::apply () @@ -464,65 +464,65 @@ const int KateEditConfigTab::flags[] = {KateDocument::cfWordWrap, KateDocument::cfAutoBrackets, KateDocument::cfShowTabs, KateDocumentConfig::cfReplaceTabsDyn, KateDocumentConfig::cfRemoveTrailingDyn}; -KateEditConfigTab::KateEditConfigTab(QWidget *parent) +KateEditConfigTab::KateEditConfigTab(TQWidget *parent) : KateConfigPage(parent) { - QVBoxLayout *mainLayout = new QVBoxLayout(this, 0, KDialog::spacingHint() ); + TQVBoxLayout *mainLayout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); int configFlags = KateDocumentConfig::global()->configFlags(); - QVGroupBox *gbWhiteSpace = new QVGroupBox(i18n("Tabulators"), this); + TQVGroupBox *gbWhiteSpace = new TQVGroupBox(i18n("Tabulators"), this); - opt[3] = new QCheckBox( i18n("&Insert spaces instead of tabulators"), gbWhiteSpace ); + opt[3] = new TQCheckBox( i18n("&Insert spaces instead of tabulators"), gbWhiteSpace ); opt[3]->setChecked( configFlags & KateDocumentConfig::cfReplaceTabsDyn ); - connect( opt[3], SIGNAL(toggled(bool)), this, SLOT(slotChanged()) ); + connect( opt[3], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()) ); - opt[2] = new QCheckBox(i18n("&Show tabulators"), gbWhiteSpace); + opt[2] = new TQCheckBox(i18n("&Show tabulators"), gbWhiteSpace); opt[2]->setChecked(configFlags & flags[2]); - connect(opt[2], SIGNAL(toggled(bool)), this, SLOT(slotChanged())); + connect(opt[2], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); e2 = new KIntNumInput(KateDocumentConfig::global()->tabWidth(), gbWhiteSpace); e2->setRange(1, 16, 1, false); e2->setLabel(i18n("Tab width:"), AlignVCenter); - connect(e2, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); + connect(e2, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged())); mainLayout->addWidget(gbWhiteSpace); - QVGroupBox *gbWordWrap = new QVGroupBox(i18n("Static Word Wrap"), this); + TQVGroupBox *gbWordWrap = new TQVGroupBox(i18n("Static Word Wrap"), this); - opt[0] = new QCheckBox(i18n("Enable static &word wrap"), gbWordWrap); + opt[0] = new TQCheckBox(i18n("Enable static &word wrap"), gbWordWrap); opt[0]->setChecked(KateDocumentConfig::global()->wordWrap()); - connect(opt[0], SIGNAL(toggled(bool)), this, SLOT(slotChanged())); + connect(opt[0], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); - m_wwmarker = new QCheckBox( i18n("&Show static word wrap marker (if applicable)"), gbWordWrap ); + m_wwmarker = new TQCheckBox( i18n("&Show static word wrap marker (if applicable)"), gbWordWrap ); m_wwmarker->setChecked( KateRendererConfig::global()->wordWrapMarker() ); - connect(m_wwmarker, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); + connect(m_wwmarker, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); e1 = new KIntNumInput(KateDocumentConfig::global()->wordWrapAt(), gbWordWrap); e1->setRange(20, 200, 1, false); e1->setLabel(i18n("Wrap words at:"), AlignVCenter); - connect(e1, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); + connect(e1, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged())); mainLayout->addWidget(gbWordWrap); - opt[4] = new QCheckBox( i18n("Remove &trailing spaces"), this ); + opt[4] = new TQCheckBox( i18n("Remove &trailing spaces"), this ); mainLayout->addWidget( opt[4] ); opt[4]->setChecked( configFlags & KateDocumentConfig::cfRemoveTrailingDyn ); - connect( opt[4], SIGNAL(toggled(bool)), this, SLOT(slotChanged()) ); + connect( opt[4], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()) ); - opt[1] = new QCheckBox(i18n("Auto &brackets"), this); + opt[1] = new TQCheckBox(i18n("Auto &brackets"), this); mainLayout->addWidget(opt[1]); opt[1]->setChecked(configFlags & flags[1]); - connect(opt[1], SIGNAL(toggled(bool)), this, SLOT(slotChanged())); + connect(opt[1], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); e3 = new KIntNumInput(e2, KateDocumentConfig::global()->undoSteps(), this); e3->setRange(0, 1000000, 1, false); e3->setSpecialValueText( i18n("Unlimited") ); e3->setLabel(i18n("Maximum undo steps:"), AlignVCenter); mainLayout->addWidget(e3); - connect(e3, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); + connect(e3, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged())); - QHBoxLayout *e5Layout = new QHBoxLayout(mainLayout); - QLabel *e5Label = new QLabel(i18n("Smart search t&ext from:"), this); + TQHBoxLayout *e5Layout = new TQHBoxLayout(mainLayout); + TQLabel *e5Label = new TQLabel(i18n("Smart search t&ext from:"), this); e5Layout->addWidget(e5Label); e5 = new KComboBox (this); e5->insertItem( i18n("Nowhere") ); @@ -533,12 +533,12 @@ KateEditConfigTab::KateEditConfigTab(QWidget *parent) e5->setCurrentItem(KateViewConfig::global()->textToSearchMode()); e5Layout->addWidget(e5); e5Label->setBuddy(e5); - connect(e5, SIGNAL(activated(int)), this, SLOT(slotChanged())); + connect(e5, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotChanged())); mainLayout->addStretch(); // What is this? help - QWhatsThis::add(opt[0], i18n( + TQWhatsThis::add(opt[0], i18n( "Automatically start a new line of text when the current line exceeds " "the length specified by the <b>Wrap words at:</b> option." "<p>This option does not wrap existing lines of text - use the <b>Apply " @@ -546,20 +546,20 @@ KateEditConfigTab::KateEditConfigTab(QWidget *parent) "<p>If you want lines to be <i>visually wrapped</i> instead, according " "to the width of the view, enable <b>Dynamic Word Wrap</b> in the " "<b>View Defaults</b> config page.")); - QWhatsThis::add(e1, i18n( + TQWhatsThis::add(e1, i18n( "If the Word Wrap option is selected this entry determines the length " "(in characters) at which the editor will automatically start a new line.")); - QWhatsThis::add(opt[1], i18n( + TQWhatsThis::add(opt[1], i18n( "When the user types a left bracket ([,(, or {) KateView automatically " "enters the right bracket (}, ), or ]) to the right of the cursor.")); - QWhatsThis::add(opt[2], i18n( + TQWhatsThis::add(opt[2], i18n( "The editor will display a symbol to indicate the presence of a tab in " "the text.")); - QWhatsThis::add(e3, i18n( + TQWhatsThis::add(e3, i18n( "Sets the number of undo/redo steps to record. More steps uses more memory.")); - QString gstfwt = i18n( + TQString gstfwt = i18n( "This determines where KateView will get the search text from " "(this will be automatically entered into the Find Text dialog): " "<br>" @@ -582,16 +582,16 @@ KateEditConfigTab::KateEditConfigTab(QWidget *parent) "Note that, in all the above modes, if a search string has " "not been or cannot be determined, then the Find Text Dialog " "will fall back to the last search text."); - QWhatsThis::add(e5Label, gstfwt); - QWhatsThis::add(e5, gstfwt); - QWhatsThis::add( opt[3], i18n( + TQWhatsThis::add(e5Label, gstfwt); + TQWhatsThis::add(e5, gstfwt); + TQWhatsThis::add( opt[3], i18n( "If this is enabled, the editor will calculate the number of spaces up to " "the next tab position as defined by the tab width, and insert that number " "of spaces instead of a TAB character." ) ); - QWhatsThis::add( opt[4], i18n( + TQWhatsThis::add( opt[4], i18n( "If this is enabled, the editor will remove any trailing whitespace on " "lines when they are left by the insertion cursor.") ); - QWhatsThis::add( m_wwmarker, i18n( + TQWhatsThis::add( m_wwmarker, i18n( "<p>If this option is checked, a vertical line will be drawn at the word " "wrap column as defined in the <strong>Editing</strong> properties." "<p>Note that the word wrap marker is only drawn if you use a fixed " @@ -640,20 +640,20 @@ void KateEditConfigTab::reload () //END KateEditConfigTab //BEGIN KateViewDefaultsConfig -KateViewDefaultsConfig::KateViewDefaultsConfig(QWidget *parent) +KateViewDefaultsConfig::KateViewDefaultsConfig(TQWidget *parent) :KateConfigPage(parent) { - QRadioButton *rb1; - QRadioButton *rb2; + TQRadioButton *rb1; + TQRadioButton *rb2; - QVBoxLayout *blay=new QVBoxLayout(this,0,KDialog::spacingHint()); + TQVBoxLayout *blay=new TQVBoxLayout(this,0,KDialog::spacingHint()); - QVGroupBox *gbWordWrap = new QVGroupBox(i18n("Word Wrap"), this); + TQVGroupBox *gbWordWrap = new TQVGroupBox(i18n("Word Wrap"), this); - m_dynwrap=new QCheckBox(i18n("&Dynamic word wrap"),gbWordWrap); + m_dynwrap=new TQCheckBox(i18n("&Dynamic word wrap"),gbWordWrap); - QHBox *m_dynwrapIndicatorsLay = new QHBox (gbWordWrap); - m_dynwrapIndicatorsLabel = new QLabel( i18n("Dynamic word wrap indicators (if applicable):"), m_dynwrapIndicatorsLay ); + TQHBox *m_dynwrapIndicatorsLay = new TQHBox (gbWordWrap); + m_dynwrapIndicatorsLabel = new TQLabel( i18n("Dynamic word wrap indicators (if applicable):"), m_dynwrapIndicatorsLay ); m_dynwrapIndicatorsCombo = new KComboBox( m_dynwrapIndicatorsLay ); m_dynwrapIndicatorsCombo->insertItem( i18n("Off") ); m_dynwrapIndicatorsCombo->insertItem( i18n("Follow Line Numbers") ); @@ -669,43 +669,43 @@ KateViewDefaultsConfig::KateViewDefaultsConfig(QWidget *parent) blay->addWidget(gbWordWrap); - QVGroupBox *gbFold = new QVGroupBox(i18n("Code Folding"), this); + TQVGroupBox *gbFold = new TQVGroupBox(i18n("Code Folding"), this); - m_folding=new QCheckBox(i18n("Show &folding markers (if available)"), gbFold ); - m_collapseTopLevel = new QCheckBox( i18n("Collapse toplevel folding nodes"), gbFold ); + m_folding=new TQCheckBox(i18n("Show &folding markers (if available)"), gbFold ); + m_collapseTopLevel = new TQCheckBox( i18n("Collapse toplevel folding nodes"), gbFold ); m_collapseTopLevel->hide (); blay->addWidget(gbFold); - QVGroupBox *gbBar = new QVGroupBox(i18n("Borders"), this); + TQVGroupBox *gbBar = new TQVGroupBox(i18n("Borders"), this); - m_icons=new QCheckBox(i18n("Show &icon border"),gbBar); - m_line=new QCheckBox(i18n("Show &line numbers"),gbBar); - m_scrollBarMarks=new QCheckBox(i18n("Show &scrollbar marks"),gbBar); + m_icons=new TQCheckBox(i18n("Show &icon border"),gbBar); + m_line=new TQCheckBox(i18n("Show &line numbers"),gbBar); + m_scrollBarMarks=new TQCheckBox(i18n("Show &scrollbar marks"),gbBar); blay->addWidget(gbBar); - m_bmSort = new QButtonGroup( 1, Qt::Horizontal, i18n("Sort Bookmarks Menu"), this ); + m_bmSort = new TQButtonGroup( 1, Qt::Horizontal, i18n("Sort Bookmarks Menu"), this ); m_bmSort->setRadioButtonExclusive( true ); - m_bmSort->insert( rb1=new QRadioButton( i18n("By &position"), m_bmSort ), 0 ); - m_bmSort->insert( rb2=new QRadioButton( i18n("By c&reation"), m_bmSort ), 1 ); + m_bmSort->insert( rb1=new TQRadioButton( i18n("By &position"), m_bmSort ), 0 ); + m_bmSort->insert( rb2=new TQRadioButton( i18n("By c&reation"), m_bmSort ), 1 ); blay->addWidget(m_bmSort, 0 ); - m_showIndentLines = new QCheckBox(i18n("Show indentation lines"), this); + m_showIndentLines = new TQCheckBox(i18n("Show indentation lines"), this); m_showIndentLines->setChecked(KateRendererConfig::global()->showIndentationLines()); blay->addWidget(m_showIndentLines); blay->addStretch(1000); - QWhatsThis::add(m_dynwrap,i18n( + TQWhatsThis::add(m_dynwrap,i18n( "If this option is checked, the text lines will be wrapped at the view " "border on the screen.")); - QString wtstr = i18n("Choose when the Dynamic Word Wrap Indicators should be displayed"); - QWhatsThis::add(m_dynwrapIndicatorsLabel, wtstr); - QWhatsThis::add(m_dynwrapIndicatorsCombo, wtstr); + TQString wtstr = i18n("Choose when the Dynamic Word Wrap Indicators should be displayed"); + TQWhatsThis::add(m_dynwrapIndicatorsLabel, wtstr); + TQWhatsThis::add(m_dynwrapIndicatorsCombo, wtstr); // xgettext:no-c-format - QWhatsThis::add(m_dynwrapAlignLevel, i18n( + TQWhatsThis::add(m_dynwrapAlignLevel, i18n( "<p>Enables the start of dynamically wrapped lines to be aligned " "vertically to the indentation level of the first line. This can help " "to make code and markup more readable.</p><p>Additionally, this allows " @@ -714,28 +714,28 @@ KateViewDefaultsConfig::KateViewDefaultsConfig(QWidget *parent) "example, at 50%, lines whose indentation levels are deeper than 50% of " "the width of the screen will not have vertical alignment applied to " "subsequent wrapped lines.</p>")); - QWhatsThis::add(m_line,i18n( + TQWhatsThis::add(m_line,i18n( "If this option is checked, every new view will display line numbers " "on the left hand side.")); - QWhatsThis::add(m_icons,i18n( + TQWhatsThis::add(m_icons,i18n( "If this option is checked, every new view will display an icon border " "on the left hand side.<br><br>The icon border shows bookmark signs, " "for instance.")); - QWhatsThis::add(m_scrollBarMarks,i18n( + TQWhatsThis::add(m_scrollBarMarks,i18n( "If this option is checked, every new view will show marks on the " "vertical scrollbar.<br><br>These marks will, for instance, show " "bookmarks.")); - QWhatsThis::add(m_folding,i18n( + TQWhatsThis::add(m_folding,i18n( "If this option is checked, every new view will display marks for code " "folding, if code folding is available.")); - QWhatsThis::add(m_bmSort,i18n( + TQWhatsThis::add(m_bmSort,i18n( "Choose how the bookmarks should be ordered in the <b>Bookmarks</b> menu.")); - QWhatsThis::add(rb1,i18n( + TQWhatsThis::add(rb1,i18n( "The bookmarks will be ordered by the line numbers they are placed at.")); - QWhatsThis::add(rb2,i18n( + TQWhatsThis::add(rb2,i18n( "Each new bookmark will be added to the bottom, independently from " "where it is placed in the document.")); - QWhatsThis::add(m_showIndentLines, i18n( + TQWhatsThis::add(m_showIndentLines, i18n( "If this is enabled, the editor will display vertical lines to help " "identify indent lines.") ); @@ -745,17 +745,17 @@ KateViewDefaultsConfig::KateViewDefaultsConfig(QWidget *parent) // after initial reload, connect the stuff for the changed () signal // - connect(m_dynwrap, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); - connect(m_dynwrapIndicatorsCombo, SIGNAL(activated(int)), this, SLOT(slotChanged())); - connect(m_dynwrapAlignLevel, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); - connect(m_icons, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); - connect(m_scrollBarMarks, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); - connect(m_line, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); - connect(m_folding, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); - connect(m_collapseTopLevel, SIGNAL(toggled(bool)), this, SLOT(slotChanged()) ); - connect(rb1, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); - connect(rb2, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); - connect(m_showIndentLines, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); + connect(m_dynwrap, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); + connect(m_dynwrapIndicatorsCombo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotChanged())); + connect(m_dynwrapAlignLevel, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged())); + connect(m_icons, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); + connect(m_scrollBarMarks, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); + connect(m_line, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); + connect(m_folding, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); + connect(m_collapseTopLevel, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()) ); + connect(rb1, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); + connect(rb2, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); + connect(m_showIndentLines, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); } KateViewDefaultsConfig::~KateViewDefaultsConfig() @@ -807,28 +807,28 @@ void KateViewDefaultsConfig::defaults (){;} //BEGIN KateEditKeyConfiguration -KateEditKeyConfiguration::KateEditKeyConfiguration( QWidget* parent, KateDocument* doc ) +KateEditKeyConfiguration::KateEditKeyConfiguration( TQWidget* parent, KateDocument* doc ) : KateConfigPage( parent ) { m_doc = doc; m_ready = false; } -void KateEditKeyConfiguration::showEvent ( QShowEvent * ) +void KateEditKeyConfiguration::showEvent ( TQShowEvent * ) { if (!m_ready) { - (new QVBoxLayout(this))->setAutoAdd(true); + (new TQVBoxLayout(this))->setAutoAdd(true); KateView* view = (KateView*)m_doc->views().at(0); m_ac = view->editActionCollection(); m_keyChooser = new KKeyChooser( m_ac, this, false ); - connect( m_keyChooser, SIGNAL( keyChange() ), this, SLOT( slotChanged() ) ); + connect( m_keyChooser, TQT_SIGNAL( keyChange() ), this, TQT_SLOT( slotChanged() ) ); m_keyChooser->show (); m_ready = true; } - QWidget::show (); + TQWidget::show (); } void KateEditKeyConfiguration::apply() @@ -846,49 +846,49 @@ void KateEditKeyConfiguration::apply() //END KateEditKeyConfiguration //BEGIN KateSaveConfigTab -KateSaveConfigTab::KateSaveConfigTab( QWidget *parent ) +KateSaveConfigTab::KateSaveConfigTab( TQWidget *parent ) : KateConfigPage( parent ) { int configFlags = KateDocumentConfig::global()->configFlags(); - QVBoxLayout *layout = new QVBoxLayout(this, 0, KDialog::spacingHint() ); + TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); - QVGroupBox *gbEnc = new QVGroupBox(i18n("File Format"), this); + TQVGroupBox *gbEnc = new TQVGroupBox(i18n("File Format"), this); layout->addWidget( gbEnc ); - QHBox *e5Layout = new QHBox(gbEnc); - QLabel *e5Label = new QLabel(i18n("&Encoding:"), e5Layout); + TQHBox *e5Layout = new TQHBox(gbEnc); + TQLabel *e5Label = new TQLabel(i18n("&Encoding:"), e5Layout); m_encoding = new KComboBox (e5Layout); e5Label->setBuddy(m_encoding); - e5Layout = new QHBox(gbEnc); - e5Label = new QLabel(i18n("End &of line:"), e5Layout); + e5Layout = new TQHBox(gbEnc); + e5Label = new TQLabel(i18n("End &of line:"), e5Layout); m_eol = new KComboBox (e5Layout); e5Label->setBuddy(m_eol); - allowEolDetection = new QCheckBox(i18n("&Automatic end of line detection"), gbEnc); + allowEolDetection = new TQCheckBox(i18n("&Automatic end of line detection"), gbEnc); m_eol->insertItem (i18n("UNIX")); m_eol->insertItem (i18n("DOS/Windows")); m_eol->insertItem (i18n("Macintosh")); - QVGroupBox *gbMem = new QVGroupBox(i18n("Memory Usage"), this); + TQVGroupBox *gbMem = new TQVGroupBox(i18n("Memory Usage"), this); layout->addWidget( gbMem ); - e5Layout = new QHBox(gbMem); + e5Layout = new TQHBox(gbMem); e5Layout->setSpacing (32); - blockCountLabel = new QLabel(i18n("Maximum loaded &blocks per file:"), e5Layout); - blockCount = new QSpinBox (4, 512, 4, e5Layout); + blockCountLabel = new TQLabel(i18n("Maximum loaded &blocks per file:"), e5Layout); + blockCount = new TQSpinBox (4, 512, 4, e5Layout); blockCount->setValue (KateBuffer::maxLoadedBlocks()); blockCountLabel->setBuddy(blockCount); - QVGroupBox *gbWhiteSpace = new QVGroupBox(i18n("Automatic Cleanups on Load/Save"), this); + TQVGroupBox *gbWhiteSpace = new TQVGroupBox(i18n("Automatic Cleanups on Load/Save"), this); layout->addWidget( gbWhiteSpace ); - removeSpaces = new QCheckBox(i18n("Re&move trailing spaces"), gbWhiteSpace); + removeSpaces = new TQCheckBox(i18n("Re&move trailing spaces"), gbWhiteSpace); removeSpaces->setChecked(configFlags & KateDocument::cfRemoveSpaces); - QVGroupBox *dirConfigBox = new QVGroupBox(i18n("Folder Config File"), this); + TQVGroupBox *dirConfigBox = new TQVGroupBox(i18n("Folder Config File"), this); layout->addWidget( dirConfigBox ); dirSearchDepth = new KIntNumInput(KateDocumentConfig::global()->searchDirConfigDepth(), dirConfigBox); @@ -896,45 +896,45 @@ KateSaveConfigTab::KateSaveConfigTab( QWidget *parent ) dirSearchDepth->setSpecialValueText( i18n("Do not use config file") ); dirSearchDepth->setLabel(i18n("Se&arch depth for config file:"), AlignVCenter); - QGroupBox *gb = new QGroupBox( 1, Qt::Horizontal, i18n("Backup on Save"), this ); + TQGroupBox *gb = new TQGroupBox( 1, Qt::Horizontal, i18n("Backup on Save"), this ); layout->addWidget( gb ); - cbLocalFiles = new QCheckBox( i18n("&Local files"), gb ); - cbRemoteFiles = new QCheckBox( i18n("&Remote files"), gb ); + cbLocalFiles = new TQCheckBox( i18n("&Local files"), gb ); + cbRemoteFiles = new TQCheckBox( i18n("&Remote files"), gb ); - QHBox *hbBuPrefix = new QHBox( gb ); - QLabel *lBuPrefix = new QLabel( i18n("&Prefix:"), hbBuPrefix ); - leBuPrefix = new QLineEdit( hbBuPrefix ); + TQHBox *hbBuPrefix = new TQHBox( gb ); + TQLabel *lBuPrefix = new TQLabel( i18n("&Prefix:"), hbBuPrefix ); + leBuPrefix = new TQLineEdit( hbBuPrefix ); lBuPrefix->setBuddy( leBuPrefix ); - QHBox *hbBuSuffix = new QHBox( gb ); - QLabel *lBuSuffix = new QLabel( i18n("&Suffix:"), hbBuSuffix ); - leBuSuffix = new QLineEdit( hbBuSuffix ); + TQHBox *hbBuSuffix = new TQHBox( gb ); + TQLabel *lBuSuffix = new TQLabel( i18n("&Suffix:"), hbBuSuffix ); + leBuSuffix = new TQLineEdit( hbBuSuffix ); lBuSuffix->setBuddy( leBuSuffix ); layout->addStretch(); - QWhatsThis::add(removeSpaces, i18n( + TQWhatsThis::add(removeSpaces, i18n( "The editor will automatically eliminate extra spaces at the ends of " "lines of text while loading/saving the file.")); - QWhatsThis::add( gb, i18n( + TQWhatsThis::add( gb, i18n( "<p>Backing up on save will cause Kate to copy the disk file to " "'<prefix><filename><suffix>' before saving changes." "<p>The suffix defaults to <strong>~</strong> and prefix is empty by default" ) ); - QWhatsThis::add( allowEolDetection, i18n( + TQWhatsThis::add( allowEolDetection, i18n( "Check this if you want the editor to autodetect the end of line type." "The first found end of line type will be used for the whole file.") ); - QWhatsThis::add( cbLocalFiles, i18n( + TQWhatsThis::add( cbLocalFiles, i18n( "Check this if you want backups of local files when saving") ); - QWhatsThis::add( cbRemoteFiles, i18n( + TQWhatsThis::add( cbRemoteFiles, i18n( "Check this if you want backups of remote files when saving") ); - QWhatsThis::add( leBuPrefix, i18n( + TQWhatsThis::add( leBuPrefix, i18n( "Enter the prefix to prepend to the backup file names" ) ); - QWhatsThis::add( leBuSuffix, i18n( + TQWhatsThis::add( leBuSuffix, i18n( "Enter the suffix to add to the backup file names" ) ); - QWhatsThis::add(dirSearchDepth, i18n( + TQWhatsThis::add(dirSearchDepth, i18n( "The editor will search the given number of folder levels upwards for .kateconfig file" " and load the settings line from it." )); - QWhatsThis::add(blockCount, i18n( + TQWhatsThis::add(blockCount, i18n( "The editor will load given number of blocks (of around 2048 lines) of text into memory;" " if the filesize is bigger than this the other blocks are swapped " " to disk and loaded transparently as-needed.<br>" @@ -948,16 +948,16 @@ KateSaveConfigTab::KateSaveConfigTab( QWidget *parent ) // after initial reload, connect the stuff for the changed () signal // - connect(m_encoding, SIGNAL(activated(int)), this, SLOT(slotChanged())); - connect(m_eol, SIGNAL(activated(int)), this, SLOT(slotChanged())); - connect( allowEolDetection, SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); - connect(blockCount, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); - connect(removeSpaces, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); - connect( cbLocalFiles, SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); - connect( cbRemoteFiles, SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); - connect(dirSearchDepth, SIGNAL(valueChanged(int)), this, SLOT(slotChanged())); - connect( leBuPrefix, SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotChanged() ) ); - connect( leBuSuffix, SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotChanged() ) ); + connect(m_encoding, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotChanged())); + connect(m_eol, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotChanged())); + connect( allowEolDetection, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) ); + connect(blockCount, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged())); + connect(removeSpaces, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged())); + connect( cbLocalFiles, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) ); + connect( cbRemoteFiles, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) ); + connect(dirSearchDepth, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged())); + connect( leBuPrefix, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) ); + connect( leBuSuffix, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) ); } void KateSaveConfigTab::apply() @@ -1013,12 +1013,12 @@ void KateSaveConfigTab::reload() m_encoding->clear (); m_encoding->insertItem (i18n("KDE Default")); m_encoding->setCurrentItem(0); - QStringList encodings (KGlobal::charsets()->descriptiveEncodingNames()); + TQStringList encodings (KGlobal::charsets()->descriptiveEncodingNames()); int insert = 1; for (uint i=0; i < encodings.count(); i++) { bool found = false; - QTextCodec *codecForEnc = KGlobal::charsets()->codecForName(KGlobal::charsets()->encodingForName(encodings[i]), found); + TQTextCodec *codecForEnc = KGlobal::charsets()->codecForName(KGlobal::charsets()->encodingForName(encodings[i]), found); if (found) { @@ -1065,7 +1065,7 @@ void KateSaveConfigTab::defaults() class KatePartPluginListItem : public QCheckListItem { public: - KatePartPluginListItem(bool checked, uint i, const QString &name, QListView *parent); + KatePartPluginListItem(bool checked, uint i, const TQString &name, TQListView *parent); uint pluginIndex () const { return index; } protected: @@ -1076,8 +1076,8 @@ class KatePartPluginListItem : public QCheckListItem bool silentStateChange; }; -KatePartPluginListItem::KatePartPluginListItem(bool checked, uint i, const QString &name, QListView *parent) - : QCheckListItem(parent, name, CheckBox) +KatePartPluginListItem::KatePartPluginListItem(bool checked, uint i, const TQString &name, TQListView *parent) + : TQCheckListItem(parent, name, CheckBox) , index(i) , silentStateChange(false) { @@ -1094,7 +1094,7 @@ void KatePartPluginListItem::stateChange(bool b) //END //BEGIN PluginListView -KatePartPluginListView::KatePartPluginListView(QWidget *parent, const char *name) +KatePartPluginListView::KatePartPluginListView(TQWidget *parent, const char *name) : KListView(parent, name) { } @@ -1106,10 +1106,10 @@ void KatePartPluginListView::stateChanged(KatePartPluginListItem *item, bool b) //END //BEGIN KatePartPluginConfigPage -KatePartPluginConfigPage::KatePartPluginConfigPage (QWidget *parent) : KateConfigPage (parent, "") +KatePartPluginConfigPage::KatePartPluginConfigPage (TQWidget *parent) : KateConfigPage (parent, "") { // sizemanagment - QGridLayout *grid = new QGridLayout( this, 1, 1 ); + TQGridLayout *grid = new TQGridLayout( this, 1, 1 ); grid->setSpacing( KDialogBase::spacingHint() ); listView = new KatePartPluginListView(this); @@ -1129,15 +1129,15 @@ KatePartPluginConfigPage::KatePartPluginConfigPage (QWidget *parent) : KateConfi // configure button - btnConfigure = new QPushButton( i18n("Configure..."), this ); + btnConfigure = new TQPushButton( i18n("Configure..."), this ); btnConfigure->setEnabled( false ); grid->addWidget( btnConfigure, 1, 0, Qt::AlignRight ); - connect( btnConfigure, SIGNAL(clicked()), this, SLOT(slotConfigure()) ); + connect( btnConfigure, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotConfigure()) ); - connect( listView, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotCurrentChanged(QListViewItem*)) ); - connect( listView, SIGNAL(stateChange(KatePartPluginListItem *, bool)), - this, SLOT(slotStateChanged(KatePartPluginListItem *, bool))); - connect(listView, SIGNAL(stateChange(KatePartPluginListItem *, bool)), this, SLOT(slotChanged())); + connect( listView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotCurrentChanged(TQListViewItem*)) ); + connect( listView, TQT_SIGNAL(stateChange(KatePartPluginListItem *, bool)), + this, TQT_SLOT(slotStateChanged(KatePartPluginListItem *, bool))); + connect(listView, TQT_SIGNAL(stateChange(KatePartPluginListItem *, bool)), this, TQT_SLOT(slotChanged())); } KatePartPluginConfigPage::~KatePartPluginConfigPage () @@ -1162,10 +1162,10 @@ void KatePartPluginConfigPage::apply () void KatePartPluginConfigPage::slotStateChanged( KatePartPluginListItem *item, bool b ) { if ( b ) - slotCurrentChanged( (QListViewItem*)item ); + slotCurrentChanged( (TQListViewItem*)item ); } -void KatePartPluginConfigPage::slotCurrentChanged( QListViewItem* i ) +void KatePartPluginConfigPage::slotCurrentChanged( TQListViewItem* i ) { KatePartPluginListItem *item = static_cast<KatePartPluginListItem *>(i); if ( ! item ) return; @@ -1175,7 +1175,7 @@ void KatePartPluginConfigPage::slotCurrentChanged( QListViewItem* i ) { // load this plugin, and see if it has config pages - KTextEditor::Plugin *plugin = KTextEditor::createPlugin(QFile::encodeName((KateFactory::self()->plugins())[item->pluginIndex()]->library())); + KTextEditor::Plugin *plugin = KTextEditor::createPlugin(TQFile::encodeName((KateFactory::self()->plugins())[item->pluginIndex()]->library())); if ( plugin ) { KTextEditor::ConfigInterfaceExtension *cie = KTextEditor::configInterfaceExtension( plugin ); b = ( cie && cie->configPages() ); @@ -1189,7 +1189,7 @@ void KatePartPluginConfigPage::slotConfigure() { KatePartPluginListItem *item = static_cast<KatePartPluginListItem*>(listView->currentItem()); KTextEditor::Plugin *plugin = - KTextEditor::createPlugin(QFile::encodeName((KateFactory::self()->plugins())[item->pluginIndex()]->library())); + KTextEditor::createPlugin(TQFile::encodeName((KateFactory::self()->plugins())[item->pluginIndex()]->library())); if ( ! plugin ) return; @@ -1208,21 +1208,21 @@ void KatePartPluginConfigPage::slotConfigure() KDialogBase::IconList : // still untested KDialogBase::Plain; - QString name = (KateFactory::self()->plugins())[item->pluginIndex()]->name(); + TQString name = (KateFactory::self()->plugins())[item->pluginIndex()]->name(); KDialogBase *kd = new KDialogBase ( dt, i18n("Configure %1").arg( name ), KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Help, KDialogBase::Ok, this ); - QPtrList<KTextEditor::ConfigPage> editorPages; + TQPtrList<KTextEditor::ConfigPage> editorPages; for (uint i = 0; i < cife->configPages (); i++) { - QWidget *page; + TQWidget *page; if ( dt == KDialogBase::IconList ) { - QStringList path; + TQStringList path; path.clear(); path << cife->configPageName( i ); page = kd->addVBoxPage( path, cife->configPageFullName (i), @@ -1231,7 +1231,7 @@ void KatePartPluginConfigPage::slotConfigure() else { page = kd->plainPage(); - QVBoxLayout *_l = new QVBoxLayout( page ); + TQVBoxLayout *_l = new TQVBoxLayout( page ); _l->setAutoAdd( true ); } @@ -1252,105 +1252,105 @@ void KatePartPluginConfigPage::slotConfigure() //END KatePartPluginConfigPage //BEGIN KateHlConfigPage -KateHlConfigPage::KateHlConfigPage (QWidget *parent, KateDocument *doc) +KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc) : KateConfigPage (parent, "") , hlData (0) , m_doc (doc) { - QVBoxLayout *layout = new QVBoxLayout(this, 0, KDialog::spacingHint() ); + TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint() ); // hl chooser - QHBox *hbHl = new QHBox( this ); + TQHBox *hbHl = new TQHBox( this ); layout->add (hbHl); hbHl->setSpacing( KDialog::spacingHint() ); - QLabel *lHl = new QLabel( i18n("H&ighlight:"), hbHl ); - hlCombo = new QComboBox( false, hbHl ); + TQLabel *lHl = new TQLabel( i18n("H&ighlight:"), hbHl ); + hlCombo = new TQComboBox( false, hbHl ); lHl->setBuddy( hlCombo ); - connect( hlCombo, SIGNAL(activated(int)), - this, SLOT(hlChanged(int)) ); + connect( hlCombo, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(hlChanged(int)) ); for( int i = 0; i < KateHlManager::self()->highlights(); i++) { if (KateHlManager::self()->hlSection(i).length() > 0) - hlCombo->insertItem(KateHlManager::self()->hlSection(i) + QString ("/") + KateHlManager::self()->hlNameTranslated(i)); + hlCombo->insertItem(KateHlManager::self()->hlSection(i) + TQString ("/") + KateHlManager::self()->hlNameTranslated(i)); else hlCombo->insertItem(KateHlManager::self()->hlNameTranslated(i)); } - QGroupBox *gbInfo = new QGroupBox( 1, Qt::Horizontal, i18n("Information"), this ); + TQGroupBox *gbInfo = new TQGroupBox( 1, Qt::Horizontal, i18n("Information"), this ); layout->add (gbInfo); // author - QHBox *hb1 = new QHBox( gbInfo); - new QLabel( i18n("Author:"), hb1 ); - author = new QLabel (hb1); + TQHBox *hb1 = new TQHBox( gbInfo); + new TQLabel( i18n("Author:"), hb1 ); + author = new TQLabel (hb1); author->setTextFormat (Qt::RichText); // license - QHBox *hb2 = new QHBox( gbInfo); - new QLabel( i18n("License:"), hb2 ); - license = new QLabel (hb2); + TQHBox *hb2 = new TQHBox( gbInfo); + new TQLabel( i18n("License:"), hb2 ); + license = new TQLabel (hb2); - QGroupBox *gbProps = new QGroupBox( 1, Qt::Horizontal, i18n("Properties"), this ); + TQGroupBox *gbProps = new TQGroupBox( 1, Qt::Horizontal, i18n("Properties"), this ); layout->add (gbProps); // file & mime types - QHBox *hbFE = new QHBox( gbProps); - QLabel *lFileExts = new QLabel( i18n("File e&xtensions:"), hbFE ); - wildcards = new QLineEdit( hbFE ); + TQHBox *hbFE = new TQHBox( gbProps); + TQLabel *lFileExts = new TQLabel( i18n("File e&xtensions:"), hbFE ); + wildcards = new TQLineEdit( hbFE ); lFileExts->setBuddy( wildcards ); - QHBox *hbMT = new QHBox( gbProps ); - QLabel *lMimeTypes = new QLabel( i18n("MIME &types:"), hbMT); - mimetypes = new QLineEdit( hbMT ); + TQHBox *hbMT = new TQHBox( gbProps ); + TQLabel *lMimeTypes = new TQLabel( i18n("MIME &types:"), hbMT); + mimetypes = new TQLineEdit( hbMT ); lMimeTypes->setBuddy( mimetypes ); - QHBox *hbMT2 = new QHBox( gbProps ); - QLabel *lprio = new QLabel( i18n("Prio&rity:"), hbMT2); + TQHBox *hbMT2 = new TQHBox( gbProps ); + TQLabel *lprio = new TQLabel( i18n("Prio&rity:"), hbMT2); priority = new KIntNumInput( hbMT2 ); lprio->setBuddy( priority ); - QToolButton *btnMTW = new QToolButton(hbMT); - btnMTW->setIconSet(QIconSet(SmallIcon("wizard"))); - connect(btnMTW, SIGNAL(clicked()), this, SLOT(showMTDlg())); + TQToolButton *btnMTW = new TQToolButton(hbMT); + btnMTW->setIconSet(TQIconSet(SmallIcon("wizard"))); + connect(btnMTW, TQT_SIGNAL(clicked()), this, TQT_SLOT(showMTDlg())); // download/new buttons - QHBox *hbBtns = new QHBox( this ); + TQHBox *hbBtns = new TQHBox( this ); layout->add (hbBtns); - ((QBoxLayout*)hbBtns->layout())->addStretch(1); // hmm. + ((TQBoxLayout*)hbBtns->layout())->addStretch(1); // hmm. hbBtns->setSpacing( KDialog::spacingHint() ); - QPushButton *btnDl = new QPushButton(i18n("Do&wnload..."), hbBtns); - connect( btnDl, SIGNAL(clicked()), this, SLOT(hlDownload()) ); + TQPushButton *btnDl = new TQPushButton(i18n("Do&wnload..."), hbBtns); + connect( btnDl, TQT_SIGNAL(clicked()), this, TQT_SLOT(hlDownload()) ); int currentHl = m_doc ? m_doc->hlMode() : 0; hlCombo->setCurrentItem( currentHl ); hlChanged( currentHl ); - QWhatsThis::add( hlCombo, i18n( + TQWhatsThis::add( hlCombo, i18n( "Choose a <em>Syntax Highlight mode</em> from this list to view its " "properties below.") ); - QWhatsThis::add( wildcards, i18n( + TQWhatsThis::add( wildcards, i18n( "The list of file extensions used to determine which files to highlight " "using the current syntax highlight mode.") ); - QWhatsThis::add( mimetypes, i18n( + TQWhatsThis::add( mimetypes, i18n( "The list of Mime Types used to determine which files to highlight " "using the current highlight mode.<p>Click the wizard button on the " "left of the entry field to display the MimeType selection dialog.") ); - QWhatsThis::add( btnMTW, i18n( + TQWhatsThis::add( btnMTW, i18n( "Display a dialog with a list of all available mime types to choose from." "<p>The <strong>File Extensions</strong> entry will automatically be " "edited as well.") ); - QWhatsThis::add( btnDl, i18n( + TQWhatsThis::add( btnDl, i18n( "Click this button to download new or updated syntax highlight " "descriptions from the Kate website.") ); layout->addStretch (); - connect( wildcards, SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotChanged() ) ); - connect( mimetypes, SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotChanged() ) ); - connect( priority, SIGNAL( valueChanged ( int ) ), this, SLOT( slotChanged() ) ); + connect( wildcards, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) ); + connect( mimetypes, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) ); + connect( priority, TQT_SIGNAL( valueChanged ( int ) ), this, TQT_SLOT( slotChanged() ) ); } KateHlConfigPage::~KateHlConfigPage () @@ -1366,7 +1366,7 @@ void KateHlConfigPage::apply () writeback(); - for ( QIntDictIterator<KateHlData> it( hlDataDict ); it.current(); ++it ) + for ( TQIntDictIterator<KateHlData> it( hlDataDict ); it.current(); ++it ) KateHlManager::self()->getHl( it.currentKey() )->setData( it.current() ); KateHlManager::self()->getKConfig()->sync (); @@ -1397,7 +1397,7 @@ void KateHlConfigPage::hlChanged(int z) priority->setValue(hlData->priority); // split author string if needed into multiple lines ! - QStringList l= QStringList::split (QRegExp("[,;]"), hl->author()); + TQStringList l= TQStringList::split (TQRegExp("[,;]"), hl->author()); author->setText (l.join ("<br>")); license->setText (hl->license()); @@ -1421,8 +1421,8 @@ void KateHlConfigPage::hlDownload() void KateHlConfigPage::showMTDlg() { - QString text = i18n("Select the MimeTypes you want highlighted using the '%1' syntax highlight rules.\nPlease note that this will automatically edit the associated file extensions as well.").arg( hlCombo->currentText() ); - QStringList list = QStringList::split( QRegExp("\\s*;\\s*"), mimetypes->text() ); + TQString text = i18n("Select the MimeTypes you want highlighted using the '%1' syntax highlight rules.\nPlease note that this will automatically edit the associated file extensions as well.").arg( hlCombo->currentText() ); + TQStringList list = TQStringList::split( TQRegExp("\\s*;\\s*"), mimetypes->text() ); KMimeTypeChooserDialog d( i18n("Select Mime Types"), text, list, "text", this ); if ( d.exec() == KDialogBase::Accepted ) { @@ -1435,38 +1435,38 @@ void KateHlConfigPage::showMTDlg() //END KateHlConfigPage //BEGIN KateHlDownloadDialog -KateHlDownloadDialog::KateHlDownloadDialog(QWidget *parent, const char *name, bool modal) +KateHlDownloadDialog::KateHlDownloadDialog(TQWidget *parent, const char *name, bool modal) :KDialogBase(KDialogBase::Swallow, i18n("Highlight Download"), User1|Close, User1, parent, name, modal, true, i18n("&Install")) { - QVBox* vbox = new QVBox(this); + TQVBox* vbox = new TQVBox(this); setMainWidget(vbox); vbox->setSpacing(spacingHint()); - new QLabel(i18n("Select the syntax highlighting files you want to update:"), vbox); - list = new QListView(vbox); + new TQLabel(i18n("Select the syntax highlighting files you want to update:"), vbox); + list = new TQListView(vbox); list->addColumn(""); list->addColumn(i18n("Name")); list->addColumn(i18n("Installed")); list->addColumn(i18n("Latest")); - list->setSelectionMode(QListView::Multi); + list->setSelectionMode(TQListView::Multi); list->setAllColumnsShowFocus(true); - new QLabel(i18n("<b>Note:</b> New versions are selected automatically."), vbox); + new TQLabel(i18n("<b>Note:</b> New versions are selected automatically."), vbox); actionButton (User1)->setIconSet(SmallIconSet("ok")); transferJob = KIO::get( - KURL(QString(HLDOWNLOADPATH) - + QString("update-") - + QString(KATEPART_VERSION) - + QString(".xml")), true, true ); - connect(transferJob, SIGNAL(data(KIO::Job *, const QByteArray &)), - this, SLOT(listDataReceived(KIO::Job *, const QByteArray &))); -// void data( KIO::Job *, const QByteArray &data); + KURL(TQString(HLDOWNLOADPATH) + + TQString("update-") + + TQString(KATEPART_VERSION) + + TQString(".xml")), true, true ); + connect(transferJob, TQT_SIGNAL(data(KIO::Job *, const TQByteArray &)), + this, TQT_SLOT(listDataReceived(KIO::Job *, const TQByteArray &))); +// void data( KIO::Job *, const TQByteArray &data); resize(450, 400); } KateHlDownloadDialog::~KateHlDownloadDialog(){} -void KateHlDownloadDialog::listDataReceived(KIO::Job *, const QByteArray &data) +void KateHlDownloadDialog::listDataReceived(KIO::Job *, const TQByteArray &data) { if (!transferJob || transferJob->isErrorPage()) { @@ -1474,20 +1474,20 @@ void KateHlDownloadDialog::listDataReceived(KIO::Job *, const QByteArray &data) return; } - listData+=QString(data); - kdDebug(13000)<<QString("CurrentListData: ")<<listData<<endl<<endl; - kdDebug(13000)<<QString("Data length: %1").arg(data.size())<<endl; - kdDebug(13000)<<QString("listData length: %1").arg(listData.length())<<endl; + listData+=TQString(data); + kdDebug(13000)<<TQString("CurrentListData: ")<<listData<<endl<<endl; + kdDebug(13000)<<TQString("Data length: %1").arg(data.size())<<endl; + kdDebug(13000)<<TQString("listData length: %1").arg(listData.length())<<endl; if (data.size()==0) { if (listData.length()>0) { - QString installedVersion; + TQString installedVersion; KateHlManager *hlm=KateHlManager::self(); - QDomDocument doc; + TQDomDocument doc; doc.setContent(listData); - QDomElement DocElem=doc.documentElement(); - QDomNode n=DocElem.firstChild(); + TQDomElement DocElem=doc.documentElement(); + TQDomNode n=DocElem.firstChild(); KateHighlighting *hl = 0; if (n.isNull()) kdDebug(13000)<<"There is no usable childnode"<<endl; @@ -1495,12 +1495,12 @@ void KateHlDownloadDialog::listDataReceived(KIO::Job *, const QByteArray &data) { installedVersion=" --"; - QDomElement e=n.toElement(); + TQDomElement e=n.toElement(); if (!e.isNull()) - kdDebug(13000)<<QString("NAME: ")<<e.tagName()<<QString(" - ")<<e.attribute("name")<<endl; + kdDebug(13000)<<TQString("NAME: ")<<e.tagName()<<TQString(" - ")<<e.attribute("name")<<endl; n=n.nextSibling(); - QString Name=e.attribute("name"); + TQString Name=e.attribute("name"); for (int i=0;i<hlm->highlights();i++) { @@ -1514,7 +1514,7 @@ void KateHlDownloadDialog::listDataReceived(KIO::Job *, const QByteArray &data) } // autoselect entry if new or updated. - QListViewItem* entry = new QListViewItem( + TQListViewItem* entry = new TQListViewItem( list, "", e.attribute("name"), installedVersion, e.attribute("version"),e.attribute("url")); if (!hl || hl->version() < e.attribute("version")) @@ -1529,14 +1529,14 @@ void KateHlDownloadDialog::listDataReceived(KIO::Job *, const QByteArray &data) void KateHlDownloadDialog::slotUser1() { - QString destdir=KGlobal::dirs()->saveLocation("data","katepart/syntax/"); - for (QListViewItem *it=list->firstChild();it;it=it->nextSibling()) + TQString destdir=KGlobal::dirs()->saveLocation("data","katepart/syntax/"); + for (TQListViewItem *it=list->firstChild();it;it=it->nextSibling()) { if (list->isSelected(it)) { KURL src(it->text(4)); - QString filename=src.fileName(false); - QString dest = destdir+filename; + TQString filename=src.fileName(false); + TQString dest = destdir+filename; KIO::NetAccess::download(src,dest, this); } @@ -1548,18 +1548,18 @@ void KateHlDownloadDialog::slotUser1() //END KateHlDownloadDialog //BEGIN KateGotoLineDialog -KateGotoLineDialog::KateGotoLineDialog(QWidget *parent, int line, int max) +KateGotoLineDialog::KateGotoLineDialog(TQWidget *parent, int line, int max) : KDialogBase(parent, 0L, true, i18n("Go to Line"), Ok | Cancel, Ok) { - QWidget *page = new QWidget(this); + TQWidget *page = new TQWidget(this); setMainWidget(page); - QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() ); + TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() ); e1 = new KIntNumInput(line, page); e1->setRange(1, max); e1->setEditFocus(true); - QLabel *label = new QLabel( e1,i18n("&Go to line:"), page ); + TQLabel *label = new TQLabel( e1,i18n("&Go to line:"), page ); topLayout->addWidget(label); topLayout->addWidget(e1); topLayout->addSpacing(spacingHint()); // A little bit extra space @@ -1575,14 +1575,14 @@ int KateGotoLineDialog::getLine() { //BEGIN KateModOnHdPrompt KateModOnHdPrompt::KateModOnHdPrompt( KateDocument *doc, int modtype, - const QString &reason, - QWidget *parent ) + const TQString &reason, + TQWidget *parent ) : KDialogBase( parent, "", true, "", Ok|Apply|Cancel|User1 ), m_doc( doc ), m_modtype ( modtype ), m_tmpfile( 0 ) { - QString title, btnOK, whatisok; + TQString title, btnOK, whatisok; if ( modtype == 3 ) // deleted { title = i18n("File Was Deleted on Disk"); @@ -1606,23 +1606,23 @@ KateModOnHdPrompt::KateModOnHdPrompt( KateDocument *doc, enableButtonSeparator( true ); setCaption( title ); - QFrame *w = makeMainWidget(); - QVBoxLayout *lo = new QVBoxLayout( w ); - QHBoxLayout *lo1 = new QHBoxLayout( lo ); - QLabel *icon = new QLabel( w ); + TQFrame *w = makeMainWidget(); + TQVBoxLayout *lo = new TQVBoxLayout( w ); + TQHBoxLayout *lo1 = new TQHBoxLayout( lo ); + TQLabel *icon = new TQLabel( w ); icon->setPixmap( DesktopIcon("messagebox_warning" ) ); lo1->addWidget( icon ); - lo1->addWidget( new QLabel( reason + "\n\n" + i18n("What do you want to do?"), w ) ); + lo1->addWidget( new TQLabel( reason + "\n\n" + i18n("What do you want to do?"), w ) ); // If the file isn't deleted, present a diff button, and a overwrite action. if ( modtype != 3 ) { - QHBoxLayout *lo2 = new QHBoxLayout( lo ); - QPushButton *btnDiff = new QPushButton( i18n("&View Difference"), w ); + TQHBoxLayout *lo2 = new TQHBoxLayout( lo ); + TQPushButton *btnDiff = new TQPushButton( i18n("&View Difference"), w ); lo2->addStretch( 1 ); lo2->addWidget( btnDiff ); - connect( btnDiff, SIGNAL(clicked()), this, SLOT(slotDiff()) ); - QWhatsThis::add( btnDiff, i18n( + connect( btnDiff, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDiff()) ); + TQWhatsThis::add( btnDiff, i18n( "Calculates the difference between the editor contents and the disk " "file using diff(1) and opens the diff file with the default application " "for that.") ); @@ -1644,8 +1644,8 @@ void KateModOnHdPrompt::slotDiff() KProcIO *p = new KProcIO(); p->setComm( KProcess::All ); *p << "diff" << "-u" << "-" << m_doc->url().path(); - connect( p, SIGNAL(processExited(KProcess*)), this, SLOT(slotPDone(KProcess*)) ); - connect( p, SIGNAL(readReady(KProcIO*)), this, SLOT(slotPRead(KProcIO*)) ); + connect( p, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotPDone(KProcess*)) ); + connect( p, TQT_SIGNAL(readReady(KProcIO*)), this, TQT_SLOT(slotPRead(KProcIO*)) ); setCursor( WaitCursor ); @@ -1664,7 +1664,7 @@ void KateModOnHdPrompt::slotPRead( KProcIO *p) if ( ! m_tmpfile ) m_tmpfile = new KTempFile(); // put all the data we have in it - QString stmp; + TQString stmp; bool dataRead = false; while ( p->readln( stmp, false ) > -1 ) { |