summaryrefslogtreecommitdiffstats
path: root/quanta/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/plugins')
-rw-r--r--quanta/plugins/pluginconfig.ui46
-rw-r--r--quanta/plugins/plugineditor.ui26
-rw-r--r--quanta/plugins/quantaplugin.cpp10
-rw-r--r--quanta/plugins/quantaplugin.h5
-rw-r--r--quanta/plugins/quantapluginconfig.cpp2
-rw-r--r--quanta/plugins/quantapluginconfig.h1
-rw-r--r--quanta/plugins/quantaplugineditor.cpp12
-rw-r--r--quanta/plugins/quantaplugineditor.h3
-rw-r--r--quanta/plugins/quantaplugininterface.cpp14
-rw-r--r--quanta/plugins/quantaplugininterface.h9
10 files changed, 66 insertions, 62 deletions
diff --git a/quanta/plugins/pluginconfig.ui b/quanta/plugins/pluginconfig.ui
index a4cc6052..03f6de6d 100644
--- a/quanta/plugins/pluginconfig.ui
+++ b/quanta/plugins/pluginconfig.ui
@@ -11,7 +11,7 @@
</comment>
<author>(C) 2002 by Marc Britton &lt;consume@optushome.com.au&gt;, (C) 2003 by Andras Mantia &lt;amantia@kde.org&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>PluginConfig</cstring>
</property>
@@ -23,7 +23,7 @@
<height>281</height>
</rect>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>560</width>
<height>280</height>
@@ -36,7 +36,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="1" column="0">
+ <widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>validateCheckBox</cstring>
</property>
@@ -57,14 +57,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>247</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QGroupBox" row="0" column="0" rowspan="1" colspan="4">
+ <widget class="TQGroupBox" row="0" column="0" rowspan="1" colspan="4">
<property name="name">
<cstring>GroupBox2</cstring>
</property>
@@ -89,7 +89,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel3_2</cstring>
</property>
@@ -97,7 +97,7 @@
<string>Name:</string>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="2">
+ <widget class="TQLineEdit" row="0" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>pluginName</cstring>
</property>
@@ -117,13 +117,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>48</width>
<height>48</height>
</size>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>48</width>
<height>48</height>
@@ -133,7 +133,7 @@
<string></string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel3</cstring>
</property>
@@ -141,7 +141,7 @@
<string>Location:</string>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="1" rowspan="1" colspan="3">
+ <widget class="TQLineEdit" row="2" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>location</cstring>
</property>
@@ -149,7 +149,7 @@
<string>The exact location of the plugin. If not set the global search paths setting is used.</string>
</property>
</widget>
- <widget class="QLineEdit" row="3" column="1" rowspan="1" colspan="4">
+ <widget class="TQLineEdit" row="3" column="1" rowspan="1" colspan="4">
<property name="name">
<cstring>pluginFileName</cstring>
</property>
@@ -157,7 +157,7 @@
<string>The plugin executable or library name (with extension).</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>TextLabel4_2</cstring>
</property>
@@ -165,7 +165,7 @@
<string>File name:</string>
</property>
</widget>
- <widget class="QComboBox" row="1" column="1" rowspan="1" colspan="4">
+ <widget class="TQComboBox" row="1" column="1" rowspan="1" colspan="4">
<property name="name">
<cstring>outputWindow</cstring>
</property>
@@ -178,7 +178,7 @@
</sizepolicy>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -186,11 +186,11 @@
<string>Output window:</string>
</property>
</widget>
- <widget class="QPushButton" row="2" column="4">
+ <widget class="TQPushButton" row="2" column="4">
<property name="name">
<cstring>locationButton</cstring>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>28</width>
<height>32767</height>
@@ -200,7 +200,7 @@
<string>...</string>
</property>
</widget>
- <widget class="QCheckBox" row="5" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="5" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>readOnlyBox</cstring>
</property>
@@ -208,7 +208,7 @@
<string>&amp;Read only part</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="4" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -216,7 +216,7 @@
<string>Input:</string>
</property>
</widget>
- <widget class="QComboBox" row="4" column="2" rowspan="1" colspan="3">
+ <widget class="TQComboBox" row="4" column="2" rowspan="1" colspan="3">
<item>
<property name="text">
<string>None</string>
@@ -259,11 +259,11 @@
<includes>
<include location="global" impldecl="in implementation">kicondialog.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot>pluginType_highlighted(const QString&amp;)</slot>
<slot>slotPluginTypeHighlighted(const QString&amp;)</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kicondialog.h</includehint>
</includehints>
diff --git a/quanta/plugins/plugineditor.ui b/quanta/plugins/plugineditor.ui
index 104d9923..5188166c 100644
--- a/quanta/plugins/plugineditor.ui
+++ b/quanta/plugins/plugineditor.ui
@@ -10,7 +10,7 @@
***************************************************************************/
</comment>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>pluginEditor</cstring>
</property>
@@ -22,7 +22,7 @@
<height>306</height>
</rect>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>500</width>
<height>224</height>
@@ -41,7 +41,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel6</cstring>
</property>
@@ -49,7 +49,7 @@
<string>Search paths:</string>
</property>
</widget>
- <widget class="QGroupBox" row="1" column="0" rowspan="1" colspan="3">
+ <widget class="TQGroupBox" row="1" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>GroupBox3</cstring>
</property>
@@ -66,7 +66,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QListView" row="0" column="1" rowspan="5" colspan="1">
+ <widget class="TQListView" row="0" column="1" rowspan="5" colspan="1">
<column>
<property name="text">
<string>Name</string>
@@ -126,7 +126,7 @@
<cstring>pluginList</cstring>
</property>
</widget>
- <widget class="QPushButton" row="0" column="0">
+ <widget class="TQPushButton" row="0" column="0">
<property name="name">
<cstring>addButton</cstring>
</property>
@@ -137,7 +137,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton" row="1" column="0">
+ <widget class="TQPushButton" row="1" column="0">
<property name="name">
<cstring>configureButton</cstring>
</property>
@@ -145,7 +145,7 @@
<string>Configure...</string>
</property>
</widget>
- <widget class="QPushButton" row="2" column="0">
+ <widget class="TQPushButton" row="2" column="0">
<property name="name">
<cstring>removeButton</cstring>
</property>
@@ -163,14 +163,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>67</height>
</size>
</property>
</spacer>
- <widget class="QPushButton" row="4" column="0">
+ <widget class="TQPushButton" row="4" column="0">
<property name="name">
<cstring>refreshButton</cstring>
</property>
@@ -180,7 +180,7 @@
</widget>
</grid>
</widget>
- <widget class="QPushButton" row="0" column="2">
+ <widget class="TQPushButton" row="0" column="2">
<property name="name">
<cstring>addSearchPathButton</cstring>
</property>
@@ -188,7 +188,7 @@
<string>Add...</string>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>searchPaths</cstring>
</property>
@@ -204,5 +204,5 @@
<tabstop>refreshButton</tabstop>
<tabstop>pluginList</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/plugins/quantaplugin.cpp b/quanta/plugins/quantaplugin.cpp
index 628f38a7..bfed02c1 100644
--- a/quanta/plugins/quantaplugin.cpp
+++ b/quanta/plugins/quantaplugin.cpp
@@ -114,19 +114,19 @@ bool QuantaPlugin::load()
TQString ow = outputWindow();
m_targetWidget = new TQWidget(quantaApp);
if (m_readOnlyPart)
- m_part = KParts::ComponentFactory::createPartInstanceFromLibrary<KParts::ReadOnlyPart>(partInfo.baseName().latin1(), m_targetWidget, 0, m_targetWidget, 0 );
+ m_part = KParts::ComponentFactory::createPartInstanceFromLibrary<KParts::ReadOnlyPart>(partInfo.baseName().latin1(), m_targetWidget, 0, TQT_TQOBJECT(m_targetWidget), 0 );
else
- m_part = KParts::ComponentFactory::createPartInstanceFromLibrary<KParts::ReadWritePart>(partInfo.baseName().latin1(), m_targetWidget, 0, m_targetWidget, 0 );
+ m_part = KParts::ComponentFactory::createPartInstanceFromLibrary<KParts::ReadWritePart>(partInfo.baseName().latin1(), m_targetWidget, 0, TQT_TQOBJECT(m_targetWidget), 0 );
if(!m_part)
{
- KMessageBox::error(quantaApp, i18n("<qt>The <b>%1</b> plugin could not be loaded.<br>Possible reasons are:<br> - <b>%2</b> is not installed;<br> - the file <i>%3</i> is not installed or it is not reachable.").arg(m_name).arg(m_name).arg(m_fileName));
+ KMessageBox::error(quantaApp, i18n("<qt>The <b>%1</b> plugin could not be loaded.<br>Possible reasons are:<br> - <b>%2</b> is not installed;<br> - the file <i>%3</i> is not installed or it is not reachable.").tqarg(m_name).tqarg(m_name).tqarg(m_fileName));
delete m_targetWidget;
m_targetWidget = 0L;
return false;
}
m_part->setName(m_name.ascii()); // for better debug output
m_part->widget()->setName(m_name.ascii()); //needed to be able to dock the same plugin twice in separate toolviews
- m_part->widget()->setFocusPolicy(TQWidget::ClickFocus);
+ m_part->widget()->setFocusPolicy(TQ_ClickFocus);
quantaApp->slotNewPart(m_part, false); // register the part in the partmanager
return true;
}
@@ -155,7 +155,7 @@ bool QuantaPlugin::run()
}
case 3: { KURL url;
if ( Project::ref()->hasProject() &&
- (Project::ref()->contains(view->document()->url()) ||
+ (Project::ref()->tqcontains(view->document()->url()) ||
view->document()->isUntitled())
)
{
diff --git a/quanta/plugins/quantaplugin.h b/quanta/plugins/quantaplugin.h
index e3cd1758..969268da 100644
--- a/quanta/plugins/quantaplugin.h
+++ b/quanta/plugins/quantaplugin.h
@@ -36,9 +36,10 @@ class KMdiToolViewAccessor;
class QuantaView;
-class QuantaPlugin : public QObject
+class QuantaPlugin : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
QuantaPlugin();
~QuantaPlugin();
@@ -122,7 +123,7 @@ protected:
private: // Private attributes
TQString m_standardName;
KMdiToolViewAccessor* m_pluginToolView;
- TQWidget *m_targetWidget; //this will be the parent, used only to make the plugin widget hidden until addWidget is called
+ TQWidget *m_targetWidget; //this will be the tqparent, used only to make the plugin widget hidden until addWidget is called
};
#endif
diff --git a/quanta/plugins/quantapluginconfig.cpp b/quanta/plugins/quantapluginconfig.cpp
index 30fd6ee2..62f25553 100644
--- a/quanta/plugins/quantapluginconfig.cpp
+++ b/quanta/plugins/quantapluginconfig.cpp
@@ -77,7 +77,7 @@ void QuantaPluginConfig::accept()
/** Gets the plugin location */
void QuantaPluginConfig::selectLocation()
{
- TQString pluginLocation = KFileDialog::getExistingDirectory(TQString::null, this, i18n("Select Plugin Folder"));
+ TQString pluginLocation = KFileDialog::getExistingDirectory(TQString(), this, i18n("Select Plugin Folder"));
if(!pluginLocation.isNull())
{
m_pluginConfigWidget->location->setText(pluginLocation);
diff --git a/quanta/plugins/quantapluginconfig.h b/quanta/plugins/quantapluginconfig.h
index 26cf53e5..9390b61e 100644
--- a/quanta/plugins/quantapluginconfig.h
+++ b/quanta/plugins/quantapluginconfig.h
@@ -30,6 +30,7 @@ class TQString;
class QuantaPluginConfig : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
QuantaPluginConfig(TQWidget *, const char *);
~QuantaPluginConfig();
diff --git a/quanta/plugins/quantaplugineditor.cpp b/quanta/plugins/quantaplugineditor.cpp
index 42f6a237..db7f73ed 100644
--- a/quanta/plugins/quantaplugineditor.cpp
+++ b/quanta/plugins/quantaplugineditor.cpp
@@ -50,7 +50,7 @@ QuantaPluginEditor::QuantaPluginEditor(TQWidget *a_parent, const char *a_name)
setMainWidget(m_pluginEditorWidget);
m_pluginEditorWidget->pluginList->setSelectionMode(TQListView::Single);
m_pluginEditorWidget->pluginList->setAllColumnsShowFocus(true);
- m_pluginEditorWidget->pluginList->setColumnAlignment(2, Qt::AlignHCenter);
+ m_pluginEditorWidget->pluginList->setColumnAlignment(2, TQt::AlignHCenter);
connect(this, TQT_SIGNAL(pluginsChanged()), TQT_SLOT(refreshPlugins()));
connect(m_pluginEditorWidget->refreshButton, TQT_SIGNAL(clicked()), TQT_SLOT(refreshPlugins()));
@@ -100,7 +100,7 @@ void QuantaPluginEditor::addPlugin()
void QuantaPluginEditor::addSearchPath()
{
// Get a dir and append it to the line edit
- TQString appendDir = KFileDialog::getExistingDirectory(TQString::null, 0, i18n("Select Folder"));
+ TQString appendDir = KFileDialog::getExistingDirectory(TQString(), 0, i18n("Select Folder"));
if(!appendDir.isNull())
{
m_pluginEditorWidget->searchPaths->setText(m_pluginEditorWidget->searchPaths->text()+appendDir+":");
@@ -115,10 +115,10 @@ void QuantaPluginEditor::configurePlugin()
if(item)
key = item->text(0);
- if(!key.isNull() && m_plugins.find(key))
+ if(!key.isNull() && m_plugins.tqfind(key))
{
QuantaPluginConfig *configDlg = new QuantaPluginConfig(this, "pluginConfig");
- QuantaPlugin *curPlugin = m_plugins.find(key);
+ QuantaPlugin *curPlugin = m_plugins.tqfind(key);
PluginConfig *configWidget = static_cast<PluginConfig*>(configDlg->mainWidget());
configWidget->outputWindow->setCurrentText(curPlugin->outputWindow());
@@ -186,7 +186,7 @@ void QuantaPluginEditor::removePlugin()
TQListViewItem *currentItem = m_pluginEditorWidget->pluginList->currentItem();
if (currentItem)
{
- QuantaPlugin *plugin = m_plugins.find(currentItem->text(0));
+ QuantaPlugin *plugin = m_plugins.tqfind(currentItem->text(0));
if(plugin)
{
m_plugins.remove(plugin->pluginName());
@@ -212,7 +212,7 @@ void PluginEditorItem::paintCell(TQPainter *a_painter, const TQColorGroup &a_cg,
{
/*
if(a_column == 2)
- a_align = Qt::AlignCenter;
+ a_align = TQt::AlignCenter;
FIXME : Why won't QT let us align cell contents?
*/
TQListViewItem::paintCell(a_painter, a_cg, a_column, a_width, a_align);
diff --git a/quanta/plugins/quantaplugineditor.h b/quanta/plugins/quantaplugineditor.h
index 9f66e519..e26ad53f 100644
--- a/quanta/plugins/quantaplugineditor.h
+++ b/quanta/plugins/quantaplugineditor.h
@@ -42,6 +42,7 @@ class PluginEditor;
class QuantaPluginEditor : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
QuantaPluginEditor(TQWidget *, const char *);
@@ -69,7 +70,7 @@ protected:
PluginEditor *m_pluginEditorWidget;
};
-class PluginEditorItem : public QListViewItem
+class PluginEditorItem : public TQListViewItem
{
public:
PluginEditorItem(TQListView *);
diff --git a/quanta/plugins/quantaplugininterface.cpp b/quanta/plugins/quantaplugininterface.cpp
index 098c7828..73ba5a48 100644
--- a/quanta/plugins/quantaplugininterface.cpp
+++ b/quanta/plugins/quantaplugininterface.cpp
@@ -38,12 +38,12 @@
#include "resource.h"
#include "quantacommon.h"
-QuantaPluginInterface::QuantaPluginInterface(TQWidget *parent)
+QuantaPluginInterface::QuantaPluginInterface(TQWidget *tqparent)
{
- m_parent = parent;
+ m_parent = tqparent;
(void) new KAction( i18n( "Configure &Plugins..." ), 0, 0,
this, TQT_SLOT( slotPluginsEdit() ),
- ((KMainWindow*)parent)->actionCollection(), "configure_plugins" );
+ ((KMainWindow*)tqparent)->actionCollection(), "configure_plugins" );
m_pluginMenu = 0L;
// m_plugins.setAutoDelete(true);
}
@@ -71,7 +71,7 @@ void QuantaPluginInterface::readConfigFile(const TQString& configFile)
// now that we have a list of the plugins, go through and get the details of them
for(TQStringList::Iterator it = pList.begin();it != pList.end();++it)
{
- if (m_plugins.find(*it))
+ if (m_plugins.tqfind(*it))
continue;
config->setGroup(*it);
@@ -90,7 +90,7 @@ void QuantaPluginInterface::readConfigFile(const TQString& configFile)
if (pluginType == "Command Line")
{
emit hideSplash();
- KMessageBox::information(m_parent, i18n("<qt><b>%1</b> is a command line plugin. We have removed support for command-line plugins. However, the functionality has not been lost as script actions can still be used to run command-line tools. </qt>").arg(*it), i18n("Unsupported Plugin Type"), "CommandLinePluginWarning");
+ KMessageBox::information(m_parent, i18n("<qt><b>%1</b> is a command line plugin. We have removed support for command-line plugins. However, the functionality has not been lost as script actions can still be used to run command-line tools. </qt>").tqarg(*it), i18n("Unsupported Plugin Type"), "CommandLinePluginWarning");
continue;
}
@@ -176,7 +176,7 @@ bool QuantaPluginInterface::pluginAvailable(const TQString &a_name)
{
if (a_name.isEmpty())
return false;
- QuantaPlugin *availPlugin = m_plugins.find(a_name);
+ QuantaPlugin *availPlugin = m_plugins.tqfind(a_name);
if(availPlugin && QuantaPlugin::validatePlugin(availPlugin))
return true;
@@ -257,7 +257,7 @@ void QuantaPluginInterface::slotPluginsValidate()
{
invalidNames += "<br>" + invalidPlugins[i]->name();
}
- int answer = KMessageBox::questionYesNo(m_parent, i18n("<qt>The following plugins seems to be invalid:<b>%1</b>.<br><br>Do you want to edit the plugins?</qt>").arg(invalidNames), i18n("Invalid Plugins"), i18n("Edit Plugins"), i18n("Do Not Edit"));
+ int answer = KMessageBox::questionYesNo(m_parent, i18n("<qt>The following plugins seems to be invalid:<b>%1</b>.<br><br>Do you want to edit the plugins?</qt>").tqarg(invalidNames), i18n("Invalid Plugins"), i18n("Edit Plugins"), i18n("Do Not Edit"));
if(answer == KMessageBox::Yes)
{
slotPluginsEdit();
diff --git a/quanta/plugins/quantaplugininterface.h b/quanta/plugins/quantaplugininterface.h
index 2749fbd0..6711e9e0 100644
--- a/quanta/plugins/quantaplugininterface.h
+++ b/quanta/plugins/quantaplugininterface.h
@@ -35,9 +35,10 @@ class QuantaPlugin;
/**Provides an interface to the installed plugins
*@author Marc Britton
*/
-class QuantaPluginInterface : public QObject
+class QuantaPluginInterface : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* since this class is a singleton you must use this function to access it
@@ -45,10 +46,10 @@ public:
* the parameters are only used at the first call to create the class
*
*/
- static QuantaPluginInterface* const ref(TQWidget *parent = 0L)
+ static QuantaPluginInterface* const ref(TQWidget *tqparent = 0L)
{
static QuantaPluginInterface *m_ref;
- if (!m_ref) m_ref = new QuantaPluginInterface (parent);
+ if (!m_ref) m_ref = new QuantaPluginInterface (tqparent);
return m_ref;
}
@@ -76,7 +77,7 @@ private:
* If you need the class use QuantaPluginInterface::ref() for
* construction and reference
*/
- QuantaPluginInterface(TQWidget *parent);
+ QuantaPluginInterface(TQWidget *tqparent);
protected slots:
/** slot for the menu: validate */