Maemo: Move deploying to dedicated deploy step.

Reviewed-by: kh1
This commit is contained in:
ck
2010-07-13 15:24:21 +02:00
parent e85d215460
commit ce5e473438
11 changed files with 654 additions and 368 deletions

View File

@@ -1,12 +1,19 @@
#include "maemodeploystepwidget.h"
#include "ui_maemodeploystepwidget.h"
#include "maemodeploystep.h"
#include "maemorunconfiguration.h"
#include <projectexplorer/buildconfiguration.h>
#include <projectexplorer/target.h>
namespace Qt4ProjectManager {
namespace Internal {
MaemoDeployStepWidget::MaemoDeployStepWidget() :
MaemoDeployStepWidget::MaemoDeployStepWidget(MaemoDeployStep *step) :
ProjectExplorer::BuildStepConfigWidget(),
ui(new Ui::MaemoDeployStepWidget)
ui(new Ui::MaemoDeployStepWidget),
m_step(step)
{
ui->setupUi(this);
}
@@ -18,11 +25,23 @@ MaemoDeployStepWidget::~MaemoDeployStepWidget()
void MaemoDeployStepWidget::init()
{
const ProjectExplorer::RunConfiguration * const rc =
m_step->buildConfiguration()->target()->activeRunConfiguration();
if (rc) {
connect(qobject_cast<const MaemoRunConfiguration *>(rc),
SIGNAL(deviceConfigurationChanged(ProjectExplorer::Target *)),
this, SLOT(handleDeviceUpdate()));
}
}
void MaemoDeployStepWidget::handleDeviceUpdate()
{
emit updateSummary();
}
QString MaemoDeployStepWidget::summaryText() const
{
return tr("<b>Deploy to device</b> ");
return tr("<b>Deploy to device</b>: ") + m_step->deviceConfig().name;
}
QString MaemoDeployStepWidget::displayName() const