#include <nanoStatusBar.hpp>
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 |
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.
Definition at line 40 of file nanoStatusBar.hpp.
|
Constructor.
Definition at line 44 of file nanoStatusBar.cpp. |
|
Destructor.
Definition at line 54 of file nanoStatusBar.cpp. |
|
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. |
|
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.
Definition at line 88 of file nanoStatusBar.cpp. References bitmapDisabled, bitmapEnabled, bitmapInput, bitmapNoSpace, bitmapOutput, INITSPACE, INTERSPACE, labelDisabled, labelEnabled, labelInput, labelNoSpace, and labelOutput. |
|
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. |
|
Definition at line 58 of file nanoStatusBar.hpp. Referenced by initControls(), OnSize(), and setWidthHeight(). |
|
Definition at line 57 of file nanoStatusBar.hpp. Referenced by initControls(), OnSize(), and setWidthHeight(). |
|
Definition at line 59 of file nanoStatusBar.hpp. Referenced by initControls(), OnSize(), and setWidthHeight(). |
|
Definition at line 61 of file nanoStatusBar.hpp. Referenced by initControls(), OnSize(), and setWidthHeight(). |
|
Definition at line 60 of file nanoStatusBar.hpp. Referenced by initControls(), OnSize(), and setWidthHeight(). |
|
Definition at line 52 of file nanoStatusBar.hpp. Referenced by initControls(), OnSize(), and setWidthHeight(). |
|
Definition at line 51 of file nanoStatusBar.hpp. Referenced by initControls(), OnSize(), and setWidthHeight(). |
|
Definition at line 53 of file nanoStatusBar.hpp. Referenced by initControls(), OnSize(), and setWidthHeight(). |
|
Definition at line 55 of file nanoStatusBar.hpp. Referenced by initControls(), OnSize(), and setWidthHeight(). |
|
Definition at line 54 of file nanoStatusBar.hpp. Referenced by initControls(), OnSize(), and setWidthHeight(). |