summaryrefslogtreecommitdiffstats
path: root/kate/app/kateconfigdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kate/app/kateconfigdialog.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/app/kateconfigdialog.cpp')
-rw-r--r--kate/app/kateconfigdialog.cpp140
1 files changed, 70 insertions, 70 deletions
diff --git a/kate/app/kateconfigdialog.cpp b/kate/app/kateconfigdialog.cpp
index 62d86054b..47a7de19c 100644
--- a/kate/app/kateconfigdialog.cpp
+++ b/kate/app/kateconfigdialog.cpp
@@ -32,17 +32,17 @@
#include "katefilelist.h"
#include "kateexternaltools.h"
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qspinbox.h>
-#include <qvbox.h>
-#include <qwhatsthis.h>
-#include <qcombobox.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqspinbox.h>
+#include <tqvbox.h>
+#include <tqwhatsthis.h>
+#include <tqcombobox.h>
#include <kinstance.h>
#include <kdebug.h>
@@ -83,7 +83,7 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
pluginPages.setAutoDelete (false);
editorPages.setAutoDelete (false);
- QStringList path;
+ TQStringList path;
setShowIconsInTreeList(true);
@@ -95,75 +95,75 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
//BEGIN General page
path << i18n("Application") << i18n("General");
- QFrame* frGeneral = addPage(path, i18n("General Options"), BarIcon("gohome", KIcon::SizeSmall));
+ TQFrame* frGeneral = addPage(path, i18n("General Options"), BarIcon("gohome", KIcon::SizeSmall));
- QVBoxLayout *lo = new QVBoxLayout( frGeneral );
+ TQVBoxLayout *lo = new TQVBoxLayout( frGeneral );
lo->setSpacing(KDialog::spacingHint());
config->setGroup("General");
// GROUP with the one below: "Appearance"
- QButtonGroup *bgStartup = new QButtonGroup( 1, Qt::Horizontal, i18n("&Appearance"), frGeneral );
+ TQButtonGroup *bgStartup = new TQButtonGroup( 1, Qt::Horizontal, i18n("&Appearance"), frGeneral );
lo->addWidget( bgStartup );
// show full path in title
config->setGroup("General");
- cb_fullPath = new QCheckBox( i18n("&Show full path in title"), bgStartup);
+ cb_fullPath = new TQCheckBox( i18n("&Show full path in title"), bgStartup);
cb_fullPath->setChecked( mainWindow->viewManager()->getShowFullPath() );
- QWhatsThis::add(cb_fullPath,i18n("If this option is checked, the full document path will be shown in the window caption."));
- connect( cb_fullPath, SIGNAL( toggled( bool ) ), this, SLOT( slotChanged() ) );
+ TQWhatsThis::add(cb_fullPath,i18n("If this option is checked, the full document path will be shown in the window caption."));
+ connect( cb_fullPath, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) );
// GROUP with the one below: "Behavior"
- bgStartup = new QButtonGroup( 1, Qt::Horizontal, i18n("&Behavior"), frGeneral );
+ bgStartup = new TQButtonGroup( 1, Qt::Horizontal, i18n("&Behavior"), frGeneral );
lo->addWidget( bgStartup );
// sync the konsole ?
- cb_syncKonsole = new QCheckBox(bgStartup);
+ cb_syncKonsole = new TQCheckBox(bgStartup);
cb_syncKonsole->setText(i18n("Sync &terminal emulator with active document"));
cb_syncKonsole->setChecked(parent->syncKonsole);
- QWhatsThis::add( cb_syncKonsole, i18n(
+ TQWhatsThis::add( cb_syncKonsole, i18n(
"If this is checked, the built in Konsole will <code>cd</code> to the directory "
"of the active document when started and whenever the active document changes, "
"if the document is a local file.") );
- connect( cb_syncKonsole, SIGNAL( toggled( bool ) ), this, SLOT( slotChanged() ) );
+ connect( cb_syncKonsole, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) );
// modified files notification
- cb_modNotifications = new QCheckBox(
+ cb_modNotifications = new TQCheckBox(
i18n("Wa&rn about files modified by foreign processes"), bgStartup );
cb_modNotifications->setChecked( parent->modNotification );
- QWhatsThis::add( cb_modNotifications, i18n(
+ TQWhatsThis::add( cb_modNotifications, i18n(
"If enabled, when Kate receives focus you will be asked what to do with "
"files that have been modified on the hard disk. If not enabled, you will "
"be asked what to do with a file that has been modified on the hard disk only "
"when that file gains focus inside Kate.") );
- connect( cb_modNotifications, SIGNAL( toggled( bool ) ),
- this, SLOT( slotChanged() ) );
+ connect( cb_modNotifications, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( slotChanged() ) );
// GROUP with the one below: "Meta-informations"
- bgStartup = new QButtonGroup( 1, Qt::Horizontal, i18n("Meta-Information"), frGeneral );
+ bgStartup = new TQButtonGroup( 1, Qt::Horizontal, i18n("Meta-Information"), frGeneral );
lo->addWidget( bgStartup );
// save meta infos
- cb_saveMetaInfos = new QCheckBox( bgStartup );
+ cb_saveMetaInfos = new TQCheckBox( bgStartup );
cb_saveMetaInfos->setText(i18n("Keep &meta-information past sessions"));
cb_saveMetaInfos->setChecked(KateDocManager::self()->getSaveMetaInfos());
- QWhatsThis::add(cb_saveMetaInfos, i18n(
+ TQWhatsThis::add(cb_saveMetaInfos, i18n(
"Check this if you want document configuration like for example "
"bookmarks to be saved past editor sessions. The configuration will be "
"restored if the document has not changed when reopened."));
- connect( cb_saveMetaInfos, SIGNAL( toggled( bool ) ), this, SLOT( slotChanged() ) );
+ connect( cb_saveMetaInfos, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) );
// meta infos days
- QHBox *hbDmf = new QHBox( bgStartup );
+ TQHBox *hbDmf = new TQHBox( bgStartup );
hbDmf->setEnabled(KateDocManager::self()->getSaveMetaInfos());
- QLabel *lDmf = new QLabel( i18n("&Delete unused meta-information after:"), hbDmf );
- sb_daysMetaInfos = new QSpinBox( 0, 180, 1, hbDmf );
+ TQLabel *lDmf = new TQLabel( i18n("&Delete unused meta-information after:"), hbDmf );
+ sb_daysMetaInfos = new TQSpinBox( 0, 180, 1, hbDmf );
sb_daysMetaInfos->setSpecialValueText(i18n("(never)"));
sb_daysMetaInfos->setSuffix(i18n(" day(s)"));
sb_daysMetaInfos->setValue( KateDocManager::self()->getDaysMetaInfos() );
lDmf->setBuddy( sb_daysMetaInfos );
- connect( cb_saveMetaInfos, SIGNAL( toggled( bool ) ), hbDmf, SLOT( setEnabled( bool ) ) );
- connect( sb_daysMetaInfos, SIGNAL( valueChanged ( int ) ), this, SLOT( slotChanged() ) );
+ connect( cb_saveMetaInfos, TQT_SIGNAL( toggled( bool ) ), hbDmf, TQT_SLOT( setEnabled( bool ) ) );
+ connect( sb_daysMetaInfos, TQT_SIGNAL( valueChanged ( int ) ), this, TQT_SLOT( slotChanged() ) );
lo->addStretch(1); // :-] works correct without autoadd
//END General page
@@ -172,36 +172,36 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
//BEGIN Session page
path << i18n("Application") << i18n("Sessions");
- QFrame* frSessions = addPage(path, i18n("Session Management"), BarIcon("history", KIcon::SizeSmall));
+ TQFrame* frSessions = addPage(path, i18n("Session Management"), BarIcon("history", KIcon::SizeSmall));
- lo = new QVBoxLayout( frSessions );
+ lo = new TQVBoxLayout( frSessions );
lo->setSpacing(KDialog::spacingHint());
// GROUP with the one below: "Startup"
- bgStartup = new QButtonGroup( 1, Qt::Horizontal, i18n("Elements of Sessions"), frSessions );
+ bgStartup = new TQButtonGroup( 1, Qt::Horizontal, i18n("Elements of Sessions"), frSessions );
lo->addWidget( bgStartup );
// restore view config
- cb_restoreVC = new QCheckBox( bgStartup );
+ cb_restoreVC = new TQCheckBox( bgStartup );
cb_restoreVC->setText(i18n("Include &window configuration"));
config->setGroup("General");
cb_restoreVC->setChecked( config->readBoolEntry("Restore Window Configuration", true) );
- QWhatsThis::add(cb_restoreVC, i18n(
+ TQWhatsThis::add(cb_restoreVC, i18n(
"Check this if you want all your views and frames restored each time you open Kate"));
- connect( cb_restoreVC, SIGNAL( toggled( bool ) ), this, SLOT( slotChanged() ) );
+ connect( cb_restoreVC, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) );
- QRadioButton *rb1, *rb2, *rb3;
+ TQRadioButton *rb1, *rb2, *rb3;
- sessions_start = new QButtonGroup( 1, Qt::Horizontal, i18n("Behavior on Application Startup"), frSessions );
+ sessions_start = new TQButtonGroup( 1, Qt::Horizontal, i18n("Behavior on Application Startup"), frSessions );
lo->add (sessions_start);
sessions_start->setRadioButtonExclusive( true );
- sessions_start->insert( rb1=new QRadioButton( i18n("&Start new session"), sessions_start ), 0 );
- sessions_start->insert( rb2=new QRadioButton( i18n("&Load last-used session"), sessions_start ), 1 );
- sessions_start->insert( rb3=new QRadioButton( i18n("&Manually choose a session"), sessions_start ), 2 );
+ sessions_start->insert( rb1=new TQRadioButton( i18n("&Start new session"), sessions_start ), 0 );
+ sessions_start->insert( rb2=new TQRadioButton( i18n("&Load last-used session"), sessions_start ), 1 );
+ sessions_start->insert( rb3=new TQRadioButton( i18n("&Manually choose a session"), sessions_start ), 2 );
config->setGroup("General");
- QString sesStart (config->readEntry ("Startup Session", "manual"));
+ TQString sesStart (config->readEntry ("Startup Session", "manual"));
if (sesStart == "new")
sessions_start->setButton (0);
else if (sesStart == "last")
@@ -209,20 +209,20 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
else
sessions_start->setButton (2);
- 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()));
- sessions_exit = new QButtonGroup( 1, Qt::Horizontal, i18n("Behavior on Application Exit or Session Switch"), frSessions );
+ sessions_exit = new TQButtonGroup( 1, Qt::Horizontal, i18n("Behavior on Application Exit or Session Switch"), frSessions );
lo->add (sessions_exit);
sessions_exit->setRadioButtonExclusive( true );
- sessions_exit->insert( rb1=new QRadioButton( i18n("&Do not save session"), sessions_exit ), 0 );
- sessions_exit->insert( rb2=new QRadioButton( i18n("&Save session"), sessions_exit ), 1 );
- sessions_exit->insert( rb3=new QRadioButton( i18n("&Ask user"), sessions_exit ), 2 );
+ sessions_exit->insert( rb1=new TQRadioButton( i18n("&Do not save session"), sessions_exit ), 0 );
+ sessions_exit->insert( rb2=new TQRadioButton( i18n("&Save session"), sessions_exit ), 1 );
+ sessions_exit->insert( rb3=new TQRadioButton( i18n("&Ask user"), sessions_exit ), 2 );
config->setGroup("General");
- QString sesExit (config->readEntry ("Session Exit", "save"));
+ TQString sesExit (config->readEntry ("Session Exit", "save"));
if (sesExit == "discard")
sessions_exit->setButton (0);
else if (sesExit == "save")
@@ -230,9 +230,9 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
else
sessions_exit->setButton (2);
- 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()));
lo->addStretch(1); // :-] works correct without autoadd
//END Session page
@@ -242,11 +242,11 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
// file selector page
path << i18n("Application") << i18n("File Selector");
- QVBox *page = addVBoxPage( path, i18n("File Selector Settings"),
+ TQVBox *page = addVBoxPage( path, i18n("File Selector Settings"),
BarIcon("fileopen", KIcon::SizeSmall) );
fileSelConfigPage = new KFSConfigPage( page, "file selector config page",
mainWindow->fileselector );
- connect( fileSelConfigPage, SIGNAL( changed() ), this, SLOT( slotChanged() ) );
+ connect( fileSelConfigPage, TQT_SIGNAL( changed() ), this, TQT_SLOT( slotChanged() ) );
path.clear();
path << i18n("Application") << i18n("Document List");
@@ -254,14 +254,14 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
BarIcon("view_text", KIcon::SizeSmall) );
filelistConfigPage = new KFLConfigPage( page, "file list config page",
mainWindow->filelist );
- connect( filelistConfigPage, SIGNAL( changed() ), this, SLOT( slotChanged() ) );
+ connect( filelistConfigPage, TQT_SIGNAL( changed() ), this, TQT_SLOT( slotChanged() ) );
path.clear();
path << i18n("Application") << i18n("Plugins");
- /*QVBox **/page=addVBoxPage(path,i18n("Plugin Manager"),
+ /*TQVBox **/page=addVBoxPage(path,i18n("Plugin Manager"),
BarIcon("connect_established",KIcon::SizeSmall));
KateConfigPluginPage *configPluginPage = new KateConfigPluginPage(page, this);
- connect( configPluginPage, SIGNAL( changed() ), this, SLOT( slotChanged() ) );
+ connect( configPluginPage, TQT_SIGNAL( changed() ), this, TQT_SLOT( slotChanged() ) );
// Tools->External Tools menu
path.clear();
@@ -269,7 +269,7 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
page = addVBoxPage( path, i18n("External Tools"),
BarIcon("configure", KIcon::SizeSmall) );
configExternalToolsPage = new KateExternalToolsConfigWidget(page, "external tools config page");
- connect( configExternalToolsPage, SIGNAL(changed()), this, SLOT(slotChanged()) );
+ connect( configExternalToolsPage, TQT_SIGNAL(changed()), this, TQT_SLOT(slotChanged()) );
// editor widgets from kwrite/kwdialog
path.clear();
@@ -280,11 +280,11 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
{
path.clear();
path << i18n("Editor") << KTextEditor::configInterfaceExtension (v->document())->configPageName (i);
- /*QVBox **/page = addVBoxPage(path, KTextEditor::configInterfaceExtension (v->document())->configPageFullName (i),
+ /*TQVBox **/page = addVBoxPage(path, KTextEditor::configInterfaceExtension (v->document())->configPageFullName (i),
KTextEditor::configInterfaceExtension (v->document())->configPagePixmap(i, KIcon::SizeSmall) );
KTextEditor::ConfigPage *cPage = KTextEditor::configInterfaceExtension (v->document())->configPage(i, page);
- connect( cPage, SIGNAL( changed() ), this, SLOT( slotChanged() ) );
+ connect( cPage, TQT_SIGNAL( changed() ), this, TQT_SLOT( slotChanged() ) );
editorPages.append (cPage);
}
@@ -312,15 +312,15 @@ void KateConfigDialog::addPluginPage (Kate::Plugin *plugin)
for (uint i=0; i<Kate::pluginConfigInterfaceExtension(plugin)->configPages(); i++)
{
- QStringList path;
+ TQStringList path;
path.clear();
path << i18n("Application")<<i18n("Plugins") << Kate::pluginConfigInterfaceExtension(plugin)->configPageName(i);
- QVBox *page=addVBoxPage(path, Kate::pluginConfigInterfaceExtension(plugin)->configPageFullName(i), Kate::pluginConfigInterfaceExtension(plugin)->configPagePixmap(i, KIcon::SizeSmall));
+ TQVBox *page=addVBoxPage(path, Kate::pluginConfigInterfaceExtension(plugin)->configPageFullName(i), Kate::pluginConfigInterfaceExtension(plugin)->configPagePixmap(i, KIcon::SizeSmall));
PluginPageListItem *info=new PluginPageListItem;
info->plugin = plugin;
info->page = Kate::pluginConfigInterfaceExtension(plugin)->configPage (i, page);
- connect( info->page, SIGNAL( changed() ), this, SLOT( slotChanged() ) );
+ connect( info->page, TQT_SIGNAL( changed() ), this, TQT_SLOT( slotChanged() ) );
pluginPages.append(info);
}
}
@@ -334,7 +334,7 @@ void KateConfigDialog::removePluginPage (Kate::Plugin *plugin)
{
if ( pluginPages.at(i)->plugin == plugin )
{
- QWidget *w = pluginPages.at(i)->page->parentWidget();
+ TQWidget *w = pluginPages.at(i)->page->parentWidget();
delete pluginPages.at(i)->page;
delete w;
pluginPages.remove(pluginPages.at(i));