BareMetal: De-slot

Change-Id: I9b6470d670de3bd520f9db891e070199e2f57643
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2017-03-18 23:19:21 +02:00
committed by Orgad Shaneh
parent 28127bd955
commit 910eb46c2b
8 changed files with 12 additions and 28 deletions

View File

@@ -43,7 +43,9 @@ public:
explicit BareMetalDebugSupport(Debugger::DebuggerRunControl *runControl); explicit BareMetalDebugSupport(Debugger::DebuggerRunControl *runControl);
~BareMetalDebugSupport(); ~BareMetalDebugSupport();
private slots: private:
enum State { Inactive, StartingRunner, Running };
void remoteSetupRequested(); void remoteSetupRequested();
void debuggingFinished(); void debuggingFinished();
void remoteOutputMessage(const QByteArray &output); void remoteOutputMessage(const QByteArray &output);
@@ -53,9 +55,6 @@ private slots:
void progressReport(const QString &progressOutput); void progressReport(const QString &progressOutput);
void appRunnerError(const QString &error); void appRunnerError(const QString &error);
private:
enum State { Inactive, StartingRunner, Running };
void adapterSetupDone(); void adapterSetupDone();
void adapterSetupFailed(const QString &error); void adapterSetupFailed(const QString &error);
@@ -66,7 +65,7 @@ private:
ProjectExplorer::ApplicationLauncher *m_appLauncher; ProjectExplorer::ApplicationLauncher *m_appLauncher;
const QPointer<Debugger::DebuggerRunControl> m_runControl; const QPointer<Debugger::DebuggerRunControl> m_runControl;
BareMetalDebugSupport::State m_state; State m_state;
}; };
} // namespace Internal } // namespace Internal

View File

@@ -42,10 +42,8 @@ public:
explicit BareMetalDeviceConfigurationWidget( explicit BareMetalDeviceConfigurationWidget(
const ProjectExplorer::IDevice::Ptr &deviceConfig, QWidget *parent = 0); const ProjectExplorer::IDevice::Ptr &deviceConfig, QWidget *parent = 0);
private slots:
void gdbServerProviderChanged();
private: private:
void gdbServerProviderChanged();
void updateDeviceFromUi(); void updateDeviceFromUi();
GdbServerProviderChooser *m_gdbServerProviderChooser; GdbServerProviderChooser *m_gdbServerProviderChooser;

View File

@@ -68,8 +68,6 @@ class BareMetalGdbCommandsDeployStepWidget: public ProjectExplorer::BuildStepCon
public: public:
explicit BareMetalGdbCommandsDeployStepWidget(BareMetalGdbCommandsDeployStep &step); explicit BareMetalGdbCommandsDeployStepWidget(BareMetalGdbCommandsDeployStep &step);
public slots:
void update(); void update();
private: private:

View File

@@ -50,11 +50,9 @@ public:
Q_SLOT void runConfigurationEnabledChange(); Q_SLOT void runConfigurationEnabledChange();
private slots: private:
void updateTargetInformation(); void updateTargetInformation();
void handleWorkingDirectoryChanged(); void handleWorkingDirectoryChanged();
private:
void setLabelText(QLabel &label, const QString &regularText, const QString &errorText); void setLabelText(QLabel &label, const QString &regularText, const QString &errorText);
BareMetalRunConfigurationWidgetPrivate * const d; BareMetalRunConfigurationWidgetPrivate * const d;

View File

@@ -145,14 +145,12 @@ public:
signals: signals:
void dirty(); void dirty();
protected slots:
void setErrorMessage(const QString &);
void clearErrorMessage();
protected: protected:
virtual void applyImpl() = 0; virtual void applyImpl() = 0;
virtual void discardImpl() = 0; virtual void discardImpl() = 0;
void setErrorMessage(const QString &);
void clearErrorMessage();
void addErrorLabel(); void addErrorLabel();
GdbServerProvider::StartupMode startupModeFromIndex(int idx) const; GdbServerProvider::StartupMode startupModeFromIndex(int idx) const;

View File

@@ -49,22 +49,17 @@ public:
QString currentProviderId() const; QString currentProviderId() const;
void setCurrentProviderId(const QString &id); void setCurrentProviderId(const QString &id);
void populate();
signals: signals:
void providerChanged(); void providerChanged();
public slots: private:
void populate();
private slots:
void currentIndexChanged(int index); void currentIndexChanged(int index);
void manageButtonClicked(); void manageButtonClicked();
protected:
bool providerMatches(const GdbServerProvider *) const; bool providerMatches(const GdbServerProvider *) const;
QString providerText(const GdbServerProvider *) const; QString providerText(const GdbServerProvider *) const;
private:
QComboBox *m_chooser; QComboBox *m_chooser;
QPushButton *m_manageButton; QPushButton *m_manageButton;
}; };

View File

@@ -95,10 +95,9 @@ class OpenOcdGdbServerProviderConfigWidget : public GdbServerProviderConfigWidge
public: public:
explicit OpenOcdGdbServerProviderConfigWidget(OpenOcdGdbServerProvider *); explicit OpenOcdGdbServerProviderConfigWidget(OpenOcdGdbServerProvider *);
private slots: private:
void startupModeChanged(); void startupModeChanged();
private:
void applyImpl() final; void applyImpl() final;
void discardImpl() final; void discardImpl() final;

View File

@@ -101,10 +101,9 @@ class StLinkUtilGdbServerProviderConfigWidget : public GdbServerProviderConfigWi
public: public:
explicit StLinkUtilGdbServerProviderConfigWidget(StLinkUtilGdbServerProvider *); explicit StLinkUtilGdbServerProviderConfigWidget(StLinkUtilGdbServerProvider *);
private slots: private:
void startupModeChanged(); void startupModeChanged();
private:
void applyImpl() final; void applyImpl() final;
void discardImpl() final; void discardImpl() final;