diff options
Diffstat (limited to 'quanta/plugins/quantaplugineditor.cpp')
-rw-r--r-- | quanta/plugins/quantaplugineditor.cpp | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/quanta/plugins/quantaplugineditor.cpp b/quanta/plugins/quantaplugineditor.cpp index e7c32ec0..42f6a237 100644 --- a/quanta/plugins/quantaplugineditor.cpp +++ b/quanta/plugins/quantaplugineditor.cpp @@ -24,14 +24,14 @@ #include <kdialogbase.h> /* QT INCLUDES */ -#include <qwidget.h> -#include <qobject.h> -#include <qdict.h> -#include <qcheckbox.h> -#include <qpushbutton.h> -#include <qlineedit.h> -#include <qcombobox.h> -#include <qlistview.h> +#include <tqwidget.h> +#include <tqobject.h> +#include <tqdict.h> +#include <tqcheckbox.h> +#include <tqpushbutton.h> +#include <tqlineedit.h> +#include <tqcombobox.h> +#include <tqlistview.h> /* OTHER INCLUDES */ #include "quantaplugineditor.h" @@ -41,32 +41,32 @@ #include "plugineditor.h" #include "resource.h" -QuantaPluginEditor::QuantaPluginEditor(QWidget *a_parent, const char *a_name) +QuantaPluginEditor::QuantaPluginEditor(TQWidget *a_parent, const char *a_name) : KDialogBase(a_parent, a_name, true, i18n("Edit Plugins"), KDialogBase::Ok | KDialogBase::Cancel) { // m_plugins.setAutoDelete(true); m_pluginEditorWidget = new PluginEditor(this); setMainWidget(m_pluginEditorWidget); - m_pluginEditorWidget->pluginList->setSelectionMode(QListView::Single); + m_pluginEditorWidget->pluginList->setSelectionMode(TQListView::Single); m_pluginEditorWidget->pluginList->setAllColumnsShowFocus(true); m_pluginEditorWidget->pluginList->setColumnAlignment(2, Qt::AlignHCenter); - connect(this, SIGNAL(pluginsChanged()), SLOT(refreshPlugins())); - connect(m_pluginEditorWidget->refreshButton, SIGNAL(clicked()), SLOT(refreshPlugins())); - connect(m_pluginEditorWidget->addButton, SIGNAL(clicked()), SLOT(addPlugin())); - connect(m_pluginEditorWidget->removeButton, SIGNAL(clicked()), SLOT(removePlugin())); - connect(m_pluginEditorWidget->addSearchPathButton, SIGNAL(clicked()), SLOT(addSearchPath())); - connect(m_pluginEditorWidget->configureButton, SIGNAL(clicked()), SLOT(configurePlugin())); - connect(m_pluginEditorWidget->pluginList, SIGNAL(doubleClicked(QListViewItem*, const QPoint&, int)), - SLOT(configurePlugin(QListViewItem*, const QPoint&, int))); + connect(this, TQT_SIGNAL(pluginsChanged()), TQT_SLOT(refreshPlugins())); + connect(m_pluginEditorWidget->refreshButton, TQT_SIGNAL(clicked()), TQT_SLOT(refreshPlugins())); + connect(m_pluginEditorWidget->addButton, TQT_SIGNAL(clicked()), TQT_SLOT(addPlugin())); + connect(m_pluginEditorWidget->removeButton, TQT_SIGNAL(clicked()), TQT_SLOT(removePlugin())); + connect(m_pluginEditorWidget->addSearchPathButton, TQT_SIGNAL(clicked()), TQT_SLOT(addSearchPath())); + connect(m_pluginEditorWidget->configureButton, TQT_SIGNAL(clicked()), TQT_SLOT(configurePlugin())); + connect(m_pluginEditorWidget->pluginList, TQT_SIGNAL(doubleClicked(TQListViewItem*, const TQPoint&, int)), + TQT_SLOT(configurePlugin(TQListViewItem*, const TQPoint&, int))); } QuantaPluginEditor::~QuantaPluginEditor() { } -QDict<QuantaPlugin> QuantaPluginEditor::plugins() +TQDict<QuantaPlugin> QuantaPluginEditor::plugins() { return m_plugins; } @@ -90,7 +90,7 @@ void QuantaPluginEditor::addPlugin() newPlugin->setOutputWindow(configWidget->outputWindow->currentText()); newPlugin->setStandard(false); newPlugin->setIcon(configWidget->iconButton->icon()); - QString pluginName = newPlugin->pluginName(); + TQString pluginName = newPlugin->pluginName(); m_plugins.insert(pluginName, newPlugin); emit pluginsChanged(); } @@ -100,7 +100,7 @@ void QuantaPluginEditor::addPlugin() void QuantaPluginEditor::addSearchPath() { // Get a dir and append it to the line edit - QString appendDir = KFileDialog::getExistingDirectory(QString::null, 0, i18n("Select Folder")); + TQString appendDir = KFileDialog::getExistingDirectory(TQString::null, 0, i18n("Select Folder")); if(!appendDir.isNull()) { m_pluginEditorWidget->searchPaths->setText(m_pluginEditorWidget->searchPaths->text()+appendDir+":"); @@ -110,8 +110,8 @@ void QuantaPluginEditor::addSearchPath() void QuantaPluginEditor::configurePlugin() { // create a new config dialog. populate with plugin data - QString key; - QListViewItem *item = m_pluginEditorWidget->pluginList->currentItem(); + TQString key; + TQListViewItem *item = m_pluginEditorWidget->pluginList->currentItem(); if(item) key = item->text(0); @@ -146,7 +146,7 @@ void QuantaPluginEditor::configurePlugin() } } -void QuantaPluginEditor::configurePlugin(QListViewItem* item, const QPoint&, int) +void QuantaPluginEditor::configurePlugin(TQListViewItem* item, const TQPoint&, int) { if (item) configurePlugin(); @@ -157,15 +157,15 @@ void QuantaPluginEditor::refreshPlugins() // call validate on all plugins to refresh their status m_pluginEditorWidget->pluginList->clear(); - QDictIterator<QuantaPlugin> it(m_plugins); + TQDictIterator<QuantaPlugin> it(m_plugins); for(;it.current();++it) { - QListViewItem *newItem = new PluginEditorItem(m_pluginEditorWidget->pluginList); + TQListViewItem *newItem = new PluginEditorItem(m_pluginEditorWidget->pluginList); QuantaPlugin *curPlugin = it.current(); newItem->setText(0, curPlugin->pluginName()); - QPixmap statusIcon; + TQPixmap statusIcon; bool isValid = QuantaPlugin::validatePlugin(curPlugin); if(isValid) statusIcon = SmallIcon("ok", KGlobal::instance()); @@ -183,7 +183,7 @@ void QuantaPluginEditor::refreshPlugins() void QuantaPluginEditor::removePlugin() { - QListViewItem *currentItem = m_pluginEditorWidget->pluginList->currentItem(); + TQListViewItem *currentItem = m_pluginEditorWidget->pluginList->currentItem(); if (currentItem) { QuantaPlugin *plugin = m_plugins.find(currentItem->text(0)); @@ -196,32 +196,32 @@ void QuantaPluginEditor::removePlugin() } } -void QuantaPluginEditor::setPlugins(QDict<QuantaPlugin> a_plugins) +void QuantaPluginEditor::setPlugins(TQDict<QuantaPlugin> a_plugins) { m_plugins = a_plugins; emit pluginsChanged(); } -PluginEditorItem::PluginEditorItem(QListView *a_parent) - : QListViewItem(a_parent) +PluginEditorItem::PluginEditorItem(TQListView *a_parent) + : TQListViewItem(a_parent) { } -void PluginEditorItem::paintCell(QPainter *a_painter, const QColorGroup &a_cg, int a_column, int a_width, int a_align) +void PluginEditorItem::paintCell(TQPainter *a_painter, const TQColorGroup &a_cg, int a_column, int a_width, int a_align) { /* if(a_column == 2) a_align = Qt::AlignCenter; FIXME : Why won't QT let us align cell contents? */ - QListViewItem::paintCell(a_painter, a_cg, a_column, a_width, a_align); + TQListViewItem::paintCell(a_painter, a_cg, a_column, a_width, a_align); } /** No descriptions */ -void QuantaPluginEditor::setSearchPaths(const QStringList& paths) +void QuantaPluginEditor::setSearchPaths(const TQStringList& paths) { - QString str; + TQString str; for (uint i =0; i < paths.count(); i++) { str += paths[i] +":"; @@ -229,10 +229,10 @@ void QuantaPluginEditor::setSearchPaths(const QStringList& paths) m_pluginEditorWidget->searchPaths->setText(str); } /** No descriptions */ -QStringList QuantaPluginEditor::searchPathList() +TQStringList QuantaPluginEditor::searchPathList() { - QString str = m_pluginEditorWidget->searchPaths->text(); - QStringList paths = QStringList::split(":",str); + TQString str = m_pluginEditorWidget->searchPaths->text(); + TQStringList paths = TQStringList::split(":",str); return paths; } |