![]() |
Hot Door CORE 0.8.3
Adobe® Illustrator® Plug-in Library
|
Wraps around an Illustrator menu group. More...
#include <hdicoreMenuGroup.h>
Classes | |
| struct | Child |
| Menu groups can have both groups and items as children, so this acts as a simple wrapper to store one or the other. More... | |
Public Types | |
| typedef std::vector< std::shared_ptr< Child > > | ChildVector |
| typedef std::unique_ptr< Child > | ChildUP |
| typedef std::shared_ptr< Child > | ChildSP |
| typedef std::weak_ptr< Child > | ChildWP |
Public Member Functions | |
| MenuGroup () | |
| Constructs an empty MenuGroup object. | |
| MenuGroup (const MenuGroup &m_) | |
| Constructs a new MenuGroup object from an existing MenuGroup object (copy constructor) | |
| MenuGroup (const BuiltinMenuGroup group_, const std::string &text_, const bool sort_=false, const bool mergeTop_=false, const bool divBelow_=false, const bool divAbove_=false) | |
| Constructs a new MenuGroup object. | |
| MenuGroup (const MenuGroup &group_, const std::string &text_, const bool sort_=false, const bool mergeTop_=false, const bool divBelow_=false, const bool divAbove_=false) | |
| Constructs a new MenuGroup object. | |
| virtual | ~MenuGroup () |
| Destructs a MenuGroup object. | |
| virtual void | destroy () |
| Destroys the UI menu group, converting the target object to an empty MenuGroup object (see the default constructor for more info on empty MenuGroup objects) | |
| virtual MenuGroup & | operator= (const MenuGroup &rhs_) |
| Assigns one MenuGroup object to another. | |
| virtual bool | operator== (const MenuGroup &rhs_) const |
| Tests whether a given MenuGroup object is the same as another. | |
| virtual bool | operator!= (const MenuGroup &rhs_) const |
| Tests whether a given MenuGroup object is not the same as another. | |
| virtual AIMenuGroup | aiMenuGroup () const |
| Gets the menu group around which the target object is wrapped. | |
| virtual AIMenuItemHandle | aiMenuItemHandle () const |
| Gets the menu item handle around which the target object is wrapped. | |
| virtual bool | isEmpty () const |
| Gets whether the target MenuGroup object is empty (constructed with the default ctor) | |
| virtual bool | isPartial () const |
| Gets whether the menu group is a built-in Illustrator group. | |
| virtual std::unique_ptr< MenuGroup > | parent () const |
| Gets the parent of the target menu group. | |
| virtual ChildVector | children () const |
| Gets the children of the target menu group. | |
| virtual bool | enabled () const |
| Gets whether the menu group is enabled. | |
| virtual void | setEnabled (const bool enabled_) |
| Sets the menu group as enabled or disabled. | |
| virtual std::string | text () const |
| Gets the text of the menu group itself. | |
| virtual void | setText (const std::string &text_) |
| Sets the text of the menu group itself. | |
| virtual bool | sorted () const |
| Gets whether the children of the target menu group are sorted. | |
| virtual void | setSorted (const bool sort_) |
| Sets whether the children of the target menu group art sorted alphabetically or in order of creation. | |
Friends | |
| MenuGroup | __accessCtor (AIMenuGroup, AIMenuItemHandle) |
Wraps around an Illustrator menu group.
| hdi::core::MenuGroup::MenuGroup | ( | ) |
Constructs an empty MenuGroup object.
| hdi::core::MenuGroup::MenuGroup | ( | const MenuGroup & | m_ | ) |
| hdi::core::MenuGroup::MenuGroup | ( | const BuiltinMenuGroup | group_, |
| const std::string & | text_, | ||
| const bool | sort_ = false, |
||
| const bool | mergeTop_ = false, |
||
| const bool | divBelow_ = false, |
||
| const bool | divAbove_ = false |
||
| ) |
Constructs a new MenuGroup object.
| group_ | Built-in Illustrator menu group to contain the new MenuGroup |
| text_ | String that will show as the menu group title, as UTF-8 |
| sort_ | Whether to sort the children of the new group alphabetically, or in order of creation |
| mergeTop_ | Whether to merge the new group with group_ and force any children of the new group to be at the top of the list |
| divBelow_ | Whether to automatically place a separator item below the new group |
| divAbove_ | Whether to automatically place a separator item above the new group |
| hdi::core::MenuGroup::MenuGroup | ( | const MenuGroup & | group_, |
| const std::string & | text_, | ||
| const bool | sort_ = false, |
||
| const bool | mergeTop_ = false, |
||
| const bool | divBelow_ = false, |
||
| const bool | divAbove_ = false |
||
| ) |
Constructs a new MenuGroup object.
| group_ | User-created menu group to contain the new MenuGroup |
| text_ | String that will show as the menu group title, as UTF-8 |
| sort_ | Whether to sort the children of the new group alphabetically, or in order of creation |
| mergeTop_ | Whether to merge the new group with group_ and force any children of the new group to be at the top of the list |
| divBelow_ | Whether to automatically place a separator item below the new group |
| divAbove_ | Whether to automatically place a separator item above the new group |
|
virtual |
Destructs a MenuGroup object.
|
virtual |
Gets the menu group around which the target object is wrapped.
|
virtual |
Gets the menu item handle around which the target object is wrapped.
|
virtual |
Gets the children of the target menu group.
|
virtual |
Destroys the UI menu group, converting the target object to an empty MenuGroup object (see the default constructor for more info on empty MenuGroup objects)
|
virtual |
Gets whether the menu group is enabled.
|
virtual |
|
virtual |
Gets whether the menu group is a built-in Illustrator group.
|
virtual |
|
virtual |
|
virtual |
Gets the parent of the target menu group.
|
virtual |
Sets the menu group as enabled or disabled.
| enabled_ | true to enable the group, false to disable |
|
virtual |
Sets whether the children of the target menu group art sorted alphabetically or in order of creation.
| sort_ | true to sort alphabetically, false otherwise |
|
virtual |
Sets the text of the menu group itself.
| text_ | New text value for the menu group, as UTF-8 |
|
virtual |
Gets whether the children of the target menu group are sorted.
|
virtual |
Gets the text of the menu group itself.