![]() |
VR-Forces 5.0.2 Developer's Guide
|

Public Types | |
| enum | StatusColor { GREEN_STATUS, YELLOW_STATUS, RED_STATUS, BLACK_STATUS, WHITE_STATUS, SELECTED_STATUS } |
Public Member Functions | |
| DtGumballStatusPixmapGenerator (const std::string &iconsPath) | |
| virtual | ~DtGumballStatusPixmapGenerator () |
| void | init () |
| virtual QImage | effectivenessPixmap (const QString &effectivenessStatus, const QSize &size) |
| virtual QImage | selectedStatusPixmap (const QString &personnelStatus, const QString &polStatus, const QString &weaponsStatus, const QString &ammoStatus, const QSize &size) |
| void | setLightColorGreen (const QColor &c) |
| const QColor & | getLightColorGreen () const |
| void | setDarkColorGreen (const QColor &c) |
| const QColor & | getDarkColorGreen () const |
| void | setHighlightColorGreen (const QColor &c) |
| const QColor & | getHighlightColorGreen () const |
| void | setLightColorYellow (const QColor &c) |
| const QColor & | getLightColorYellow () const |
| void | setDarkColorYellow (const QColor &c) |
| const QColor & | getDarkColorYellow () const |
| void | setHighlightColorYellow (const QColor &c) |
| const QColor & | getHighlightColorYellow () const |
| void | setLightColorRed (const QColor &c) |
| const QColor & | getLightColorRed () const |
| void | setDarkColorRed (const QColor &c) |
| const QColor & | getDarkColorRed () const |
| void | setHighlightColorRed (const QColor &c) |
| const QColor & | getHighlightColorRed () const |
| void | setLightColorBlack (const QColor &c) |
| const QColor & | getLightColorBlack () const |
| void | setDarkColorBlack (const QColor &c) |
| const QColor & | getDarkColorBlack () const |
| void | setHighlightColorBlack (const QColor &c) |
| const QColor & | getHighlightColorBlack () const |
| void | setLightColorWhite (const QColor &c) |
| const QColor & | getLightColorWhite () const |
| void | setDarkColorWhite (const QColor &c) |
| const QColor & | getDarkColorWhite () const |
| void | setHighlightColorWhite (const QColor &c) |
| const QColor & | getHighlightColorWhite () const |
| void | setLightColorSelected (const QColor &c) |
| const QColor & | getLightColorSelected () const |
| void | setDarkColorSelected (const QColor &c) |
| const QColor & | getDarkColorSelected () const |
| void | setHighlightColorSelected (const QColor &c) |
| const QColor & | getHighlightColorSelected () const |
| QByteArray | lightColor (StatusColor c) const |
| QByteArray | darkColor (StatusColor c) const |
| QByteArray | highlightColor (StatusColor c) const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtGumballStatusPixmapGenerator & | instance (makVrv::DtDe &) |
| static void | registerInstance (makVrv::DtDe &, DtGumballStatusPixmapGenerator *) |
Protected Member Functions | |
| virtual StatusColor | getPieSectionColor (const QString &pieSectionState) |
| virtual int | getEffectivenessLevel (const QString &effectivenessState) |
Protected Attributes | |
| std::string | myIconsPath |
| QByteArray | my3SliceSvgData |
| QByteArray | my4SliceSvgData |
| QColor | myLightColors [6] |
| QColor | myDarkColors [6] |
| QColor | myHighlightColors [6] |
Properties | |
| QColor | GreenColorLight |
| QColor | GreenColorDark |
| QColor | GreenColorHighlight |
| QColor | YellowColorLight |
| QColor | YellowColorDark |
| QColor | YellowColorHighlight |
| QColor | RedColorLight |
| QColor | RedColorDark |
| QColor | RedColorHighlight |
| QColor | BlackColorLight |
| QColor | BlackColorDark |
| QColor | BlackColorHighlight |
| QColor | WhiteColorLight |
| QColor | WhiteColorDark |
| QColor | WhiteColorHighlight |
| QColor | SelectedColorLight |
| QColor | SelectedColorDark |
| QColor | SelectedColorHighlight |
Private Member Functions | |
| DtGumballStatusPixmapGenerator (const DtGumballStatusPixmapGenerator &) | |
| DtGumballStatusPixmapGenerator & | operator= (const DtGumballStatusPixmapGenerator &) |
| makVrf::DtGumballStatusPixmapGenerator::DtGumballStatusPixmapGenerator | ( | const std::string & | iconsPath | ) |
|
virtual |
|
private |
| void makVrf::DtGumballStatusPixmapGenerator::init | ( | ) |
Initializes the pixmap generator.
|
static |
Instance of this class if not registered.
|
static |
Registers a new instance.
|
virtual |
Returns a pixmap to display the given combat effectiveness.
|
virtual |
Returns a pixmap to display the selected status. If you wish a pie edge to look "selected", submit an empty string tor the status entry.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protectedvirtual |
Returns the StatusColor for the given status.
|
protectedvirtual |
Returns an effectiveness level based on the current status.
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |