forked from qt-creator/qt-creator
Make the "sort selection" tool do something.
* Handle <input> tag. * Pass input to running process. * Search for executable in path. * Add "CurrentSelection" variable. Remaining issue: ReplaceSelection output handling.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user