CPopupItemsManager
#include "PopupItemsManager.h"
Description
Class to manage popup items. Used in class CPopup, but you can use it for your own purposes.
Private own types
| Type | Name | Description |
|---|---|---|
| typedef std::map< UnicodeString,CPopupMenuItem*>::iterator | Items_it | Type to iterate over map elements |
Private variables
| Type | Name | Description |
|---|---|---|
| std::map< UnicodeString,CPopupMenuItem*> | Items | Map of all added popup items |
| UnicodeString | LastAddedItem | Last added popup item name |
Public methods
| Type | Name | Description |
|---|---|---|
| CPopupItemsManager() | Constructor | |
| ~CPopupItemsManager() | Destructor | |
| void | AddItem(CPopupMenuItem* Item) | Function adds item to map and creates it in AQQ |
| void | RemoveItem(UnicodeString Name) | Function deletes item from map and removes it from AQQ |
| CPopupMenuItem* | GetItemByName(UnicodeString Name) | Function returns popup item by name |
| CPopupMenuItem* | GetItemByCaption(UnicodeString Caption) | Function returns popup item by caption |
| CPopupMenuItem* | GetLastAddedItem() | Function returns last added popup item |
| void | DestroyAllItems() | Function removes all popup items |
Example
Example plugin that using CPopupItemsManager class you may find here.