diff options
Diffstat (limited to 'src/build.cpp')
-rw-r--r-- | src/build.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/build.cpp b/src/build.cpp index 13a2aee..88d1207 100644 --- a/src/build.cpp +++ b/src/build.cpp | |||
@@ -10,7 +10,6 @@ Build::Build() : | |||
10 | pView( NULL ), | 10 | pView( NULL ), |
11 | bCacheUpdated( false ) | 11 | bCacheUpdated( false ) |
12 | { | 12 | { |
13 | pView = ViewerFactory::getInstance().instantiate("plain"); | ||
14 | } | 13 | } |
15 | 14 | ||
16 | Build::~Build() | 15 | Build::~Build() |
@@ -29,6 +28,11 @@ Build::~Build() | |||
29 | } | 28 | } |
30 | } | 29 | } |
31 | 30 | ||
31 | void Build::setView( const std::string &sView ) | ||
32 | { | ||
33 | pView = ViewerFactory::getInstance().instantiate( sView.c_str() ); | ||
34 | } | ||
35 | |||
32 | void Build::setCache( const std::string &sFileName ) | 36 | void Build::setCache( const std::string &sFileName ) |
33 | { | 37 | { |
34 | sCacheName = sFileName; | 38 | sCacheName = sFileName; |
@@ -70,6 +74,8 @@ void Build::execAction( const std::string &sWhat ) | |||
70 | 74 | ||
71 | Action *pAct = mAction[sWhat]; | 75 | Action *pAct = mAction[sWhat]; |
72 | 76 | ||
77 | pView->beginAction( sWhat, pAct->size() ); | ||
78 | |||
73 | for( pAct->begin(); !pAct->isEnded(); pAct->next() ) | 79 | for( pAct->begin(); !pAct->isEnded(); pAct->next() ) |
74 | { | 80 | { |
75 | if( mTarget.find( pAct->getWhat() ) == mTarget.end() ) | 81 | if( mTarget.find( pAct->getWhat() ) == mTarget.end() ) |
@@ -79,7 +85,7 @@ void Build::execAction( const std::string &sWhat ) | |||
79 | sWhat.c_str() | 85 | sWhat.c_str() |
80 | ); | 86 | ); |
81 | Target *pTarget = mTarget[pAct->getWhat()]; | 87 | Target *pTarget = mTarget[pAct->getWhat()]; |
82 | pView->beginCommand( pAct->getAct(), pAct->getWhat(), 0 ); | 88 | pView->beginCommand( pAct->getAct(), pAct->getWhat() ); |
83 | switch( pAct->getAct() ) | 89 | switch( pAct->getAct() ) |
84 | { | 90 | { |
85 | case Action::actCheck: | 91 | case Action::actCheck: |
@@ -93,6 +99,8 @@ void Build::execAction( const std::string &sWhat ) | |||
93 | pView->endCommand(); | 99 | pView->endCommand(); |
94 | } | 100 | } |
95 | 101 | ||
102 | pView->endAction(); | ||
103 | |||
96 | return; | 104 | return; |
97 | } | 105 | } |
98 | 106 | ||