make terminal emulator configurable centrally

this includes changing the runInTerminal.command command line.
the terminal setting mock from the debugger plugin is gone again.
This commit is contained in:
Oswald Buddenhagen
2009-04-09 20:09:10 +02:00
parent c8c183f6b4
commit 894ee04ee0
12 changed files with 154 additions and 42 deletions

View File

@@ -47,6 +47,7 @@ QT_END_NAMESPACE
#endif
QT_BEGIN_NAMESPACE
class QSettings;
class QTemporaryFile;
QT_END_NAMESPACE
@@ -72,6 +73,13 @@ public:
int exitCode() const { return m_appCode; } // This will be the signal number if exitStatus == CrashExit
QProcess::ExitStatus exitStatus() const { return m_appStatus; }
#ifdef Q_OS_UNIX
void setSettings(QSettings *settings) { m_settings = settings; }
static QString defaultTerminalEmulator();
static QString terminalEmulator(const QSettings *settings);
static void setTerminalEmulator(QSettings *settings, const QString &term);
#endif
signals:
void processError(const QString &error);
// These reflect the state of the actual client process
@@ -114,6 +122,7 @@ private:
#else
QProcess m_process;
QByteArray m_stubServerDir;
QSettings *m_settings;
#endif
};