Add more signals to BuildManager.

Enabling other plugins to know which tasks currently exist.
This commit is contained in:
dt
2010-07-02 14:19:13 +02:00
parent b61c376914
commit 6fdfc6596d
4 changed files with 8 additions and 0 deletions

View File

@@ -100,6 +100,9 @@ BuildManager::BuildManager(ProjectExplorerPlugin *parent)
connect(m_taskWindow, SIGNAL(tasksChanged()), connect(m_taskWindow, SIGNAL(tasksChanged()),
this, SLOT(updateTaskCount())); this, SLOT(updateTaskCount()));
connect(m_taskWindow, SIGNAL(tasksCleared()),
this,SIGNAL(tasksCleared()));
connect(&m_progressWatcher, SIGNAL(canceled()), connect(&m_progressWatcher, SIGNAL(canceled()),
this, SLOT(cancel())); this, SLOT(cancel()));
connect(&m_progressWatcher, SIGNAL(finished()), connect(&m_progressWatcher, SIGNAL(finished()),
@@ -283,6 +286,7 @@ void BuildManager::showBuildResults()
void BuildManager::addToTaskWindow(const ProjectExplorer::Task &task) void BuildManager::addToTaskWindow(const ProjectExplorer::Task &task)
{ {
m_taskWindow->addTask(task); m_taskWindow->addTask(task);
emit taskAdded(task);
} }
void BuildManager::addToOutputWindow(const QString &string, const QTextCharFormat &format) void BuildManager::addToOutputWindow(const QString &string, const QTextCharFormat &format)

View File

@@ -92,6 +92,8 @@ signals:
void buildStateChanged(ProjectExplorer::Project *pro); void buildStateChanged(ProjectExplorer::Project *pro);
void buildQueueFinished(bool success); void buildQueueFinished(bool success);
void tasksChanged(); void tasksChanged();
void taskAdded(const ProjectExplorer::Task &task);
void tasksCleared();
private slots: private slots:
void addToTaskWindow(const ProjectExplorer::Task &task); void addToTaskWindow(const ProjectExplorer::Task &task);

View File

@@ -591,6 +591,7 @@ void TaskWindow::clearTasks(const QString &categoryId)
updateActions(); updateActions();
emit tasksChanged(); emit tasksChanged();
emit tasksCleared();
navigateStateChanged(); navigateStateChanged();
} }

View File

@@ -129,6 +129,7 @@ public:
signals: signals:
void tasksChanged(); void tasksChanged();
void tasksCleared();
private slots: private slots:
void showTaskInFile(const QModelIndex &index); void showTaskInFile(const QModelIndex &index);