* @brief Defines the BCStructVectorType type.
*/
typedef std::vector<BCPSettingsStruct*> BCStructVectorType;
- //end typedef definition
-
//MLER
+ // ----------------------------------------------------------------------------------
+ /*! @typedef std::pair<std::string, wxPanel*> ListAction;
+ * @brief Defines the ListAction type.
+ * First is the button name(item list), Second FunctionEventType
+ */
typedef std::pair<std::string, wxPanel*> ListAction;
+ // ----------------------------------------------------------------------------------
+ /*! @typedef std::vector<ListAction> ItemsVector;
+ * @brief Defines the Items Vector type.
+ */
typedef std::vector<ListAction> ItemsVector;
//MLER
-
+ //end typedef definition
// ----------------------------------------------------------------------------------
public:
* @brief This method sets the button group container.
* @param bGroupContainer
*/
-
// ----------------------------------------------------------------------------------
- ButtonGroupSettings*
- GetListGroupSettings();
-
- // ----------------------------------------------------------------------------------
-
void
SetButtonGroupContainer(ButtonGroupMap bGroupContainer);
// ----------------------------------------------------------------------------------
*/
void
SetGroupNameList(KeyMapList gNameList);
-
// ----------------------------------------------------------------------------------
/*! @fn void AddButton( const std::string &groupName, const std::string &buttonName,
const std::string &iconpath, const std::string &buttonDescription,
AddButton(const std::string &groupName, const std::string &buttonName,
const wxBitmap &icon, const std::string &buttonDescription,
PanelButton panel);
-
// ----------------------------------------------------------------------------------
/*! @fn void AddButton( BCPSettingsStruct* info );
* @brief This method adds a new button into a group of buttons.
*/
void
AddButton(BCPSettingsStruct* info);
-
// ----------------------------------------------------------------------------------
- /*! @fn void AddButtons( BCStructVectorType infoList );
- * @brief This method adds new buttons into the container.
+ /*! @fn void InitModel( BCStructVectorType infoList, int type );
+ * @brief This method adds new buttons or items into the container (Depends type).
* @param infoList The BCStructVectorType
+ * @param type If 1:Buttons 2:List 3:Configurable List
* @exception std::bad_alloc
*/
void
InitModel(BCStructVectorType infoList, int type);
// ----------------------------------------------------------------------------------
//MLER
+ /*! @fn void AddItems( BCPSettingsStruct* info );
+ * @brief This method adds a new item into a list.
+ * @param info The pointer to BCPSettingsStruct.
+ * @exception std::bad_alloc
+ */
void
AddItems(BCPSettingsStruct* info);
// ----------------------------------------------------------------------------------
+ /*! @fn PanelButton GetPanelList( const std::string &buttonName );
+ * @brief This method returns the panel of a list.
+ * @param buttonName (item element)
+ * @exception std::bad_alloc
+ * @return
+ */
ItemsVector
GetItemsVector();
-
+ // ----------------------------------------------------------------------------------
+ /*! @fn PanelButton GetPanelList( const std::string &buttonName );
+ * @brief This method returns the panel of a list.
+ * @param buttonName (item element)
+ * @exception std::bad_alloc
+ * @return
+ */
wxPanel*
GetPanelList(const StringType &buttonName);
-
//MLER
// ----------------------------------------------------------------------------------
private: