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

VCF::StatusBar Class Reference

#include <StatusBar.h>

Inheritance diagram for VCF::StatusBar:

VCF::CustomControl VCF::Control VCF::UIComponent VCF::AbstractView VCF::Component VCF::View VCF::ObjectWithCallbacks VCF::Object List of all members.

Public Types

enum  { PrimaryPane = (uint32)-1 }

Public Member Functions

 StatusBar ()
 constructor.
void addStatusPane (const double &width=-1.0, const String &text="")
 adds a child status control to this control's container and assignes to it a width and a text.
void insertStatusPaneWithWidth (const uint32 &index, const String &text, const double &width)
void insertStatusPane (const uint32 &index, const String &text)
void removeStatusPane (const uint32 &index)
 remove a child status control from this control's container.
uint32 getStatusPaneCount ()
String getStatusPaneText (const uint32 &index)
void setStatusPaneText (const uint32 &index, const String &val)
 writes the status text on the control indexed by index
String getStatusText ()
void setStatusText (const String &val)
VCF::ControlgetStatusPaneControl (const uint32 &index)
 gets the pointer to the status control indexed by index
virtual void paint (VCF::GraphicsContext *ctx)
 paint this control and all its children status controls.

Classes

class  Container
 te container internally used by this control. More...

Member Enumeration Documentation

anonymous enum
 

Enumerator:
PrimaryPane 

Reimplemented from VCF::Control.


Constructor & Destructor Documentation

VCF::StatusBar::StatusBar  ) 
 

constructor.

This creates the control container and adds to it a child status label control.


Member Function Documentation

void VCF::StatusBar::addStatusPane const double &  width = -1.0,
const String text = ""
 

adds a child status control to this control's container and assignes to it a width and a text.

Parameters:
const double& width, the width to assign to the created child control. The default is -1 to let this child control to have its preferred width.
const VCF::String& text, the text for this child control to display. The default is an empty string.

VCF::Control* VCF::StatusBar::getStatusPaneControl const uint32 index  ) 
 

gets the pointer to the status control indexed by index

Parameters:
ulong index, the index of the control in this control's container.

uint32 VCF::StatusBar::getStatusPaneCount  ) 
 

String VCF::StatusBar::getStatusPaneText const uint32 index  ) 
 

String VCF::StatusBar::getStatusText  ) 
 

void VCF::StatusBar::insertStatusPane const uint32 index,
const String text
 

void VCF::StatusBar::insertStatusPaneWithWidth const uint32 index,
const String text,
const double &  width
 

virtual void VCF::StatusBar::paint VCF::GraphicsContext ctx  )  [virtual]
 

paint this control and all its children status controls.

Overrides the default implementation for a Control.

Reimplemented from VCF::CustomControl.

void VCF::StatusBar::removeStatusPane const uint32 index  ) 
 

remove a child status control from this control's container.

Parameters:
ulong index, the index of the control to remove.

void VCF::StatusBar::setStatusPaneText const uint32 index,
const String val
 

writes the status text on the control indexed by index

Parameters:
int index, the index of the control in this control's container
const VCF::String& text, the text to write

void VCF::StatusBar::setStatusText const String val  ) 
 


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