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

#include <FXLCDLabel.h>

Inheritance diagram for FXEX::FXLCDLabel:
[legend]
Collaboration diagram for FXEX::FXLCDLabel:
[legend]

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 47 of file FXLCDLabel.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_SEVENSEGMENT 
ID_LAST 

Definition at line 61 of file FXLCDLabel.h.

Constructor & Destructor Documentation

◆ FXLCDLabel() [1/2]

FXEX::FXLCDLabel::FXLCDLabel ( )
inlineprotected

Definition at line 52 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 71 of file FXLCDLabel.cpp.

◆ ~FXLCDLabel()

FXEX::FXLCDLabel::~FXLCDLabel ( )
virtual

dtor

Definition at line 84 of file FXLCDLabel.cpp.

Member Function Documentation

◆ create()

void FXEX::FXLCDLabel::create ( )
virtual

create resrouces

Definition at line 93 of file FXLCDLabel.cpp.

◆ destroy()

void FXEX::FXLCDLabel::destroy ( )
virtual

destroy resources

Definition at line 109 of file FXLCDLabel.cpp.

◆ detach()

void FXEX::FXLCDLabel::detach ( )
virtual

detach resources

Definition at line 101 of file FXLCDLabel.cpp.

◆ drawString()

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

◆ getBgColor()

FXColor FXEX::FXLCDLabel::getBgColor ( ) const

Definition at line 133 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getBgColor().

◆ getDefaultHeight()

FXint FXEX::FXLCDLabel::getDefaultHeight ( )
virtual

return minimum height

Definition at line 381 of file FXLCDLabel.cpp.

◆ getDefaultWidth()

FXint FXEX::FXLCDLabel::getDefaultWidth ( )
virtual

return minimum width

Definition at line 376 of file FXLCDLabel.cpp.

◆ getFgColor()

FXColor FXEX::FXLCDLabel::getFgColor ( ) const

Definition at line 117 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getFgColor().

◆ getGroove()

FXint FXEX::FXLCDLabel::getGroove ( ) const

Definition at line 212 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getGroove().

◆ getHorizontal()

FXint FXEX::FXLCDLabel::getHorizontal ( ) const

Definition at line 158 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getHorizontal().

◆ getText()

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

Definition at line 94 of file FXLCDLabel.h.

◆ getThickness()

FXint FXEX::FXLCDLabel::getThickness ( ) const

Definition at line 194 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getThickness().

◆ getVertical()

FXint FXEX::FXLCDLabel::getVertical ( ) const

Definition at line 176 of file FXLCDLabel.cpp.

References FXEX::FXSevenSegment::getVertical().

◆ load()

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

load resources

Definition at line 393 of file FXLCDLabel.cpp.

◆ onCmdGetIntValue()

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

Definition at line 254 of file FXLCDLabel.cpp.

◆ onCmdGetRealValue()

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

Definition at line 260 of file FXLCDLabel.cpp.

◆ onCmdGetStringValue()

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

Definition at line 266 of file FXLCDLabel.cpp.

◆ onCmdSetIntValue()

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

Definition at line 236 of file FXLCDLabel.cpp.

◆ onCmdSetRealValue()

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

Definition at line 242 of file FXLCDLabel.cpp.

◆ onCmdSetStringValue()

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

Definition at line 248 of file FXLCDLabel.cpp.

◆ onCmdSetValue()

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

Definition at line 230 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 408 of file FXLCDLabel.cpp.

◆ onQueryTip()

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

Definition at line 400 of file FXLCDLabel.cpp.

◆ onRedirectEvent()

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

Definition at line 365 of file FXLCDLabel.cpp.

◆ save()

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

save resources

Definition at line 386 of file FXLCDLabel.cpp.

◆ setBgColor()

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

set/get background color

Definition at line 139 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 123 of file FXLCDLabel.cpp.

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

Referenced by GUIApplicationWindow::onCmdGaming().

Here is the caller graph for this function:

◆ setGroove()

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

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

Definition at line 218 of file FXLCDLabel.cpp.

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

Referenced by GUIApplicationWindow::buildToolBars().

Here is the caller graph for this function:

◆ setHorizontal()

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

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

Definition at line 164 of file FXLCDLabel.cpp.

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

Referenced by GUIApplicationWindow::buildToolBars().

Here is the caller graph for this function:

◆ setText()

void FXEX::FXLCDLabel::setText ( FXString  lbl)

manipulate text in LCD label

Definition at line 149 of file FXLCDLabel.cpp.

Referenced by GUIApplicationWindow::buildToolBars(), GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), GUIApplicationWindow::closeAllWindows(), GUIApplicationWindow::handleEvent_SimulationLoaded(), and GUIApplicationWindow::updateTimeLCD().

Here is the caller graph for this function:

◆ setThickness()

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

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

Definition at line 200 of file FXLCDLabel.cpp.

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

Referenced by GUIApplicationWindow::buildToolBars().

Here is the caller graph for this function:

◆ setVertical()

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

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

Definition at line 182 of file FXLCDLabel.cpp.

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

Referenced by GUIApplicationWindow::buildToolBars().

Here is the caller graph for this function:

Field Documentation

◆ label

FXString FXEX::FXLCDLabel::label
protected

Definition at line 54 of file FXLCDLabel.h.

◆ nfigures

FXint FXEX::FXLCDLabel::nfigures
protected

The currently shown label.

Definition at line 55 of file FXLCDLabel.h.


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