Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <navcomputer.h>
Classes | |
class | RenameConfirm |
struct | WctlTableEntry |
Public Types | |
enum | DisplayMode { LIST =0, EDIT, DISPLAY_MODE_COUNT, NULL_DISPLAY =DISPLAY_MODE_COUNT } |
enum | SelectorMode { TARGET =0, CRITERIA, CHAIN, SELECTOR_MODE_COUNT, NULL_SELECTOR =SELECTOR_MODE_COUNT } |
Public Member Functions | |
virtual void | init (void) |
virtual void | run (void) |
virtual bool | processWindowCommand (const EventCommandId &command, Control *control) |
NavComputer (NavigationSystem *navsystem) | |
virtual | ~NavComputer (void) |
![]() | |
virtual void | draw (void) |
virtual Window * | window (void) |
virtual void | setWindow (Window *w) |
WindowController () | |
virtual | ~WindowController (void) |
Protected Types | |
typedef bool(NavComputer::* | WCtlHandler )(const EventCommandId &command, Control *control) |
Protected Attributes | |
NavigationSystem * | navsys |
PathManager * | pathman |
NavPath * | currentPath |
PathNode * | currentNode |
bool | criteria |
bool | m_visible |
vector< DisplayMode > | m_displayModes |
vector< SelectorMode > | m_selectorModes |
DisplayMode | m_currentDisplay |
SelectorMode | m_currentSelector |
Control * | m_displayModeGroups [DISPLAY_MODE_COUNT] |
Control * | m_selectorModeGroups [SELECTOR_MODE_COUNT] |
![]() | |
Window * | m_window |
bool | m_deleteOnWindowClose |
Static Protected Attributes | |
static const WctlTableEntry | WctlCommandTable [] |
Friends | |
class | RenameConfirm |
Definition at line 37 of file navcomputer.h.
|
protected |
Definition at line 181 of file navcomputer.h.
Enumerator | |
---|---|
TARGET | |
CRITERIA | |
CHAIN | |
SELECTOR_MODE_COUNT | |
NULL_SELECTOR |
Definition at line 49 of file navcomputer.h.
NavComputer::NavComputer | ( | NavigationSystem * | navsystem) |
Definition at line 127 of file navcomputer.cpp.
References CHAIN, CRITERIA, criteria, currentNode, currentPath, DISPLAY_MODE_COUNT, EDIT, i, LIST, m_displayModeGroups, m_displayModes, m_selectorModeGroups, m_selectorModes, m_visible, NavigationSystem::pathman, pathman, SELECTOR_MODE_COUNT, and TARGET.
|
virtual |
Definition at line 154 of file navcomputer.cpp.
References DISPLAY_MODE_COUNT, i, m_displayModeGroups, m_selectorModeGroups, and SELECTOR_MODE_COUNT.
|
protected |
|
protected |
Definition at line 1232 of file navcomputer.cpp.
References PathManager::addPath(), loadPathLister(), and pathman.
|
protected |
Definition at line 1320 of file navcomputer.cpp.
References CONTAINS, criteria, currentNode, Window::findControlById(), loadCriteriaLister(), OWNEDBY, Picker::selectedCell(), setCurrentNode(), StaticDisplay::text(), updateNodeDescription(), ValuedPickerCell< T >::value(), and WindowController::window().
|
protected |
|
protected |
Definition at line 1434 of file navcomputer.cpp.
References criteria, Window::findControlById(), Picker::selectedCell(), setCurrentNode(), ValuedPickerCell< T >::value(), and WindowController::window().
|
protected |
|
protected |
Definition at line 1289 of file navcomputer.cpp.
References PathNode::clone(), currentNode, currentPath, NavPath::setDestinationNode(), and updateDescription().
|
protected |
Definition at line 1402 of file navcomputer.cpp.
References Window::findControlById(), loadCriteriaLister(), Picker::selectedCell(), updateNodeDescription(), ValuedPickerCell< T >::value(), and WindowController::window().
|
protected |
Definition at line 1361 of file navcomputer.cpp.
References CONTAINS, criteria, currentNode, Window::findControlById(), loadCriteriaLister(), OWNEDBY, Picker::selectedCell(), setCurrentNode(), StaticDisplay::text(), updateNodeDescription(), ValuedPickerCell< T >::value(), and WindowController::window().
|
protected |
Definition at line 1257 of file navcomputer.cpp.
References currentPath, loadPathLister(), pathman, and PathManager::removePath().
|
protected |
Definition at line 1418 of file navcomputer.cpp.
References Window::findControlById(), loadCriteriaLister(), Picker::selectedCell(), CriteriaNode::unhook(), updateNodeDescription(), ValuedPickerCell< T >::value(), and WindowController::window().
|
protected |
Definition at line 1247 of file navcomputer.cpp.
References currentPath, NavComputer::RenameConfirm::init(), RenameConfirm, and WindowController::run().
|
protected |
Definition at line 1452 of file navcomputer.cpp.
References currentPath, loadPathLister(), and NavPath::setName().
|
protected |
Definition at line 1265 of file navcomputer.cpp.
References pathman, PathManager::showAll(), and updateDescription().
|
protected |
Definition at line 1272 of file navcomputer.cpp.
References pathman, PathManager::showNone(), and updateDescription().
|
protected |
Definition at line 1239 of file navcomputer.cpp.
References currentPath, NavPath::getVisible(), NavPath::setVisible(), and updateDescription().
|
protected |
Definition at line 1279 of file navcomputer.cpp.
References PathNode::clone(), currentNode, currentPath, NavPath::setSourceNode(), and updateDescription().
|
protected |
Definition at line 1306 of file navcomputer.cpp.
References criteria, and setCurrentNode().
|
protected |
|
protected |
Definition at line 964 of file navcomputer.cpp.
References CHAIN, EDIT, loadChainLister(), m_currentDisplay, m_currentSelector, and switchToMinorControls().
|
protected |
Definition at line 953 of file navcomputer.cpp.
References CRITERIA, EDIT, loadCriteriaLister(), m_currentDisplay, m_currentSelector, and switchToMinorControls().
|
protected |
Definition at line 930 of file navcomputer.cpp.
References criteria, currentPath, EDIT, m_currentDisplay, NULL_SELECTOR, setCurrentNode(), switchToMajorControls(), and switchToMinorControls().
|
protected |
Definition at line 919 of file navcomputer.cpp.
References LIST, loadPathLister(), m_currentDisplay, NULL_SELECTOR, switchToMajorControls(), and switchToMinorControls().
|
protected |
Definition at line 942 of file navcomputer.cpp.
References EDIT, loadAbsoluteButton(), m_currentDisplay, m_currentSelector, switchToMinorControls(), and TARGET.
|
protected |
Definition at line 229 of file navcomputer.cpp.
References SimplePicker::addCell(), GroupControl::addChild(), Window::addControl(), ChainPathNode::ALL_POINTS, GFXColor::b, BOLD_STROKE, CHAIN, SimplePicker::clear(), CONTAINS, CRITERIA, ChainPathNode::DESTINATION, done, EDIT, GFXColor::g, getColorForGroup(), GUI_CLEAR(), GUI_OPAQUE_BLACK(), GUI_OPAQUE_MEDIUM_GRAY(), GUI_OPAQUE_WHITE(), LIST, nav_keyboard_queue, OWNEDBY, GFXColor::r, SECTOR, NewButton::setBorderColor(), Scroller::setButtonColor(), Scroller::setColor(), Control::setColor(), NewButton::setCommand(), NewButton::setDownColor(), NewButton::setDownTextColor(), NewButton::setEndBorderColor(), StaticDisplay::setFont(), Control::setFont(), NewButton::setHighlightColor(), Picker::setHighlightColor(), Picker::setHighlightTextColor(), Control::setId(), NewButton::setLabel(), StaticDisplay::setMultiLine(), Control::setOutlineColor(), Control::setRect(), Scroller::setRect(), StaticDisplay::setRect(), StaticDisplay::setScroller(), Picker::setScroller(), Picker::setSelectionColor(), NewButton::setShadowWidth(), StaticDisplay::setText(), Scroller::setTextColor(), StaticDisplay::setTextColor(), Control::setTextColor(), StaticDisplay::setTextMargins(), Picker::setTextMargins(), Scroller::setThumbColor(), NewButton::setVariableBorderCycleTime(), ChainPathNode::SOURCE, TARGET, up, and WindowController::window().
Referenced by createControls().
|
protected |
Definition at line 188 of file navcomputer.cpp.
References constructControls(), DISPLAY_MODE_COUNT, Window::findControlById(), GUI_CLEAR(), i, m_displayModeGroups, m_selectorModeGroups, Window::removeControlFromWindow(), SELECTOR_MODE_COUNT, Window::setColor(), Window::setFullScreen(), Window::setTexture(), and WindowController::window().
Referenced by init().
|
protected |
Definition at line 216 of file navcomputer.cpp.
Referenced by constructControls().
|
virtual |
Implements WindowController.
Definition at line 167 of file navcomputer.cpp.
References createControls(), WindowController::m_deleteOnWindowClose, WindowController::m_window, pathman, PathManager::paths, Window::setController(), Window::setDeleteOnClose(), NavPath::setDestinationNode(), NavPath::setName(), NavPath::setSourceNode(), and WindowController::setWindow().
Referenced by NavigationSystem::Setup().
|
protected |
Definition at line 1181 of file navcomputer.cpp.
References Window::findControlById(), navsys, NewButton::setLabel(), and WindowController::window().
Referenced by changeToTargetMode().
|
protected |
Definition at line 1144 of file navcomputer.cpp.
References SimplePicker::addCell(), SimplePicker::clear(), Window::findControlById(), i, pathman, PathManager::paths, and WindowController::window().
Referenced by changeToChainMode().
|
protected |
Definition at line 1170 of file navcomputer.cpp.
References SimplePicker::clear(), criteria, currentNode, Window::findControlById(), loadCriteriaPickerCell(), and WindowController::window().
Referenced by actionAnd(), actionNot(), actionOr(), actionRemoveCriteria(), and changeToCriteriaMode().
|
protected |
Definition at line 1153 of file navcomputer.cpp.
References SimplePicker::addCell(), SimplePickerCell::addChild(), i, and PickerCell::setHideChildren().
Referenced by loadCriteriaLister().
|
protected |
Definition at line 1128 of file navcomputer.cpp.
References SimplePicker::addCell(), SimplePicker::clear(), currentPath, Window::findControlById(), i, pathman, PathManager::paths, StaticDisplay::setText(), and WindowController::window().
Referenced by actionAdd(), actionRemove(), actionRenameConfirmed(), and changeToListMode().
|
protected |
Definition at line 1218 of file navcomputer.cpp.
References currentPath, Picker::selectedCell(), updateDescription(), and ValuedPickerCell< T >::value().
|
virtual |
Reimplemented from WindowController.
Definition at line 110 of file navcomputer.cpp.
References NavComputer::WctlTableEntry::function, Control::id(), WindowController::processWindowCommand(), and WctlCommandTable.
Referenced by toggleVisibility().
|
protected |
Definition at line 1029 of file navcomputer.cpp.
References Window::findControlById(), m_currentDisplay, StaticDisplay::setText(), ModeInfo::title, and WindowController::window().
Referenced by switchToMajorControls().
|
virtual |
Reimplemented from WindowController.
Definition at line 975 of file navcomputer.cpp.
References toggleVisibility().
Referenced by NavigationSystem::DrawButton().
Definition at line 1188 of file navcomputer.cpp.
References currentNode, and updateNodeDescription().
Referenced by actionAbsolute(), actionAnd(), actionChain(), actionCurrent(), actionOr(), actionTarget(), and changeToEditMode().
|
protected |
Definition at line 874 of file navcomputer.cpp.
References Window::addControl(), Window::findControlById(), m_currentDisplay, m_displayModeGroups, NULL_DISPLAY, recalcTitle(), Window::removeControlFromWindow(), and WindowController::window().
Referenced by changeToEditMode(), and changeToListMode().
|
protected |
Definition at line 897 of file navcomputer.cpp.
References Window::addControl(), Window::findControlById(), m_currentSelector, m_selectorModeGroups, NULL_SELECTOR, Window::removeControlFromWindow(), and WindowController::window().
Referenced by changeToChainMode(), changeToCriteriaMode(), changeToEditMode(), changeToListMode(), and changeToTargetMode().
|
protected |
Definition at line 997 of file navcomputer.cpp.
References Window::close(), GFXLoop(), m_displayModes, m_visible, WindowController::m_window, main_loop(), nav_keyboard_cb(), nav_main_loop(), GameCockpit::NavScreen(), Window::open(), pathman, PRESS, EventManager::ProcessMouseActive(), EventManager::ProcessMouseClick(), EventManager::ProcessMousePassive(), processWindowCommand(), RestoreKB(), RestoreMouse(), PathManager::updatePaths(), winsys_set_keyboard_func(), winsys_set_motion_func(), winsys_set_mouse_func(), and winsys_set_passive_motion_func().
Referenced by run().
|
protected |
Definition at line 1197 of file navcomputer.cpp.
References currentPath, Window::findControlById(), NavPath::getDescription(), StaticDisplay::setText(), and WindowController::window().
Referenced by actionDestination(), actionShowAll(), actionShowNone(), actionShowPath(), actionSource(), and pathListerChangedSelection().
|
protected |
Definition at line 1207 of file navcomputer.cpp.
References currentNode, Window::findControlById(), PathNode::getDescription(), StaticDisplay::setText(), and WindowController::window().
Referenced by actionAnd(), actionNot(), actionOr(), actionRemoveCriteria(), and setCurrentNode().
|
friend |
Definition at line 93 of file navcomputer.h.
Referenced by actionRename().
|
protected |
Definition at line 206 of file navcomputer.h.
Referenced by actionAbsolute(), actionAnd(), actionChain(), actionCurrent(), actionOr(), actionTarget(), changeToEditMode(), loadCriteriaLister(), and NavComputer().
|
protected |
Definition at line 205 of file navcomputer.h.
Referenced by actionAnd(), actionDestination(), actionOr(), actionSource(), loadCriteriaLister(), NavComputer(), setCurrentNode(), and updateNodeDescription().
|
protected |
Definition at line 204 of file navcomputer.h.
Referenced by actionDestination(), actionRemove(), actionRename(), actionRenameConfirmed(), actionShowPath(), actionSource(), changeToEditMode(), loadPathLister(), NavComputer(), pathListerChangedSelection(), and updateDescription().
|
protected |
Definition at line 218 of file navcomputer.h.
Referenced by changeToChainMode(), changeToCriteriaMode(), changeToEditMode(), changeToListMode(), changeToTargetMode(), recalcTitle(), and switchToMajorControls().
|
protected |
Definition at line 219 of file navcomputer.h.
Referenced by changeToChainMode(), changeToCriteriaMode(), changeToTargetMode(), and switchToMinorControls().
|
protected |
Definition at line 220 of file navcomputer.h.
Referenced by createControls(), NavComputer(), switchToMajorControls(), and ~NavComputer().
|
protected |
Definition at line 216 of file navcomputer.h.
Referenced by NavComputer(), and toggleVisibility().
|
protected |
Definition at line 221 of file navcomputer.h.
Referenced by createControls(), NavComputer(), switchToMinorControls(), and ~NavComputer().
|
protected |
Definition at line 217 of file navcomputer.h.
Referenced by NavComputer().
|
protected |
Definition at line 215 of file navcomputer.h.
Referenced by NavComputer(), and toggleVisibility().
|
protected |
Definition at line 201 of file navcomputer.h.
Referenced by actionAbsolute(), and loadAbsoluteButton().
|
protected |
Definition at line 202 of file navcomputer.h.
Referenced by actionAdd(), actionRemove(), actionShowAll(), actionShowNone(), init(), loadChainLister(), loadPathLister(), NavComputer(), and toggleVisibility().
|
staticprotected |
Definition at line 192 of file navcomputer.h.
Referenced by processWindowCommand().