SUMO - Simulation of Urban MObility
FXEX::FXLCDLabel Class Reference

#include <FXLCDLabel.h>

Inheritance diagram for FXEX::FXLCDLabel:
Inheritance graph
Collaboration diagram for FXEX::FXLCDLabel:
Collaboration graph

Public Types

enum  { ID_SEVENSEGMENT = FXHorizontalFrame::ID_LAST, ID_LAST }
 

Public Member Functions

virtual void create ()
 create resrouces More...
 
virtual void destroy ()
 destroy resources More...
 
virtual void detach ()
 detach resources More...
 
 FXLCDLabel (FXComposite *p, FXuint nfig=1, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=LCDLABEL_NORMAL, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD, FXint hs=DEFAULT_PAD)
 make me a label More...
 
FXColor getBgColor () const
 
virtual FXint getDefaultHeight ()
 return minimum height More...
 
virtual FXint getDefaultWidth ()
 return minimum width More...
 
FXColor getFgColor () const
 
FXint getGroove () const
 
FXint getHorizontal () const
 
FXString getText () const
 
FXint getThickness () const
 
FXint getVertical () const
 
virtual void load (FXStream &store)
 load resources More...
 
long onCmdGetIntValue (FXObject *, FXSelector, void *ptr)
 
long onCmdGetRealValue (FXObject *, FXSelector, void *ptr)
 
long onCmdGetStringValue (FXObject *, FXSelector, void *ptr)
 
long onCmdSetIntValue (FXObject *, FXSelector, void *ptr)
 
long onCmdSetRealValue (FXObject *, FXSelector, void *ptr)
 
long onCmdSetStringValue (FXObject *, FXSelector, void *ptr)
 
long onCmdSetValue (FXObject *, FXSelector, void *ptr)
 
long onPaint (FXObject *, FXSelector, void *)
 
long onQueryHelp (FXObject *, FXSelector, void *ptr)
 
long onQueryTip (FXObject *, FXSelector, void *ptr)
 
long onRedirectEvent (FXObject *, FXSelector, void *ptr)
 
virtual void save (FXStream &store) const
 save resources More...
 
void setBgColor (FXColor clr)
 set/get background color More...
 
void setFgColor (FXColor clr)
 set/get forground color More...
 
void setGroove (const FXint width)
 set/get groove width - must be less than segment width More...
 
void setHorizontal (const FXint len)
 set/get segment horizontal length - must be more than twice the segment width More...
 
void setText (FXString lbl)
 manipulate text in LCD label More...
 
void setThickness (const FXint width)
 set/get segment width - must be less than half the segment length More...
 
void setVertical (const FXint len)
 set/get segment vertical length - must be more than twice the segment width More...
 
virtual ~FXLCDLabel ()
 dtor More...
 

Protected Member Functions

virtual void drawString (const FXString &lbl)
 The number of shown figuresi, greater than zero. More...
 
 FXLCDLabel ()
 

Protected Attributes

FXString label
 
FXint nfigures
 The currently shown label. More...
 

Detailed Description

A widget which has the seven-segment display used as the drawing object for each letter in the label. Supports display of leading zeros, such as when you need to display a number. Also supports the 'JUSTIFY_RIGHT' option, for right alignment.

Definition at line 56 of file FXLCDLabel.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_SEVENSEGMENT 
ID_LAST 

Definition at line 70 of file FXLCDLabel.h.

Constructor & Destructor Documentation

◆ FXLCDLabel() [1/2]

FXEX::FXLCDLabel::FXLCDLabel ( )
inlineprotected

Definition at line 61 of file FXLCDLabel.h.

◆ FXLCDLabel() [2/2]

FXEX::FXLCDLabel::FXLCDLabel ( FXComposite *  p,
FXuint  nfig = 1,
FXObject *  tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = LCDLABEL_NORMAL,
FXint  pl = DEFAULT_PAD,
FXint  pr = DEFAULT_PAD,
FXint  pt = DEFAULT_PAD,
FXint  pb = DEFAULT_PAD,
FXint  hs = DEFAULT_PAD 
)

make me a label

Definition at line 73 of file FXLCDLabel.cpp.

◆ ~FXLCDLabel()

FXEX::FXLCDLabel::~FXLCDLabel ( )
virtual

dtor

Definition at line 86 of file FXLCDLabel.cpp.

Member Function Documentation

◆ create()

void FXEX::FXLCDLabel::create ( )
virtual

create resrouces

Definition at line 95 of file FXLCDLabel.cpp.

◆ destroy()

void FXEX::FXLCDLabel::destroy ( )
virtual

destroy resources

Definition at line 111 of file FXLCDLabel.cpp.

◆ detach()

void FXEX::FXLCDLabel::detach ( )
virtual

detach resources

Definition at line 103 of file FXLCDLabel.cpp.

◆ drawString()

void FXEX::FXLCDLabel::drawString ( const FXString &  lbl)
protectedvirtual

◆ getBgColor()

FXColor FXEX::FXLCDLabel::getBgColor ( ) const

Definition at line 135 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getBgColor().

◆ getDefaultHeight()

FXint FXEX::FXLCDLabel::getDefaultHeight ( )
virtual

return minimum height

Definition at line 383 of file FXLCDLabel.cpp.

◆ getDefaultWidth()

FXint FXEX::FXLCDLabel::getDefaultWidth ( )
virtual

return minimum width

Definition at line 378 of file FXLCDLabel.cpp.

◆ getFgColor()

FXColor FXEX::FXLCDLabel::getFgColor ( ) const

Definition at line 119 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getFgColor().

◆ getGroove()

FXint FXEX::FXLCDLabel::getGroove ( ) const

Definition at line 214 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getGroove().

◆ getHorizontal()

FXint FXEX::FXLCDLabel::getHorizontal ( ) const

Definition at line 160 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getHorizontal().

◆ getText()

FXString FXEX::FXLCDLabel::getText ( ) const
inline

Definition at line 103 of file FXLCDLabel.h.

◆ getThickness()

FXint FXEX::FXLCDLabel::getThickness ( ) const

Definition at line 196 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getThickness().

◆ getVertical()

FXint FXEX::FXLCDLabel::getVertical ( ) const

Definition at line 178 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getVertical().

◆ load()

void FXEX::FXLCDLabel::load ( FXStream &  store)
virtual

load resources

Definition at line 395 of file FXLCDLabel.cpp.

◆ onCmdGetIntValue()

long FXEX::FXLCDLabel::onCmdGetIntValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 256 of file FXLCDLabel.cpp.

◆ onCmdGetRealValue()

long FXEX::FXLCDLabel::onCmdGetRealValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 262 of file FXLCDLabel.cpp.

◆ onCmdGetStringValue()

long FXEX::FXLCDLabel::onCmdGetStringValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 268 of file FXLCDLabel.cpp.

◆ onCmdSetIntValue()

long FXEX::FXLCDLabel::onCmdSetIntValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 238 of file FXLCDLabel.cpp.

◆ onCmdSetRealValue()

long FXEX::FXLCDLabel::onCmdSetRealValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 244 of file FXLCDLabel.cpp.

◆ onCmdSetStringValue()

long FXEX::FXLCDLabel::onCmdSetStringValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 250 of file FXLCDLabel.cpp.

◆ onCmdSetValue()

long FXEX::FXLCDLabel::onCmdSetValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 232 of file FXLCDLabel.cpp.

◆ onPaint()

long FXEX::FXLCDLabel::onPaint ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

◆ onQueryHelp()

long FXEX::FXLCDLabel::onQueryHelp ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 410 of file FXLCDLabel.cpp.

◆ onQueryTip()

long FXEX::FXLCDLabel::onQueryTip ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 402 of file FXLCDLabel.cpp.

◆ onRedirectEvent()

long FXEX::FXLCDLabel::onRedirectEvent ( FXObject *  ,
FXSelector  sel,
void *  ptr 
)

Definition at line 367 of file FXLCDLabel.cpp.

◆ save()

void FXEX::FXLCDLabel::save ( FXStream &  store) const
virtual

save resources

Definition at line 388 of file FXLCDLabel.cpp.

◆ setBgColor()

void FXEX::FXLCDLabel::setBgColor ( FXColor  clr)

set/get background color

Definition at line 141 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getBgColor(), and FXEX::FXSevenSegment::setBgColor().

◆ setFgColor()

void FXEX::FXLCDLabel::setFgColor ( FXColor  clr)

set/get forground color

Definition at line 125 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getFgColor(), and FXEX::FXSevenSegment::setFgColor().

Referenced by GUIApplicationWindow::onCmdGaming().

◆ setGroove()

void FXEX::FXLCDLabel::setGroove ( const FXint  width)

set/get groove width - must be less than segment width

Definition at line 220 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getGroove(), and FXEX::FXSevenSegment::setGroove().

Referenced by GUIApplicationWindow::buildToolBars().

◆ setHorizontal()

void FXEX::FXLCDLabel::setHorizontal ( const FXint  len)

set/get segment horizontal length - must be more than twice the segment width

Definition at line 166 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getHorizontal(), and FXEX::FXSevenSegment::setHorizontal().

Referenced by GUIApplicationWindow::buildToolBars().

◆ setText()

◆ setThickness()

void FXEX::FXLCDLabel::setThickness ( const FXint  width)

set/get segment width - must be less than half the segment length

Definition at line 202 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getThickness(), and FXEX::FXSevenSegment::setThickness().

Referenced by GUIApplicationWindow::buildToolBars().

◆ setVertical()

void FXEX::FXLCDLabel::setVertical ( const FXint  len)

set/get segment vertical length - must be more than twice the segment width

Definition at line 184 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getVertical(), and FXEX::FXSevenSegment::setVertical().

Referenced by GUIApplicationWindow::buildToolBars().

Field Documentation

◆ label

FXString FXEX::FXLCDLabel::label
protected

Definition at line 63 of file FXLCDLabel.h.

◆ nfigures

FXint FXEX::FXLCDLabel::nfigures
protected

The currently shown label.

Definition at line 64 of file FXLCDLabel.h.


The documentation for this class was generated from the following files: