JX Application Framework
|
#include <JXWDManager.h>
Classes | |
class | WDMenuNeedsUpdate |
Public Types | |
enum | { kNoShortcutForDir = -1 } |
Public Member Functions | |
JXWDManager (JXDisplay *display, const bool wantShortcuts=true) | |
~JXWDManager () override | |
void | GetPermanentDirectors (JPtrArray< JXWindowDirector > *directorList) const |
void | GetDirectors (JPtrArray< JXWindowDirector > *directorList) const |
void | PermanentDirectorCreated (JXWindowDirector *dir, const JString &shortcut=JString::empty, const JUtf8Byte *id=nullptr) |
void | DirectorCreated (JXWindowDirector *dir) |
void | DirectorDeleted (JXWindowDirector *dir) |
void | UpdateWDMenu (JXWDMenu *menu) |
void | HandleWDMenu (JXWDMenu *menu, const JIndex index) |
![]() | |
JBroadcaster () | |
virtual | ~JBroadcaster () |
JBroadcaster & | operator= (const JBroadcaster &source) |
bool | HasSenders () const |
JSize | GetSenderCount () const |
bool | HasRecipients () const |
JSize | GetRecipientCount () const |
virtual JString | ToString () const |
template<class T > | |
void | ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f) |
Static Public Attributes | |
static const JUtf8Byte * | kWDMenuNeedsUpdate = "WDMenuNeedsUpdate::JXWDManager" |
Friends | |
class | JXUpdateWDMenuTask |
Additional Inherited Members | |
![]() | |
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) |
virtual void | Receive (JBroadcaster *sender, const Message &message) |
void | SendWithFeedback (JBroadcaster *recipient, Message *message) |
void | BroadcastWithFeedback (Message *message) |
virtual void | ReceiveWithFeedback (JBroadcaster *sender, Message *message) |
virtual void | ReceiveGoingAway (JBroadcaster *sender) |
Singleton class that provides the services for JXWDMenu, a menu of all registered windows. JXWindowDirectors must register themselves because not all windows belong on the menu. JXDocuments automatically register themselves. JXWindowDirectors must override GetMenuIcon() in order to display an icon on JXWDMenu. They can also override GetName() if they want to display a name other than their window title. JXDocuments can override GetMenuIcon() if they want something other than the default plain file icon.
|
override |
void JXWDManager::DirectorCreated | ( | JXWindowDirector * | dir | ) |
void JXWDManager::DirectorDeleted | ( | JXWindowDirector * | dir | ) |
Automatically called by ~JXWindowDirector.
|
inline |
|
inline |
void JXWDManager::PermanentDirectorCreated | ( | JXWindowDirector * | dir, |
const JString & | shortcut = JString::empty , |
||
const JUtf8Byte * | id = nullptr |
||
) |
void JXWDManager::UpdateWDMenu | ( | JXWDMenu * | menu | ) |
|
friend |
|
static |