mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 08:34:42 +08:00
58 lines
2.7 KiB
C++
58 lines
2.7 KiB
C++
#pragma once
|
|
|
|
#include <QtWidgets/QDialog>
|
|
#include <QtWidgets/QButtonGroup>
|
|
#include <QtCore/QString>
|
|
|
|
#include "ui_SeerDebugDialog.h"
|
|
|
|
class SeerDebugDialog : public QDialog, protected Ui::SeerDebugDialogForm {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SeerDebugDialog (QWidget* parent = 0);
|
|
~SeerDebugDialog ();
|
|
|
|
// For any run mode.
|
|
void setExecutableName (const QString& executableName);
|
|
QString executableName () const;
|
|
|
|
void setExecutableWorkingDirectory (const QString& executableWorkingDirectory);
|
|
QString executableWorkingDirectory () const;
|
|
|
|
// Run or start executable. "run" or "start".
|
|
void setExecutableArguments (const QString& executableArguments);
|
|
QString executableArguments () const;
|
|
void setBreakInMain (bool flag);
|
|
bool breakInMain () const;
|
|
|
|
// Attach to a running process. "attach".
|
|
void setAttachPid (int pid);
|
|
int attachPid () const;
|
|
|
|
// Connectect to a GDB server. "connect".
|
|
void setConnectHostPort (const QString& connectHostPort);
|
|
QString connectHostPort () const;
|
|
void setConnectDownloadExecutable (bool flag);
|
|
bool connectDownloadExecutable () const;
|
|
|
|
// Load a core file. "corefile".
|
|
void setCoreFilename (const QString& coreFilename);
|
|
QString coreFilename () const;
|
|
|
|
// Get the launch mode.
|
|
void setLaunchMode (const QString& mode);
|
|
QString launchMode ();
|
|
|
|
protected slots:
|
|
void handleExecutableNameToolButton ();
|
|
void handleExecutableWorkingDirectoryToolButton ();
|
|
void handleLoadCoreFilenameToolButton ();
|
|
void handleRunModeChanged (int id);
|
|
|
|
private:
|
|
QButtonGroup* _runModeButtonGroup;
|
|
};
|
|
|