NanoStatusBar Class Reference

Custom status bar. More...

#include <nanoStatusBar.hpp>

List of all members.

Public Member Functions

 NanoStatusBar (wxWindow *parent)
 Constructor.
virtual ~NanoStatusBar ()
 Destructor.

Private Member Functions

void initControls ()
 Initiates the status bar controls.
void OnSize (wxSizeEvent &event)
 OnSize eventh method.
void setWidthHeight ()
 Sets the minimum width and height for the icons to fit.

Private Attributes

wxStaticText * labelEnabled
wxStaticText * labelDisabled
wxStaticText * labelInput
wxStaticText * labelOutput
wxStaticText * labelNoSpace
wxStaticBitmap * bitmapEnabled
wxStaticBitmap * bitmapDisabled
wxStaticBitmap * bitmapInput
wxStaticBitmap * bitmapOutput
wxStaticBitmap * bitmapNoSpace


Detailed Description

Custom status bar.

This is a custom status bar for using with the windows of the application. It behaves exactly as a normal wxWindows status bar but has an important addition for usability: it has a legend of the meaning of the colours used on the LayoutCanvas class for painting the different status of the cells.

Author:
Bernat Rāfales Mulet <the_bell@users.sourceforge.net>
Version:
Revision
1.2

Definition at line 40 of file nanoStatusBar.hpp.


Constructor & Destructor Documentation

NanoStatusBar::NanoStatusBar wxWindow *  parent  ) 
 

Constructor.

Parameters:
parent the parent window.

Definition at line 44 of file nanoStatusBar.cpp.

NanoStatusBar::~NanoStatusBar  )  [virtual]
 

Destructor.

Definition at line 54 of file nanoStatusBar.cpp.


Member Function Documentation

void NanoStatusBar::initControls  )  [private]
 

Initiates the status bar controls.

Definition at line 60 of file nanoStatusBar.cpp.

References bitmapDisabled, bitmapEnabled, bitmapInput, bitmapNoSpace, bitmapOutput, labelDisabled, labelEnabled, labelInput, labelNoSpace, and labelOutput.

void NanoStatusBar::OnSize wxSizeEvent &  event  )  [private]
 

OnSize eventh method.

In this method the right part of the status bar is drawn. It's done by moving the texts and the colour rectangles according to the new bar size.

Parameters:
event the event.

Definition at line 88 of file nanoStatusBar.cpp.

References bitmapDisabled, bitmapEnabled, bitmapInput, bitmapNoSpace, bitmapOutput, INITSPACE, INTERSPACE, labelDisabled, labelEnabled, labelInput, labelNoSpace, and labelOutput.

void NanoStatusBar::setWidthHeight  )  [private]
 

Sets the minimum width and height for the icons to fit.

Definition at line 129 of file nanoStatusBar.cpp.

References bitmapDisabled, bitmapEnabled, bitmapInput, bitmapNoSpace, bitmapOutput, INITSPACE, INTERSPACE, labelDisabled, labelEnabled, labelInput, labelNoSpace, and labelOutput.


Member Data Documentation

wxStaticBitmap* NanoStatusBar::bitmapDisabled [private]
 

Definition at line 58 of file nanoStatusBar.hpp.

Referenced by initControls(), OnSize(), and setWidthHeight().

wxStaticBitmap* NanoStatusBar::bitmapEnabled [private]
 

Definition at line 57 of file nanoStatusBar.hpp.

Referenced by initControls(), OnSize(), and setWidthHeight().

wxStaticBitmap* NanoStatusBar::bitmapInput [private]
 

Definition at line 59 of file nanoStatusBar.hpp.

Referenced by initControls(), OnSize(), and setWidthHeight().

wxStaticBitmap* NanoStatusBar::bitmapNoSpace [private]
 

Definition at line 61 of file nanoStatusBar.hpp.

Referenced by initControls(), OnSize(), and setWidthHeight().

wxStaticBitmap* NanoStatusBar::bitmapOutput [private]
 

Definition at line 60 of file nanoStatusBar.hpp.

Referenced by initControls(), OnSize(), and setWidthHeight().

wxStaticText* NanoStatusBar::labelDisabled [private]
 

Definition at line 52 of file nanoStatusBar.hpp.

Referenced by initControls(), OnSize(), and setWidthHeight().

wxStaticText* NanoStatusBar::labelEnabled [private]
 

Definition at line 51 of file nanoStatusBar.hpp.

Referenced by initControls(), OnSize(), and setWidthHeight().

wxStaticText* NanoStatusBar::labelInput [private]
 

Definition at line 53 of file nanoStatusBar.hpp.

Referenced by initControls(), OnSize(), and setWidthHeight().

wxStaticText* NanoStatusBar::labelNoSpace [private]
 

Definition at line 55 of file nanoStatusBar.hpp.

Referenced by initControls(), OnSize(), and setWidthHeight().

wxStaticText* NanoStatusBar::labelOutput [private]
 

Definition at line 54 of file nanoStatusBar.hpp.

Referenced by initControls(), OnSize(), and setWidthHeight().


The documentation for this class was generated from the following files:
Generated on Fri Sep 1 23:59:18 2006 for NanoComp by  doxygen 1.4.6