Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <window.h>
Public Member Functions | |
virtual void | setRect (const Rect &r) |
void | setFullScreen (void) |
void | setSizeAndCenter (const Size &size) |
virtual void | open (void) |
virtual void | close (void) |
virtual void | addControl (Control *c) |
virtual void | deleteControl (Control *c) |
virtual Control * | removeControlFromWindow (Control *c) |
virtual Control * | findControlById (const std::string &id) |
virtual GFXColor | color (void) |
virtual void | setColor (const GFXColor &c) |
virtual GuiTexture & | texture (void) |
virtual void | setTexture (const std::string &textureName) |
virtual GFXColor | outlineColor (void) |
virtual void | setOutlineColor (const GFXColor &c) |
virtual float | outlineWidth (void) |
virtual void | setOutlineWidth (float width) |
virtual WindowController * | controller (void) |
virtual void | setController (WindowController *controller) |
virtual void | draw (void) |
virtual void | readFromXml (const std::string &fileName) |
virtual bool | deleteOnClose (void) |
virtual void | setDeleteOnClose (bool del) |
virtual bool | processMouseDown (const InputEvent &event) |
virtual bool | processMouseUp (const InputEvent &event) |
virtual bool | processMouseMove (const InputEvent &event) |
virtual bool | processMouseDrag (const InputEvent &event) |
virtual bool | processCommand (const EventCommandId &command, Control *control) |
virtual | ~Window () |
Window () | |
![]() | |
virtual bool | processKeyDown (const InputEvent &event) |
virtual bool | processKeyUp (const InputEvent &event) |
virtual void | processUnfocus (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 | drawBackground (void) |
Protected Attributes | |
Rect | m_rect |
GFXColor | m_color |
GFXColor | m_outlineColor |
float | m_outlineWidth |
GuiTexture | m_texture |
bool | m_deleteOnClose |
GroupControl * | m_controls |
WindowController * | m_controller |
![]() | |
bool | m_modal |
EventResponder * | m_commandTarget |
|
virtual |
Definition at line 164 of file window.cpp.
References EventManager::addToDeleteQueue(), and m_controls.
Window::Window | ( | void | ) |
|
virtual |
Definition at line 64 of file window.cpp.
References GroupControl::addChild(), and m_controls.
Referenced by NavComputer::constructControls(), BaseComputer::constructControls(), GameMenu::createControls(), CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), BaseComputer::createModeButtons(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), BaseComputer::LoadSaveQuitConfirm::init(), BaseComputer::switchToControls(), NavComputer::switchToMajorControls(), and NavComputer::switchToMinorControls().
|
virtual |
Definition at line 58 of file window.cpp.
References processCommand().
Referenced by BaseComputer::actionDone(), buyShip(), NetActionConfirm::confirmedJoinGame(), NetActionConfirm::finalizeJoinGame(), ModalDialog::modalFinished(), GameMenu::processSinglePlayerButton(), NetActionConfirm::processWindowCommand(), NavComputer::RenameConfirm::processWindowCommand(), BaseComputer::LoadSaveQuitConfirm::processWindowCommand(), and NavComputer::toggleVisibility().
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Definition at line 68 of file window.cpp.
References GroupControl::deleteControl(), and m_controls.
|
inlinevirtual |
Definition at line 122 of file window.h.
References m_deleteOnClose.
|
virtual |
Definition at line 87 of file window.cpp.
References GroupControl::draw(), drawBackground(), and m_controls.
|
protected |
Definition at line 94 of file window.cpp.
References GuiTexture::draw(), drawRect(), drawRectOutline(), isClear(), m_color, m_outlineColor, m_outlineWidth, m_rect, and m_texture.
Referenced by draw().
|
virtual |
Definition at line 81 of file window.cpp.
References GroupControl::findControlById(), and m_controls.
Referenced by NavComputer::actionAnd(), NavComputer::actionChain(), BaseComputer::actionConfirmedLoadGame(), BaseComputer::actionConfirmedSaveGame(), BaseComputer::actionLoadGame(), BaseComputer::actionNewGame(), NavComputer::actionNot(), NavComputer::actionOr(), NavComputer::actionRemoveCriteria(), BaseComputer::actionSaveGame(), BaseComputer::actionShowAccountMenu(), BaseComputer::actionShowServerMenu(), BaseComputer::configureCargoCommitControls(), BaseComputer::configureUpgradeCommitControls(), NavComputer::createControls(), BaseComputer::createControls(), BaseComputer::createModeButtons(), ListQuestionDialog::getPicker(), BaseComputer::hideCommitControls(), QuestionDialog::init(), NavComputer::loadAbsoluteButton(), BaseComputer::loadBuyUpgradeControls(), BaseComputer::loadCargoControls(), NavComputer::loadChainLister(), NavComputer::loadCriteriaLister(), BaseComputer::loadLoadSaveControls(), BaseComputer::loadMissionsControls(), BaseComputer::loadNewsControls(), NavComputer::loadPathLister(), BaseComputer::loadSavePickerChangedSelection(), BaseComputer::loadSellUpgradeControls(), BaseComputer::loadShipDealerControls(), BaseComputer::newsPickerChangedSelection(), GameMenu::processMainMenuButton(), GameMenu::processMultiPlayerAcctButton(), GameMenu::processMultiPlayerButton(), GameMenu::processMultiPlayerHostButton(), NavComputer::RenameConfirm::processWindowCommand(), ListQuestionDialog::processWindowCommand(), GameMenu::readJoinGameControls(), NavComputer::recalcTitle(), BaseComputer::recalcTitle(), BaseComputer::BuyUpgradeOperation::selectMount(), BaseComputer::SellUpgradeOperation::selectMount(), BaseComputer::showNetworkStatus(), BaseComputer::showPlayerInfo(), BaseComputer::showShipStats(), UniverseUtil::startMenuInterface(), BaseComputer::switchToControls(), NavComputer::switchToMajorControls(), NavComputer::switchToMinorControls(), NavComputer::updateDescription(), NavComputer::updateNodeDescription(), and BaseComputer::updateTransactionControlsForSelection().
|
virtual |
Definition at line 52 of file window.cpp.
References globalWindowManager(), and WindowManager::openWindow().
Referenced by WindowController::run(), and NavComputer::toggleVisibility().
|
inlinevirtual |
Definition at line 86 of file window.h.
References m_outlineColor.
|
inlinevirtual |
Definition at line 96 of file window.h.
References m_outlineWidth.
|
virtual |
Reimplemented from EventResponder.
Definition at line 135 of file window.cpp.
References WindowManager::closeWindow(), globalWindowManager(), m_controller, m_deleteOnClose, EventResponder::processCommand(), and WindowController::processWindowCommand().
Referenced by close().
|
virtual |
Reimplemented from EventResponder.
Definition at line 107 of file window.cpp.
References m_controls, EventResponder::processMouseDown(), and GroupControl::processMouseDown().
|
virtual |
Reimplemented from EventResponder.
Definition at line 128 of file window.cpp.
References m_controls, EventResponder::processMouseDrag(), and GroupControl::processMouseDrag().
|
virtual |
Reimplemented from EventResponder.
Definition at line 121 of file window.cpp.
References m_controls, EventResponder::processMouseMove(), and GroupControl::processMouseMove().
|
virtual |
Reimplemented from EventResponder.
Definition at line 114 of file window.cpp.
References m_controls, EventResponder::processMouseUp(), and GroupControl::processMouseUp().
|
virtual |
Definition at line 104 of file window.cpp.
Definition at line 74 of file window.cpp.
References m_controls, and GroupControl::removeControlFromGroup().
Referenced by NavComputer::createControls(), BaseComputer::createControls(), BaseComputer::switchToControls(), NavComputer::switchToMajorControls(), and NavComputer::switchToMinorControls().
|
inlinevirtual |
Definition at line 70 of file window.h.
Referenced by NavComputer::createControls(), BaseComputer::createControls(), CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), GameMenu::init(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), and BaseComputer::LoadSaveQuitConfirm::init().
|
inlinevirtual |
Definition at line 110 of file window.h.
References controller(), and m_controller.
Referenced by NetActionConfirm::init(), NavComputer::init(), NavComputer::RenameConfirm::init(), BaseComputer::LoadSaveQuitConfirm::init(), and WindowController::run().
|
inlinevirtual |
Definition at line 126 of file window.h.
References m_deleteOnClose.
Referenced by NavComputer::init(), and WindowController::run().
void Window::setFullScreen | ( | void | ) |
Definition at line 41 of file window.cpp.
References FULL_SCREEN_RECT(), and setRect().
Referenced by NavComputer::createControls(), BaseComputer::createControls(), and GameMenu::init().
|
inlinevirtual |
Definition at line 90 of file window.h.
References c, and m_outlineColor.
Referenced by CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), and BaseComputer::LoadSaveQuitConfirm::init().
|
inlinevirtual |
Definition at line 100 of file window.h.
References m_outlineWidth, and width.
Referenced by CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), and BaseComputer::LoadSaveQuitConfirm::init().
|
virtual |
Definition at line 37 of file window.cpp.
References m_rect.
Referenced by setFullScreen(), and setSizeAndCenter().
void Window::setSizeAndCenter | ( | const Size & | size) |
Definition at line 45 of file window.cpp.
References Size::height, setRect(), and Size::width.
Referenced by CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), and BaseComputer::LoadSaveQuitConfirm::init().
|
inlinevirtual |
Definition at line 80 of file window.h.
References m_texture, and GuiTexture::read().
Referenced by NavComputer::createControls(), BaseComputer::createControls(), CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), GameMenu::init(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), BaseComputer::LoadSaveQuitConfirm::init(), and BaseComputer::switchToControls().
|
inlinevirtual |
|
protected |
Definition at line 151 of file window.h.
Referenced by color(), drawBackground(), and setColor().
|
protected |
Definition at line 157 of file window.h.
Referenced by controller(), processCommand(), and setController().
|
protected |
Definition at line 156 of file window.h.
Referenced by addControl(), deleteControl(), draw(), findControlById(), processMouseDown(), processMouseDrag(), processMouseMove(), processMouseUp(), removeControlFromWindow(), Window(), and ~Window().
|
protected |
Definition at line 155 of file window.h.
Referenced by deleteOnClose(), processCommand(), and setDeleteOnClose().
|
protected |
Definition at line 152 of file window.h.
Referenced by drawBackground(), outlineColor(), and setOutlineColor().
|
protected |
Definition at line 153 of file window.h.
Referenced by drawBackground(), outlineWidth(), and setOutlineWidth().
|
protected |
Definition at line 150 of file window.h.
Referenced by drawBackground(), and setRect().
|
protected |
Definition at line 154 of file window.h.
Referenced by drawBackground(), setTexture(), and texture().