From 10b6b2936be180001b7618fadf8c69c70c3a2e3e Mon Sep 17 00:00:00 2001 From: con Date: Thu, 9 Dec 2010 14:57:22 +0100 Subject: Make the "sort selection" tool do something. * Handle tag. * Pass input to running process. * Search for executable in path. * Add "CurrentSelection" variable. Remaining issue: ReplaceSelection output handling. --- src/plugins/coreplugin/externaltool.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/coreplugin/externaltool.h') diff --git a/src/plugins/coreplugin/externaltool.h b/src/plugins/coreplugin/externaltool.h index ffb1c8a491..d89fcdd55c 100644 --- a/src/plugins/coreplugin/externaltool.h +++ b/src/plugins/coreplugin/externaltool.h @@ -66,6 +66,7 @@ public: QStringList executables() const; QString arguments() const; + QString input() const; QString workingDirectory() const; static ExternalTool *createFromXml(const QByteArray &xml, QString *errorMessage = 0, const QString &locale = QString()); @@ -78,6 +79,7 @@ private: int m_order; QStringList m_executables; QString m_arguments; + QString m_input; QString m_workingDirectory; OutputHandling m_outputHandling; OutputHandling m_errorHandling; @@ -90,6 +92,7 @@ public: ExternalToolRunner(const ExternalTool *tool); private slots: + void started(); void finished(); void error(QProcess::ProcessError error); void readStandardOutput(); @@ -102,6 +105,7 @@ private: const ExternalTool *m_tool; QString m_resolvedExecutable; QStringList m_resolvedArguments; + QString m_resolvedInput; QString m_resolvedWorkingDirectory; QProcess *m_process; QTextCodec *m_outputCodec; -- cgit v1.2.1