Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <staticdisplay.h>
Public Member Functions | |
virtual void | draw (void) |
virtual std::string | text (void) |
virtual void | setText (std::string t) |
virtual Justification | justification (void) |
virtual void | setJustification (Justification j) |
virtual bool | multiLine (void) |
virtual void | setMultiLine (bool multi) |
virtual Size | textMargins (void) |
virtual void | setTextMargins (const Size &s) |
virtual void | setScroller (Scroller *s) |
virtual GFXColor | textColor (void) |
virtual void | setTextColor (const GFXColor &c) |
virtual Font | font (void) |
virtual void | setFont (const Font &f) |
virtual void | setRect (const Rect &r) |
virtual bool | processMouseDown (const InputEvent &event) |
virtual bool | processCommand (const EventCommandId &command, Control *control) |
StaticDisplay (void) | |
virtual | ~StaticDisplay (void) |
![]() | |
virtual Rect | rect (void) |
virtual bool | hitTest (const Point &p) |
virtual bool | hidden (void) |
virtual void | setHidden (bool h=true) |
virtual const std::string & | id (void) |
virtual void | setId (const std::string &newId) |
virtual GFXColor | color (void) |
virtual void | setColor (const GFXColor &c) |
virtual GFXColor | outlineColor (void) |
virtual void | setOutlineColor (const GFXColor &c) |
virtual bool | hasGroupChildren (void) |
Control (void) | |
virtual | ~Control (void) |
![]() | |
virtual bool | processKeyDown (const InputEvent &event) |
virtual bool | processKeyUp (const InputEvent &event) |
virtual void | processUnfocus (const InputEvent &event) |
virtual bool | processMouseUp (const InputEvent &event) |
virtual bool | processMouseMove (const InputEvent &event) |
virtual bool | processMouseDrag (const InputEvent &event) |
virtual void | sendCommand (const EventCommandId &command, Control *control) |
virtual void | setCommandTarget (EventResponder *responder) |
virtual void | setModal (bool modal) |
EventResponder (void) | |
virtual | ~EventResponder (void) |
Protected Member Functions | |
void | setPaintTextRect (void) |
![]() | |
virtual void | drawBackground (void) |
Protected Attributes | |
PaintText | m_paintText |
Size | m_textMargins |
int | m_scrollPosition |
int | m_layoutVersion |
Scroller * | m_scroller |
![]() | |
Rect | m_rect |
std::string | m_id |
GFXColor | m_color |
GFXColor | m_outlineColor |
GFXColor | m_textColor |
Font | m_font |
bool | m_hidden |
![]() | |
bool | m_modal |
EventResponder * | m_commandTarget |
Definition at line 39 of file staticdisplay.h.
StaticDisplay::StaticDisplay | ( | void | ) |
Definition at line 112 of file staticdisplay.cpp.
|
inlinevirtual |
Definition at line 118 of file staticdisplay.h.
|
virtual |
Implements Control.
Reimplemented in TextInputDisplay.
Definition at line 60 of file staticdisplay.cpp.
References Control::drawBackground(), PaintText::drawLines(), Size::height, PaintText::layoutVersion(), PaintText::lineCount(), m_layoutVersion, m_paintText, Control::m_rect, m_scroller, m_scrollPosition, Scroller::setRangeValues(), Scroller::setScrollPosition(), Rect::size, and PaintText::visibleLineCountStartingWith().
Referenced by TextInputDisplay::draw().
|
inlinevirtual |
Reimplemented from Control.
Definition at line 98 of file staticdisplay.h.
References PaintText::font(), and m_paintText.
|
inlinevirtual |
Definition at line 56 of file staticdisplay.h.
References PaintText::justification(), and m_paintText.
|
inlinevirtual |
Definition at line 66 of file staticdisplay.h.
References m_paintText, PaintText::MULTI_LINE, and PaintText::widthExceeded().
|
virtual |
Reimplemented from EventResponder.
Definition at line 85 of file staticdisplay.cpp.
References m_scroller, m_scrollPosition, EventResponder::processCommand(), and Scroller::scrollPosition().
|
virtual |
Reimplemented from EventResponder.
Reimplemented in TextInputDisplay.
Definition at line 96 of file staticdisplay.cpp.
References InputEvent::code, VegaConfig::getVariable(), Control::hitTest(), InputEvent::loc, m_scroller, XMLSupport::parse_int(), EventResponder::processMouseDown(), Scroller::scrollPosition(), Scroller::setScrollPosition(), vs_config, WHEELDOWN_MOUSE_BUTTON, and WHEELUP_MOUSE_BUTTON.
Referenced by TextInputDisplay::processMouseDown().
|
inlinevirtual |
Reimplemented from Control.
Definition at line 102 of file staticdisplay.h.
References m_paintText, and PaintText::setFont().
Referenced by NavComputer::constructControls(), BaseComputer::constructControls(), GameMenu::createControls(), CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), GameMenu::createNetworkControls(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), and BaseComputer::LoadSaveQuitConfirm::init().
|
inlinevirtual |
Definition at line 60 of file staticdisplay.h.
References m_paintText, and PaintText::setJustification().
Referenced by BaseComputer::constructControls(), CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), and CreateControlsForYesNoWindow().
|
inlinevirtual |
Definition at line 70 of file staticdisplay.h.
References PaintText::ELLIPSIS, m_paintText, PaintText::MULTI_LINE, and PaintText::setWidthExceeded().
Referenced by NavComputer::constructControls(), BaseComputer::constructControls(), CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), GameMenu::createNetworkControls(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), and BaseComputer::LoadSaveQuitConfirm::init().
|
protected |
Definition at line 39 of file staticdisplay.cpp.
References Rect::copyAndInset(), m_paintText, Control::m_rect, m_textMargins, and PaintText::setRect().
Referenced by setRect(), and setTextMargins().
|
virtual |
Reimplemented from Control.
Definition at line 53 of file staticdisplay.cpp.
References setPaintTextRect(), and Control::setRect().
Referenced by NavComputer::constructControls(), BaseComputer::constructControls(), GameMenu::createControls(), CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), GameMenu::createNetworkControls(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), and BaseComputer::LoadSaveQuitConfirm::init().
|
virtual |
Definition at line 78 of file staticdisplay.cpp.
References m_scroller, and EventResponder::setCommandTarget().
Referenced by NavComputer::constructControls(), and BaseComputer::constructControls().
|
inlinevirtual |
Definition at line 50 of file staticdisplay.h.
References m_paintText, and PaintText::setText().
Referenced by BaseComputer::actionNewGame(), BaseComputer::configureCargoCommitControls(), NavComputer::constructControls(), BaseComputer::constructControls(), GameMenu::createControls(), GameMenu::createNetworkControls(), TextInputDisplay::draw(), BaseComputer::hideCommitControls(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), QuestionDialog::init(), BaseComputer::LoadSaveQuitConfirm::init(), BaseComputer::loadLoadSaveControls(), BaseComputer::loadNewsControls(), NavComputer::loadPathLister(), BaseComputer::loadSavePickerChangedSelection(), BaseComputer::newsPickerChangedSelection(), NavComputer::recalcTitle(), BaseComputer::recalcTitle(), BaseComputer::showPlayerInfo(), BaseComputer::showShipStats(), NavComputer::updateDescription(), NavComputer::updateNodeDescription(), and BaseComputer::updateTransactionControlsForSelection().
|
inlinevirtual |
Reimplemented from Control.
Definition at line 92 of file staticdisplay.h.
References m_paintText, and PaintText::setColor().
Referenced by NavComputer::constructControls(), BaseComputer::constructControls(), GameMenu::createControls(), CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), GameMenu::createNetworkControls(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), and BaseComputer::LoadSaveQuitConfirm::init().
|
virtual |
Definition at line 46 of file staticdisplay.cpp.
References m_textMargins, and setPaintTextRect().
Referenced by NavComputer::constructControls(), BaseComputer::constructControls(), GameMenu::createNetworkControls(), and NavComputer::RenameConfirm::init().
|
inlinevirtual |
Definition at line 46 of file staticdisplay.h.
References m_paintText, and PaintText::text().
Referenced by NavComputer::actionAnd(), BaseComputer::actionConfirmedLoadGame(), BaseComputer::actionConfirmedSaveGame(), BaseComputer::actionLoadGame(), NavComputer::actionOr(), BaseComputer::actionSaveGame(), TextInputDisplay::draw(), and NavComputer::RenameConfirm::processWindowCommand().
|
inlinevirtual |
Reimplemented from Control.
Definition at line 88 of file staticdisplay.h.
References PaintText::color(), and m_paintText.
|
inlinevirtual |
Definition at line 76 of file staticdisplay.h.
References m_textMargins.
|
protected |
Definition at line 131 of file staticdisplay.h.
Referenced by draw().
|
protected |
Definition at line 128 of file staticdisplay.h.
Referenced by draw(), font(), justification(), multiLine(), setFont(), setJustification(), setMultiLine(), setPaintTextRect(), setText(), setTextColor(), text(), and textColor().
|
protected |
Definition at line 132 of file staticdisplay.h.
Referenced by draw(), processCommand(), processMouseDown(), and setScroller().
|
protected |
Definition at line 130 of file staticdisplay.h.
Referenced by draw(), and processCommand().
|
protected |
Definition at line 129 of file staticdisplay.h.
Referenced by setPaintTextRect(), setTextMargins(), and textMargins().