Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNETLSTable::Cell Class Reference

FOX needs this. More...

#include <GNETLSTable.h>

Collaboration diagram for GNETLSTable::Cell:
[legend]

Public Member Functions

 Cell (GNETLSTable *TLSTable, FXLabel *indexLabel, FXLabel *indexLabelBold, int col, int row)
 constructor for index label
 Cell (GNETLSTable *TLSTable, int col, int row)
 constructor for menu buttons
 Cell (GNETLSTable *TLSTable, MFXButtonTooltip *button, int col, int row)
 constructor for buttons
 Cell (GNETLSTable *TLSTable, MFXTextFieldIcon *textField, int col, int row)
 constructor for textField
void disable ()
 Disable cell.
void disableButton ()
 disable button (used for delete, move up and move down)
void enable ()
 Enable cell.
MFXButtonTooltipgetAddAllGreenPhaseButton ()
 get add all green phase button
MFXButtonTooltipgetAddAllGreenPriorityPhaseButton ()
 get add all green priority phase button
MFXButtonTooltipgetAddAllRedPhaseButton ()
 get add all red phase button
MFXButtonTooltipgetAddAllYellowPhaseButton ()
 get add all yellow phase button
MFXMenuButtonTooltipgetAddButton () const
 get add button
MFXButtonTooltipgetAddPhaseButton ()
 get add phase button
MFXButtonTooltipgetButton ()
 get remove, move up or move down button
int getCol () const
 column index
double getDoubleValue () const
 get double value (only for types 'u' and 'd')
MFXButtonTooltipgetDuplicatePhaseButton ()
 get duplicate phase button
FXLabel * getIndexLabel () const
 get index label
int getRow () const
 row index
MFXTextFieldIcongetTextField () const
 get textField
char getType () const
 get column type
bool hasFocus () const
 check if current cell has focus
void hideMenuButtonPopup ()
 hide menuButton popup
void setFocus ()
 set focus in the current cell
void setTooltip (const std::string &toolTip)
 set tooltip
void showIndexLabelBold ()
 show label index bold
void showIndexLabelNormal ()
 show label index normal
 ~Cell ()
 destructor

Private Member Functions

 Cell ()
 default constructor

Private Attributes

MFXButtonTooltipmyAddAllGreenButton = nullptr
 add all green phase button
MFXButtonTooltipmyAddAllGreenPriorityButton = nullptr
 add all green priority phase button
MFXButtonTooltipmyAddAllRedButton = nullptr
 add all red phase button
MFXButtonTooltipmyAddAllYellowButton = nullptr
 add all yellow phase button
MFXMenuButtonTooltipmyAddButton = nullptr
 menu button tooltip
MFXButtonTooltipmyAddPhaseButton = nullptr
 add phase button
MFXButtonTooltipmyButton = nullptr
 button
const int myCol
 column index
bool myDisableButton = false
 disable button
MFXButtonTooltipmyDuplicatePhaseButton = nullptr
 duplicate phase button
FXLabel * myIndexLabel = nullptr
 index label
FXLabel * myIndexLabelBold = nullptr
 index label bold
FXPopup * myMenuButtonPopup = nullptr
 popup for buttons
const int myRow
 row index
MFXTextFieldIconmyTextField = nullptr
 MFXTextFieldIcon.
GNETLSTablemyTLSTable = nullptr
 pointer to TLSTable parent

Detailed Description

FOX needs this.

table cell

Definition at line 153 of file GNETLSTable.h.

Constructor & Destructor Documentation

◆ Cell() [1/5]

GNETLSTable::Cell::Cell ( GNETLSTable * TLSTable,
MFXTextFieldIcon * textField,
int col,
int row )

constructor for textField

Definition at line 668 of file GNETLSTable.cpp.

References MFXTextFieldIcon::create(), GNETLSTable::GNETLSTable(), myCol, myRow, myTextField, and myTLSTable.

◆ Cell() [2/5]

GNETLSTable::Cell::Cell ( GNETLSTable * TLSTable,
FXLabel * indexLabel,
FXLabel * indexLabelBold,
int col,
int row )

constructor for index label

Definition at line 678 of file GNETLSTable.cpp.

References GNETLSTable::GNETLSTable(), myCol, myIndexLabel, myIndexLabelBold, myRow, and myTLSTable.

◆ Cell() [3/5]

GNETLSTable::Cell::Cell ( GNETLSTable * TLSTable,
MFXButtonTooltip * button,
int col,
int row )

constructor for buttons

Definition at line 693 of file GNETLSTable.cpp.

References GNETLSTable::GNETLSTable(), myButton, myCol, myRow, and myTLSTable.

◆ Cell() [4/5]

◆ ~Cell()

◆ Cell() [5/5]

GNETLSTable::Cell::Cell ( )
private

default constructor

Definition at line 1075 of file GNETLSTable.cpp.

References myCol, and myRow.

Member Function Documentation

◆ disable()

◆ disableButton()

void GNETLSTable::Cell::disableButton ( )

disable button (used for delete, move up and move down)

Definition at line 1067 of file GNETLSTable.cpp.

References myButton, and myDisableButton.

◆ enable()

◆ getAddAllGreenPhaseButton()

MFXButtonTooltip * GNETLSTable::Cell::getAddAllGreenPhaseButton ( )

get add all green phase button

Definition at line 1009 of file GNETLSTable.cpp.

References myAddAllGreenButton.

Referenced by GNETLSTable::testTable().

Here is the caller graph for this function:

◆ getAddAllGreenPriorityPhaseButton()

MFXButtonTooltip * GNETLSTable::Cell::getAddAllGreenPriorityPhaseButton ( )

get add all green priority phase button

Definition at line 1015 of file GNETLSTable.cpp.

References myAddAllGreenPriorityButton.

Referenced by GNETLSTable::testTable().

Here is the caller graph for this function:

◆ getAddAllRedPhaseButton()

MFXButtonTooltip * GNETLSTable::Cell::getAddAllRedPhaseButton ( )

get add all red phase button

Definition at line 997 of file GNETLSTable.cpp.

References myAddAllRedButton.

Referenced by GNETLSTable::testTable().

Here is the caller graph for this function:

◆ getAddAllYellowPhaseButton()

MFXButtonTooltip * GNETLSTable::Cell::getAddAllYellowPhaseButton ( )

get add all yellow phase button

Definition at line 1003 of file GNETLSTable.cpp.

References myAddAllYellowButton.

Referenced by GNETLSTable::testTable().

Here is the caller graph for this function:

◆ getAddButton()

MFXMenuButtonTooltip * GNETLSTable::Cell::getAddButton ( ) const

get add button

Definition at line 973 of file GNETLSTable.cpp.

References myAddButton.

◆ getAddPhaseButton()

MFXButtonTooltip * GNETLSTable::Cell::getAddPhaseButton ( )

get add phase button

Definition at line 985 of file GNETLSTable.cpp.

References myAddPhaseButton.

Referenced by GNETLSTable::testTable().

Here is the caller graph for this function:

◆ getButton()

MFXButtonTooltip * GNETLSTable::Cell::getButton ( )

get remove, move up or move down button

Definition at line 979 of file GNETLSTable.cpp.

References myButton.

Referenced by GNETLSTable::testTable().

Here is the caller graph for this function:

◆ getCol()

int GNETLSTable::Cell::getCol ( ) const

column index

Definition at line 1041 of file GNETLSTable.cpp.

References myCol.

◆ getDoubleValue()

double GNETLSTable::Cell::getDoubleValue ( ) const

get double value (only for types 'u' and 'd')

Definition at line 939 of file GNETLSTable.cpp.

References GNEAttributeCarrier::canParse(), myTextField, GNEAttributeCarrier::parse(), and TL.

◆ getDuplicatePhaseButton()

MFXButtonTooltip * GNETLSTable::Cell::getDuplicatePhaseButton ( )

get duplicate phase button

Definition at line 991 of file GNETLSTable.cpp.

References myDuplicatePhaseButton.

Referenced by GNETLSTable::testTable().

Here is the caller graph for this function:

◆ getIndexLabel()

FXLabel * GNETLSTable::Cell::getIndexLabel ( ) const

get index label

Definition at line 967 of file GNETLSTable.cpp.

References myIndexLabel.

◆ getRow()

int GNETLSTable::Cell::getRow ( ) const

row index

Definition at line 1047 of file GNETLSTable.cpp.

References myRow.

◆ getTextField()

MFXTextFieldIcon * GNETLSTable::Cell::getTextField ( ) const

get textField

Definition at line 961 of file GNETLSTable.cpp.

References myTextField.

Referenced by GNETLSTable::testTable().

Here is the caller graph for this function:

◆ getType()

char GNETLSTable::Cell::getType ( ) const

get column type

Definition at line 1053 of file GNETLSTable.cpp.

References myCol, and myTLSTable.

◆ hasFocus()

bool GNETLSTable::Cell::hasFocus ( ) const

◆ hideMenuButtonPopup()

void GNETLSTable::Cell::hideMenuButtonPopup ( )

hide menuButton popup

Definition at line 1059 of file GNETLSTable.cpp.

References myMenuButtonPopup.

◆ setFocus()

void GNETLSTable::Cell::setFocus ( )

◆ setTooltip()

void GNETLSTable::Cell::setTooltip ( const std::string & toolTip)

set tooltip

Definition at line 951 of file GNETLSTable.cpp.

References myTextField, and TL.

◆ showIndexLabelBold()

void GNETLSTable::Cell::showIndexLabelBold ( )

show label index bold

Definition at line 1031 of file GNETLSTable.cpp.

References myIndexLabel, and myIndexLabelBold.

