CMakeLists.txt modification.
New changes in the project - CreateButtonGroup function has been removed from the project.
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView )
#DCH
-INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/model/include )
-INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/include )
-INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/controller/include )
-INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/include )
+INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/model )
+INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view )
+INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/controller )
+INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer )
#DCH
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/src/CutModule/interface )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/src/CutModule/kernel )
{
this->m_GroupNameList = m_GroupNameList;
}
-
- void
- ContainerSettings::CreateGroup( const std::string & groupName )
- {
- this->m_GroupNameList.push_back( groupName );
- }
void
ContainerSettings::AddButton( const std::string & groupName,
const std::string buttonName, const std::string iconpath,
const std::string buttonDescription, FunctionEventType event )
{
+ ButtonPair* pair = new ButtonPair(
+ new ButtonInfo( buttonName, iconpath ),
+ new ActionButton( buttonDescription, event ) );
for( KeyMapList::iterator it = this->m_GroupNameList.begin( ); it
!= this->m_GroupNameList.end( ); ++it )
if ( ( *it ).compare( groupName ) == 0 )
{
- ButtonPair* pair = new ButtonPair(
- new ButtonInfo( buttonName, iconpath ),
- new ActionButton( buttonDescription, event ) );
this->m_ButtonGroupContainer[ groupName ].push_back( pair );
return;
- }
+ }//fi
+ //rof
+ this->m_GroupNameList.push_back( groupName );
+ this->m_ButtonGroupContainer[ groupName ].push_back( pair );
}
}
}
* @return The wx button group container.
*/
void
- CreateGroup( const std::string & groupName );
- /*!
- * @brief This function allows to create the ButtonGroupContainer.
- * @param the wxWindow* parent to be attached.
- * @param The Container settings.
- * @return The wx button group container.
- */
- void
AddButton( const std::string & groupName, const std::string buttonName,
const std::string iconpath, const std::string buttonDescription,
FunctionEventType event );
this->m_GroupNameList = m_GroupNameList;
}
- void
- ButtonContainerSettings::CreateGroup( const std::string & groupName )
- {
- this->m_GroupNameList.push_back( groupName );
- }
void
ButtonContainerSettings::AddButton( const std::string & groupName,
const std::string buttonName, const std::string iconpath,
const std::string buttonDescription, PanelButton panel )
{
+ //builds the button information
+ ButtonPair* pair = new ButtonPair( new ButtonInfo( buttonName, iconpath ),
+ new ActionButton( buttonDescription, panel ) );
+ panel->Show( false );
for( KeyMapList::iterator it = this->m_GroupNameList.begin( ); it
!= this->m_GroupNameList.end( ); ++it )
{
if ( ( *it ).compare( groupName ) == 0 )
{
- panel->Show( false );
- ButtonPair* pair = new ButtonPair(
- new ButtonInfo( buttonName, iconpath ),
- new ActionButton( buttonDescription, panel ) );
this->m_ButtonGroupContainer[ groupName ].push_back( pair );
return;
}//fi
}//rof
+ //if the group doesn't exist it creates a new groupName
+ this->m_GroupNameList.push_back( groupName );
+ this->m_ButtonGroupContainer[ groupName ].push_back( pair );
}
}//ecapseman
void
SetGroupNameList( KeyMapList m_GroupNameList );
void
- CreateGroup( const std::string & groupName );
- void
AddButton( const std::string & groupName, const std::string buttonName,
const std::string iconpath, const std::string buttonDescription,
- PanelButton event );
+ PanelButton panel );
private:
ButtonGroupMap m_ButtonGroupContainer;