SkyGI::PopupMenu Class Reference

Inheritance diagram for SkyGI::PopupMenu:
[legend]
Collaboration diagram for SkyGI::PopupMenu:
[legend]
List of all members.

Public Member Functions

 PopupMenu (Window *pTargetWindow, const Point &cPos, Menu *pMenu, unsigned int uiFlags=0, int iUniqueID=-1)
 ~PopupMenu ()
void ReLayout ()
bool Close (int iID, bool bCloseChildren=true, bool bCloseParent=false, bool bCloseActive=true)
MenuGetMenu ()
void SetParentPopup (MenuWindow *pParent)
bool Activated ()
bool Deactivated ()
void ChildClosed (MenuWindow *pMenuWindow)
bool PopupActive ()
bool WindowDeactivated ()
bool GotDeactivated ()
int Run ()
PopupMenuViewGetView ()
MenuItemGetSelectedItem ()
int Hide ()
void MenuDestroyed ()
bool Closed ()

Public Attributes

int m_iUniqueID

Detailed Description

Examples:

listview.cpp, and tabview.cpp.


Constructor & Destructor Documentation

PopupMenu::PopupMenu ( Window pTargetWindow,
const Point cPos,
Menu pMenu,
unsigned int  uiFlags = 0,
int  iUniqueID = -1 
)

PopupMenu::~PopupMenu (  ) 


Member Function Documentation

void PopupMenu::ReLayout (  ) 

bool PopupMenu::Close ( int  iID,
bool  bCloseChildren = true,
bool  bCloseParent = false,
bool  bCloseActive = true 
) [virtual]

Reimplemented from SkyGI::MenuWindow.

Menu * PopupMenu::GetMenu (  ) 

Reimplemented from SkyGI::FrameWindow.

void PopupMenu::SetParentPopup ( MenuWindow pParent  ) 

bool PopupMenu::Activated (  )  [virtual]

Window activated

Description:
Called for the top level window when the window gets activated. A top level window gets a focus and is actually activated/deactivated. Child windows only get the focus but they don't get activated/deactivated
Returns:
true if window got activated

Reimplemented from SkyGI::FrameWindow.

bool PopupMenu::Deactivated (  )  [virtual]

Window deactivated

Description:
Called for the top level window when the window gets deactivated. A top level window gets a focus and is actually activated/deactivated. Child windows only get the focus but they don't get activated/deactivated
Returns:
true if window got deactivated

Reimplemented from SkyGI::FrameWindow.

void PopupMenu::ChildClosed ( MenuWindow pMenuWindow  )  [virtual]

Reimplemented from SkyGI::MenuWindow.

bool PopupMenu::PopupActive (  )  [virtual]

Reimplemented from SkyGI::MenuWindow.

bool PopupMenu::WindowDeactivated (  )  [virtual]

Reimplemented from SkyGI::MenuWindow.

bool PopupMenu::GotDeactivated (  )  [virtual]

Reimplemented from SkyGI::MenuWindow.

int PopupMenu::Run (  ) 

Run PopupMenu in modal mode

Description:
Runs in modal mode and returns the ID of the selected item. -1 if no item was selected (for instance, escape pressed, focus lost, etc.)
Note:
A modal menu will also send messages if a target window was specified in the constructor and will signal item presses.

PopupMenuView * PopupMenu::GetView (  ) 

Get the associated View

Description:
Get the View associated with the FrameWindow. A View was either set with AttachView or implicity created by the FrameWindows constructor
Returns:
The View associated with the FrameWindow or NULL if no View is present

Reimplemented from SkyGI::FrameWindow.

MenuItem * PopupMenu::GetSelectedItem (  )  [virtual]

Implements SkyGI::MenuWindow.

int PopupMenu::Hide (  )  [virtual]

Reimplemented from SkyGI::MenuWindow.

void PopupMenu::MenuDestroyed (  )  [virtual]

Reimplemented from SkyGI::MenuWindow.

bool PopupMenu::Closed (  ) 


Member Data Documentation

int SkyGI::PopupMenu::m_iUniqueID


Generated on Thu Dec 13 18:14:33 2007 for SkyGI by  doxygen 1.5.1-p1