◆ showIndexLabelNormal()

void GNETLSTable::Cell::showIndexLabelNormal ( )

show label index normal

Definition at line 1021 of file GNETLSTable.cpp.

References myIndexLabel, and myIndexLabelBold.

Field Documentation

◆ myAddAllGreenButton

MFXButtonTooltip* GNETLSTable::Cell::myAddAllGreenButton = nullptr
private

add all green phase button

Definition at line 275 of file GNETLSTable.h.

Referenced by Cell(), disable(), enable(), getAddAllGreenPhaseButton(), hasFocus(), setFocus(), and ~Cell().

◆ myAddAllGreenPriorityButton

MFXButtonTooltip* GNETLSTable::Cell::myAddAllGreenPriorityButton = nullptr
private

add all green priority phase button

Definition at line 278 of file GNETLSTable.h.

Referenced by Cell(), disable(), enable(), getAddAllGreenPriorityPhaseButton(), hasFocus(), setFocus(), and ~Cell().

◆ myAddAllRedButton

MFXButtonTooltip* GNETLSTable::Cell::myAddAllRedButton = nullptr
private

add all red phase button

Definition at line 269 of file GNETLSTable.h.

Referenced by Cell(), disable(), enable(), getAddAllRedPhaseButton(), hasFocus(), setFocus(), and ~Cell().

◆ myAddAllYellowButton

MFXButtonTooltip* GNETLSTable::Cell::myAddAllYellowButton = nullptr
private

add all yellow phase button

Definition at line 272 of file GNETLSTable.h.

Referenced by Cell(), disable(), enable(), getAddAllYellowPhaseButton(), hasFocus(), setFocus(), and ~Cell().

◆ myAddButton

MFXMenuButtonTooltip* GNETLSTable::Cell::myAddButton = nullptr
private

menu button tooltip

Definition at line 260 of file GNETLSTable.h.

Referenced by Cell(), disable(), enable(), getAddButton(), hasFocus(), setFocus(), and ~Cell().

◆ myAddPhaseButton

MFXButtonTooltip* GNETLSTable::Cell::myAddPhaseButton = nullptr
private

add phase button

Definition at line 263 of file GNETLSTable.h.

Referenced by Cell(), disable(), enable(), getAddPhaseButton(), hasFocus(), setFocus(), and ~Cell().

◆ myButton

MFXButtonTooltip* GNETLSTable::Cell::myButton = nullptr
private

button

Definition at line 254 of file GNETLSTable.h.

Referenced by Cell(), disable(), disableButton(), enable(), getButton(), hasFocus(), setFocus(), and ~Cell().

◆ myCol

const int GNETLSTable::Cell::myCol
private

column index

Definition at line 281 of file GNETLSTable.h.

Referenced by Cell(), Cell(), Cell(), Cell(), Cell(), getCol(), and getType().

◆ myDisableButton

bool GNETLSTable::Cell::myDisableButton = false
private

disable button

Definition at line 287 of file GNETLSTable.h.

Referenced by disable(), disableButton(), and enable().

◆ myDuplicatePhaseButton

MFXButtonTooltip* GNETLSTable::Cell::myDuplicatePhaseButton = nullptr
private

duplicate phase button

Definition at line 266 of file GNETLSTable.h.

Referenced by Cell(), disable(), enable(), getDuplicatePhaseButton(), hasFocus(), setFocus(), and ~Cell().

◆ myIndexLabel

FXLabel* GNETLSTable::Cell::myIndexLabel = nullptr
private

index label

Definition at line 248 of file GNETLSTable.h.

Referenced by Cell(), disable(), enable(), getIndexLabel(), showIndexLabelBold(), showIndexLabelNormal(), and ~Cell().

◆ myIndexLabelBold

FXLabel* GNETLSTable::Cell::myIndexLabelBold = nullptr
private

index label bold

Definition at line 251 of file GNETLSTable.h.

Referenced by Cell(), disable(), enable(), showIndexLabelBold(), showIndexLabelNormal(), and ~Cell().

◆ myMenuButtonPopup

FXPopup* GNETLSTable::Cell::myMenuButtonPopup = nullptr
private

popup for buttons

Definition at line 257 of file GNETLSTable.h.

Referenced by Cell(), disable(), enable(), hideMenuButtonPopup(), and ~Cell().

◆ myRow

const int GNETLSTable::Cell::myRow
private

row index

Definition at line 284 of file GNETLSTable.h.

Referenced by Cell(), Cell(), Cell(), Cell(), Cell(), and getRow().

◆ myTextField

MFXTextFieldIcon* GNETLSTable::Cell::myTextField = nullptr
private

◆ myTLSTable

GNETLSTable* GNETLSTable::Cell::myTLSTable = nullptr
private

pointer to TLSTable parent

Definition at line 242 of file GNETLSTable.h.

Referenced by Cell(), Cell(), Cell(), Cell(), and getType().


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