Commit 2766e420 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - modules now provide a getter for their root progress combiner

[DOC] - fixed some warnings
parent d35bcc12
......@@ -26,12 +26,13 @@
#define WQTMODULETREEITEM_H
#include <QtGui/QTreeWidgetItem>
#include <QtGui/QProgressBar>
#include "../../../kernel/WModule.h"
/**
* TODO(schurade): Document this!
*/
class WQtModuleTreeItem : public QTreeWidgetItem
class WQtModuleTreeItem: public QTreeWidgetItem
{
public:
/**
......@@ -51,7 +52,6 @@ public:
*/
boost::shared_ptr< WModule >getModule();
protected:
private:
boost::shared_ptr< WModule >m_module;
......
......@@ -41,6 +41,8 @@ public:
/**
* Creates a new event instance denoting that the specified module got associated in the root container.
*
* \param module the module that got associated.
*/
explicit WModuleAssocEvent( boost::shared_ptr< WModule > module );
......
......@@ -41,6 +41,8 @@ public:
/**
* Creates a new event instance denoting that the specified module got associated in the root container.
*
* \param module the module that switched its state.
*/
explicit WModuleReadyEvent( boost::shared_ptr< WModule > module );
......
......@@ -46,6 +46,7 @@ public:
* Initializes the batchloader but does not start it. Use run().
*
* \param fileNames the files to load.
* \param targetContainer the container to which the data modules should be added.
*/
WBatchLoader( std::vector< std::string > fileNames, boost::shared_ptr< WModuleContainer > targetContainer );
......
......@@ -266,6 +266,11 @@ boost::shared_ptr< WProperties > WModule::getProperties() const
return m_properties;
}
boost::shared_ptr< WProgressCombiner > WModule::getRootProgressCombiner()
{
return m_progress;
}
void WModule::ready()
{
m_isReady( true );
......
......@@ -175,6 +175,13 @@ public:
*/
virtual std::set< boost::shared_ptr< WModule > > getCompatibles();
/**
* Gets the modules base progress. This is actually a progress combiner, which bundles all progresses.
*
* \return the progress combiner for this module.
*/
virtual boost::shared_ptr< WProgressCombiner > getRootProgressCombiner();
protected:
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment