summaryrefslogtreecommitdiffstats
path: root/konqueror/shellcmdplugin
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 /konqueror/shellcmdplugin
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 'konqueror/shellcmdplugin')
-rw-r--r--konqueror/shellcmdplugin/kshellcmddialog.cpp20
-rw-r--r--konqueror/shellcmdplugin/kshellcmddialog.h4
-rw-r--r--konqueror/shellcmdplugin/kshellcmdexecutor.cpp24
-rw-r--r--konqueror/shellcmdplugin/kshellcmdexecutor.h12
-rw-r--r--konqueror/shellcmdplugin/kshellcmdplugin.cpp12
-rw-r--r--konqueror/shellcmdplugin/kshellcmdplugin.h2
6 files changed, 37 insertions, 37 deletions
diff --git a/konqueror/shellcmdplugin/kshellcmddialog.cpp b/konqueror/shellcmdplugin/kshellcmddialog.cpp
index b39e35cd..eefa5733 100644
--- a/konqueror/shellcmdplugin/kshellcmddialog.cpp
+++ b/konqueror/shellcmdplugin/kshellcmddialog.cpp
@@ -17,9 +17,9 @@
Boston, MA 02110-1301, USA.
*/
-#include <qhbox.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqhbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
#include <kstdguiitem.h>
@@ -28,15 +28,15 @@
#include "kshellcmddialog.h"
#include "kshellcmdexecutor.h"
-KShellCommandDialog::KShellCommandDialog(const QString& title, const QString& command, QWidget* parent, bool modal)
+KShellCommandDialog::KShellCommandDialog(const TQString& title, const TQString& command, TQWidget* parent, bool modal)
:KDialog(parent,"p",modal)
{
- QVBoxLayout * box=new QVBoxLayout (this,marginHint(),spacingHint());
+ TQVBoxLayout * box=new TQVBoxLayout (this,marginHint(),spacingHint());
- QLabel *label=new QLabel(title,this);
+ TQLabel *label=new TQLabel(title,this);
m_shell=new KShellCommandExecutor(command,this);
- QHBox *buttonsBox=new QHBox(this);
+ TQHBox *buttonsBox=new TQHBox(this);
buttonsBox->setSpacing(spacingHint());
cancelButton= new KPushButton(KStdGuiItem::cancel(), buttonsBox);
@@ -54,9 +54,9 @@ KShellCommandDialog::KShellCommandDialog(const QString& title, const QString& co
m_shell->setFocus();
- connect(cancelButton, SIGNAL(clicked()), m_shell, SLOT(slotFinished()));
- connect(m_shell, SIGNAL(finished()), this, SLOT(disableStopButton()));
- connect(closeButton,SIGNAL(clicked()), this, SLOT(slotClose()));
+ connect(cancelButton, TQT_SIGNAL(clicked()), m_shell, TQT_SLOT(slotFinished()));
+ connect(m_shell, TQT_SIGNAL(finished()), this, TQT_SLOT(disableStopButton()));
+ connect(closeButton,TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClose()));
}
KShellCommandDialog::~KShellCommandDialog()
diff --git a/konqueror/shellcmdplugin/kshellcmddialog.h b/konqueror/shellcmdplugin/kshellcmddialog.h
index 790c8e0d..86802805 100644
--- a/konqueror/shellcmdplugin/kshellcmddialog.h
+++ b/konqueror/shellcmdplugin/kshellcmddialog.h
@@ -20,7 +20,7 @@
#ifndef SHELLCOMMANDDIALOG_H
#define SHELLCOMMANDDIALOG_H
-#include <qstring.h>
+#include <tqstring.h>
#include <kpushbutton.h>
#include <kdialog.h>
@@ -31,7 +31,7 @@ class KShellCommandDialog:public KDialog
{
Q_OBJECT
public:
- KShellCommandDialog(const QString& title, const QString& command, QWidget* parent=0, bool modal=false);
+ KShellCommandDialog(const TQString& title, const TQString& command, TQWidget* parent=0, bool modal=false);
virtual ~KShellCommandDialog();
//blocking
int executeCommand();
diff --git a/konqueror/shellcmdplugin/kshellcmdexecutor.cpp b/konqueror/shellcmdplugin/kshellcmdexecutor.cpp
index c8348800..167f0f81 100644
--- a/konqueror/shellcmdplugin/kshellcmdexecutor.cpp
+++ b/konqueror/shellcmdplugin/kshellcmdexecutor.cpp
@@ -24,15 +24,15 @@
#include <signal.h>
#include <stdlib.h>
-#include <qsocketnotifier.h>
+#include <tqsocketnotifier.h>
#include <kinputdialog.h>
#include <kglobalsettings.h>
#include <kdesu/process.h>
#include <klocale.h>
-KShellCommandExecutor::KShellCommandExecutor(const QString& command, QWidget* parent)
-:QTextView(parent)
+KShellCommandExecutor::KShellCommandExecutor(const TQString& command, TQWidget* parent)
+:TQTextView(parent)
,m_shellProcess(0)
,m_command(command)
,m_readNotifier(0)
@@ -73,7 +73,7 @@ int KShellCommandExecutor::exec()
args+=m_command.local8Bit();
//kdDebug()<<"------- executing: "<<m_command.local8Bit()<<endl;
- QCString shell( getenv("SHELL") );
+ TQCString shell( getenv("SHELL") );
if (shell.isEmpty())
shell = "sh";
@@ -84,11 +84,11 @@ int KShellCommandExecutor::exec()
return 0;
}
- m_readNotifier=new QSocketNotifier(m_shellProcess->fd(),QSocketNotifier::Read, this);
- m_writeNotifier=new QSocketNotifier(m_shellProcess->fd(),QSocketNotifier::Write, this);
+ m_readNotifier=new TQSocketNotifier(m_shellProcess->fd(),TQSocketNotifier::Read, this);
+ m_writeNotifier=new TQSocketNotifier(m_shellProcess->fd(),TQSocketNotifier::Write, this);
m_writeNotifier->setEnabled(false);
- connect (m_readNotifier, SIGNAL(activated(int)), this,SLOT(readDataFromShell()));
- connect (m_writeNotifier, SIGNAL(activated(int)), this,SLOT(writeDataToShell()));
+ connect (m_readNotifier, TQT_SIGNAL(activated(int)), this,TQT_SLOT(readDataFromShell()));
+ connect (m_writeNotifier, TQT_SIGNAL(activated(int)), this,TQT_SLOT(writeDataToShell()));
return 1;
}
@@ -108,7 +108,7 @@ void KShellCommandExecutor::readDataFromShell()
{
//kdDebug()<<"***********************\n"<<buffer<<"###################\n"<<endl;
buffer[bytesRead]='\0';
- this->append(QString::fromLocal8Bit(buffer));
+ this->append(TQString::fromLocal8Bit(buffer));
setTextFormat(PlainText);
};
}
@@ -117,11 +117,11 @@ void KShellCommandExecutor::writeDataToShell()
{
//kdDebug()<<"--------- writing ------------"<<endl;
bool ok;
- QString str = KInputDialog::getText( QString::null,
- i18n( "Input Required:" ), QString::null, &ok, this );
+ TQString str = KInputDialog::getText( TQString::null,
+ i18n( "Input Required:" ), TQString::null, &ok, this );
if ( ok )
{
- QCString input=str.local8Bit();
+ TQCString input=str.local8Bit();
::write(m_shellProcess->fd(),input,input.length());
::write(m_shellProcess->fd(),"\n",1);
}
diff --git a/konqueror/shellcmdplugin/kshellcmdexecutor.h b/konqueror/shellcmdplugin/kshellcmdexecutor.h
index 66b066a8..db19e410 100644
--- a/konqueror/shellcmdplugin/kshellcmdexecutor.h
+++ b/konqueror/shellcmdplugin/kshellcmdexecutor.h
@@ -20,8 +20,8 @@
#ifndef SHELLCOMMANDEXECUTOR_H
#define SHELLCOMMANDEXECUTOR_H
-#include <qstring.h>
-#include <qtextview.h>
+#include <tqstring.h>
+#include <tqtextview.h>
class PtyProcess;
class QSocketNotifier;
@@ -30,7 +30,7 @@ class KShellCommandExecutor:public QTextView
{
Q_OBJECT
public:
- KShellCommandExecutor(const QString& command, QWidget* parent=0);
+ KShellCommandExecutor(const TQString& command, TQWidget* parent=0);
virtual ~KShellCommandExecutor();
int exec();
signals:
@@ -39,9 +39,9 @@ class KShellCommandExecutor:public QTextView
void slotFinished();
protected:
PtyProcess *m_shellProcess;
- QString m_command;
- QSocketNotifier *m_readNotifier;
- QSocketNotifier *m_writeNotifier;
+ TQString m_command;
+ TQSocketNotifier *m_readNotifier;
+ TQSocketNotifier *m_writeNotifier;
protected slots:
void readDataFromShell();
void writeDataToShell();
diff --git a/konqueror/shellcmdplugin/kshellcmdplugin.cpp b/konqueror/shellcmdplugin/kshellcmdplugin.cpp
index b7f07ec8..7c39fb82 100644
--- a/konqueror/shellcmdplugin/kshellcmdplugin.cpp
+++ b/konqueror/shellcmdplugin/kshellcmdplugin.cpp
@@ -26,15 +26,15 @@
#include <kgenericfactory.h>
#include <kio/netaccess.h>
-KShellCmdPlugin::KShellCmdPlugin( QObject* parent, const char* name,
- const QStringList & )
+KShellCmdPlugin::KShellCmdPlugin( TQObject* parent, const char* name,
+ const TQStringList & )
: KParts::Plugin( parent, name )
{
if (!kapp->authorize("shell_access"))
return;
new KAction( i18n( "&Execute Shell Command..." ), "run", CTRL+Key_E, this,
- SLOT( slotExecuteShellCommand() ), actionCollection(), "executeshellcommand" );
+ TQT_SLOT( slotExecuteShellCommand() ), actionCollection(), "executeshellcommand" );
}
void KShellCmdPlugin::slotExecuteShellCommand()
@@ -51,7 +51,7 @@ void KShellCmdPlugin::slotExecuteShellCommand()
KMessageBox::sorry(part->widget(),i18n("Executing shell commands works only on local directories."));
return;
}
- QString path;
+ TQString path;
if ( part->currentItem() )
{
// Putting the complete path to the selected file isn't really necessary,
@@ -65,12 +65,12 @@ void KShellCmdPlugin::slotExecuteShellCommand()
path = url.path();
}
bool ok;
- QString cmd = KInputDialog::getText( i18n("Execute Shell Command"),
+ TQString cmd = KInputDialog::getText( i18n("Execute Shell Command"),
i18n( "Execute shell command in current directory:" ),
KProcess::quote( path ), &ok, part->widget() );
if ( ok )
{
- QString chDir;
+ TQString chDir;
chDir="cd ";
chDir+=KProcess::quote(part->url().path());
chDir+="; ";
diff --git a/konqueror/shellcmdplugin/kshellcmdplugin.h b/konqueror/shellcmdplugin/kshellcmdplugin.h
index 3e141580..f942c82b 100644
--- a/konqueror/shellcmdplugin/kshellcmdplugin.h
+++ b/konqueror/shellcmdplugin/kshellcmdplugin.h
@@ -26,7 +26,7 @@ class KShellCmdPlugin : public KParts::Plugin
{
Q_OBJECT
public:
- KShellCmdPlugin( QObject* parent, const char* name, const QStringList & );
+ KShellCmdPlugin( TQObject* parent, const char* name, const TQStringList & );
~KShellCmdPlugin() {}
public slots: