Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::SystemTray Class Reference

The SystemTray component provides a simple wrapper around system tray functionality. More...

#include <vcf/ApplicationKit/SystemTray.h>

Inheritance diagram for VCF::SystemTray:

VCF::Component VCF::ObjectWithEvents VCF::Object List of all members.

Public Types

enum  SysTrayEvents { stHidden = 20031, stShown, stRemovedFromTray, stAddedToTray }

Public Member Functions

 SystemTray ()
 SystemTray (Component *owner)
void setIconImage (Image *image)
 Sets the icon image for the system tray.
void setPopupMenu (PopupMenu *popupMenu)
PopupMenugetPopupMenu ()
void setTooltipText (const String &tooltipText)
String getTooltipText ()
void addToTray ()
void removeFromTray ()
void showInTray ()
void hideFromTray ()

Public Attributes

VCF::Delegate TrayIconChanged

Protected Member Functions

virtual void destroy ()
 called by the free() method.

Protected Attributes

String tooltipText_
PopupMenupopupMenu_
SystemTrayPeerpeer_

Detailed Description

The SystemTray component provides a simple wrapper around system tray functionality.

On Win32 the system tray is the rectangular area on the lower right side of the Start bar. It contains various icons that represent some program. You can control the image used for your icon, as well as the tooltip associated with it. You can also add a popup menu that is associated with clicking on the icon.

Event Delegates for this class:


Member Enumeration Documentation

enum VCF::SystemTray::SysTrayEvents
 

Enumerator:
stHidden 
stShown 
stRemovedFromTray 
stAddedToTray 


Constructor & Destructor Documentation

VCF::SystemTray::SystemTray  ) 
 

VCF::SystemTray::SystemTray Component owner  ) 
 


Member Function Documentation

void VCF::SystemTray::addToTray  ) 
 

virtual void VCF::SystemTray::destroy  )  [protected, virtual]
 

called by the free() method.

Should be overriden and any clean up code performed here

Reimplemented from VCF::Component.

PopupMenu* VCF::SystemTray::getPopupMenu  )  [inline]
 

String VCF::SystemTray::getTooltipText  )  [inline]
 

void VCF::SystemTray::hideFromTray  ) 
 

void VCF::SystemTray::removeFromTray  ) 
 

void VCF::SystemTray::setIconImage Image image  ) 
 

Sets the icon image for the system tray.

void VCF::SystemTray::setPopupMenu PopupMenu popupMenu  ) 
 

void VCF::SystemTray::setTooltipText const String tooltipText  ) 
 

void VCF::SystemTray::showInTray  ) 
 


Member Data Documentation

SystemTrayPeer* VCF::SystemTray::peer_ [protected]
 

PopupMenu* VCF::SystemTray::popupMenu_ [protected]
 

String VCF::SystemTray::tooltipText_ [protected]
 

VCF::Delegate VCF::SystemTray::TrayIconChanged
 

Event Delegate:
TrayIconChanged
event class: Event
event type: SystemTray::stHidden
event type: SystemTray::stShown
event type: SystemTray::stRemovedFromTray
event type: SystemTray::stAddedToTray


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information