forked from qt-creator/qt-creator
Add debugger engine type to configuration.
Introduce a struct DebuggerItem as a debugger configuration item, containing debugger engine type and binary. Store information as a variant map. Add a combo box. Remove engine guessing logic. Parts of it are still required when checking the suggested debugger from the SDK. Split error checking to be able to do a quick error check and find only valid profiles in the matchers. Pass on errors up to RunControl::create(). Change-Id: I08653e2a76ca2c371701082f8173b0b8f8ed462e Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -33,11 +33,16 @@
|
||||
|
||||
#include <projectexplorer/kitconfigwidget.h>
|
||||
|
||||
#include <QLabel>
|
||||
#include <debuggerkitinformation.h>
|
||||
#include "debuggerconstants.h"
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QLabel)
|
||||
QT_FORWARD_DECLARE_CLASS(QComboBox)
|
||||
|
||||
namespace ProjectExplorer { class Kit; }
|
||||
namespace Utils { class PathChooser; }
|
||||
namespace Utils {
|
||||
class PathChooser;
|
||||
class FileName;
|
||||
}
|
||||
|
||||
namespace Debugger {
|
||||
class DebuggerKitInformation;
|
||||
@@ -65,12 +70,21 @@ public:
|
||||
bool isDirty() const;
|
||||
QWidget *buttonWidget() const;
|
||||
|
||||
DebuggerEngineType engineType() const;
|
||||
void setEngineType(DebuggerEngineType et);
|
||||
|
||||
Utils::FileName fileName() const;
|
||||
void setFileName(const Utils::FileName &fn);
|
||||
|
||||
private slots:
|
||||
void autoDetectDebugger();
|
||||
void refreshLabel();
|
||||
|
||||
private:
|
||||
ProjectExplorer::Kit *m_kit;
|
||||
const DebuggerKitInformation *m_info;
|
||||
QComboBox *m_comboBox;
|
||||
QLabel *m_label;
|
||||
Utils::PathChooser *m_chooser;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user