JX Application Framework
|
#include <JXImageMenuData.h>
Classes | |
class | ImageChanged |
Public Member Functions | |
JXImageMenuData (const JSize columnCount) | |
~JXImageMenuData () override | |
void | InsertItem (const JIndex index, JXImage *image, const bool menuOwnsImage, const JXMenu::ItemType type=JXMenu::kPlainType, const JString &id=JString::empty) |
void | PrependItem (JXImage *image, const bool menuOwnsImage, const JXMenu::ItemType type=JXMenu::kPlainType, const JString &id=JString::empty) |
void | AppendItem (JXImage *image, const bool menuOwnsImage, const JXMenu::ItemType type=JXMenu::kPlainType, const JString &id=JString::empty) |
void | DeleteItem (const JIndex index) override |
void | DeleteAll () override |
const JXImage * | GetImage (const JIndex index) const |
void | SetImage (const JIndex index, JXImage *image, const bool menuOwnsImage) |
JSize | GetColumnCount () const |
void | SetColumnCount (const JSize columnCount) |
void | ConfigureTable (JXImageMenuTable *table, bool *hasCheckboxes, bool *hasSubmenus) |
![]() | |
JXMenuData () | |
~JXMenuData () override | |
bool | HasCheckboxes () const |
bool | HasSubmenus () const |
bool | IsEnabled (const JIndex index) const |
JXMenu::ItemType | GetType (const JIndex index) const |
bool | IsChecked (const JIndex index) const |
bool | HasSubmenu (const JIndex index) const |
bool | GetSubmenu (const JIndex index, JXMenu **menu) const |
bool | ShortcutToIndex (const JUtf8Character &c, JIndex *index) const |
![]() | |
JContainer () | |
JContainer (const JContainer &source) | |
JContainer & | operator= (const JContainer &source) |
![]() | |
JCollection () | |
JCollection (const JCollection &source) | |
~JCollection () override | |
JCollection & | operator= (const JCollection &source) |
JSize | GetItemCount () const |
bool | IsEmpty () const |
bool | IndexValid (const JIndex index) const |
JIndex | GetIndexFromEnd (const JIndex index) const |
JString | ToString () const override |
![]() | |
JBroadcaster () | |
virtual | ~JBroadcaster () |
JBroadcaster & | operator= (const JBroadcaster &source) |
bool | HasSenders () const |
JSize | GetSenderCount () const |
bool | HasRecipients () const |
JSize | GetRecipientCount () const |
template<class T > | |
void | ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f) |
Static Public Attributes | |
static const JUtf8Byte * | kImageChanged = "ImageChanged::JXImageMenuData" |
Additional Inherited Members | |
![]() | |
void | InsertItem (const JIndex index, const JXMenu::ItemType type=JXMenu::kPlainType, const JString &shortcuts=JString::empty, const JString &id=JString::empty) |
void | PrependItem (const JXMenu::ItemType type=JXMenu::kPlainType, const JString &shortcuts=JString::empty, const JString &id=JString::empty) |
void | AppendItem (const JXMenu::ItemType type=JXMenu::kPlainType, const JString &shortcuts=JString::empty, const JString &id=JString::empty) |
bool | GetItemShortcuts (const JIndex index, const JString **shortcuts) const |
void | SetItemShortcuts (const JIndex index, const JString &shortcuts) |
virtual void | ItemShortcutsChanged (const JIndex index, const JString *shortcuts) |
bool | GetItemID (const JIndex index, const JString **id) const |
void | SetItemID (const JIndex index, const JString &id) |
void | EnableItem (const JIndex index) |
void | EnableAll () |
void | DisableItem (const JIndex index) |
void | DisableAll () |
void | SetItemEnabled (const JIndex index, const bool enabled) |
virtual void | PrepareToOpenMenu (const JXMenu::UpdateAction updateAction) |
![]() | |
void | InstallCollection (JCollection *list) |
const JCollection * | GetList () const |
void | Receive (JBroadcaster *sender, const Message &message) override |
![]() | |
void | ItemAdded () |
void | ItemRemoved () |
void | SetItemCount (const JSize newItemCount) |
![]() | |
JBroadcaster (const JBroadcaster &source) | |
void | ListenTo (const JBroadcaster *sender) |
void | StopListening (const JBroadcaster *sender) |
void | ClearWhenGoingAway (const JBroadcaster *sender, void *pointerToMember) |
void | StopListening (const JBroadcaster *sender, const std::type_info &messageType) |
template<class T > | |
void | Send (JBroadcaster *recipient, const T &message) |
template<class T > | |
void | Broadcast (const T &message) |
void | SendWithFeedback (JBroadcaster *recipient, Message *message) |
void | BroadcastWithFeedback (Message *message) |
virtual void | ReceiveWithFeedback (JBroadcaster *sender, Message *message) |
virtual void | ReceiveGoingAway (JBroadcaster *sender) |
Stores an image for each menu item.
JXImageMenuData::JXImageMenuData | ( | const JSize | columnCount | ) |
|
override |
|
inline |
void JXImageMenuData::ConfigureTable | ( | JXImageMenuTable * | table, |
bool * | hasCheckboxes, | ||
bool * | hasSubmenus | ||
) |
Called by JXImageMenuTable constructor. Returns true if any of the items has a submenu.
|
overridevirtual |
Reimplemented from JXMenuData.
|
overridevirtual |
Reimplemented from JXMenuData.
|
inline |
void JXImageMenuData::InsertItem | ( | const JIndex | index, |
JXImage * | image, | ||
const bool | menuOwnsImage, | ||
const JXMenu::ItemType | type = JXMenu::kPlainType , |
||
const JString & | id = JString::empty |
||
) |
|
inline |
|
inline |
|
static |