Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

CFuiManager Class Reference

#include <Fui.h>

List of all members.

Public Member Functions

 CFuiManager (void)
 ~CFuiManager (void)
void CreateFuiWindow (FuiEventNoticeCb handler, Tag id, const char *winFilename)
void DestroyFuiWindow (Tag id)
bool IsWindowCreated (Tag id)
void Draw (void)
CFuiThemeGetTheme (Tag tag)
CFuiThemeWidgetGetThemeWidget (Tag tag, std::string name)
void GainFocus (Tag windowID, Tag componentID)
void LoseFocus (Tag windowID, Tag componentID)
void GenerateEventNotice (Tag windowId, Tag componentId, EFuiEvents event, EFuiEvents subevent)
void DrawNoticeToUser (const char *text, float timeout)
bool MouseMove (int x, int y)
bool MouseClick (int x, int y, EMouseButton button)
bool MouseStopClick (int x, int y, EMouseButton button)
CFuiWindowGetFuiWindow (Tag window)
void Print (FILE *f)
void SetWindowTitle (Tag window, const char *title)
void SetComponentText (Tag window, Tag component, const char *text)
void SetLabelColour (Tag window, Tag labelID, unsigned int colour)
int GetCheckboxState (Tag windowID, Tag checkID)
void SetCheckboxState (Tag windowID, Tag checkID, int state)
int GetRadioState (Tag windowID, Tag radioID)
void SetRadioState (Tag windowID, Tag radioID, int state)
void SetTextMaxChars (Tag windowID, Tag textID, int maxChars)
int GetTextMaxChars (Tag windowID, Tag textID)
void UseTextPassword (Tag windowID, Tag textID, int passwordFlag)
int IsTextPassword (Tag windowID, Tag textID)
int GetTextLength (Tag windowID, Tag textID)
void SetTextText (Tag windowID, Tag textID, char *text)
char * GetTextText (Tag windowID, Tag textID)
void SetTextSelection (Tag windowID, Tag textID, int firstChar, int lastChar)
void GetTextSelection (Tag windowID, Tag textID, int *firstChar, int *lastChar)
void AddPopupItem (Tag windowID, Tag popupID, Tag itemID, const char *label)
void AddPopupSeperator (Tag windowID, Tag popupID)
void RemovePopupItem (Tag windowID, Tag popupID, Tag itemID)
void ClearPopupItems (Tag windowID, Tag popupID)
void SelectPopupItem (Tag windowID, Tag popupID, Tag itemID)
Tag GetPopupItemSelection (Tag windowID, Tag popupID, char *outText)
void SetGroupBoxLabel (Tag windowID, Tag groupID, char *label)
void SetSliderMajorTickSpacing (Tag windowID, Tag sliderID, float spacing)
void SetSliderMinorTickSpacing (Tag windowID, Tag sliderID, float spacing)
void SetSliderSnapToTicks (Tag windowID, Tag sliderID, int snapFlag)
void SetSliderDrawMajorTicks (Tag windowID, Tag sliderID, int drawFlag)
void SetSliderDrawMinorTicks (Tag windowID, Tag sliderID, int drawFlag)
float GetSliderMajorTickSpacing (Tag windowID, Tag sliderID)
float GetSliderMinorTickSpacing (Tag windowID, Tag sliderID)
int GetSliderSnapToTicks (Tag windowID, Tag sliderID)
int GetSliderDrawMajorTicks (Tag windowID, Tag sliderID)
int GetSliderDrawMinorTicks (Tag windowID, Tag sliderID)
void SetSliderLabel (Tag windowID, Tag sliderID, char *label)
void ScrollListToRow (Tag windowID, Tag listID, int row)
void ScrollListToColumn (Tag windowID, Tag listID, int column)
int GetListRowCount (Tag windowID, Tag listID)
int GetListColumnCount (Tag windowID, Tag listID)
void AddListColumn (Tag windowID, Tag listID, int width, char *title)
void DeleteListColumn (Tag windowID, Tag listID, int column)
void DeleteAllListColumns (Tag windowID, Tag listID)
void SetListColumnWidth (Tag windowID, Tag listID, int column, int width)
void AddListRow (Tag windowID, Tag listID, int height)
void DeleteListRow (Tag windowID, Tag listID, int row)
void DeleteAllListRows (Tag windowID, Tag listID)
int CountListSelectedRows (Tag windowID, Tag listID)
int GetListSelectedRow (Tag windowID, Tag listID, int index)
void SelectListRow (Tag windowID, Tag listID, int row)
void ClearListSelection (Tag windowID, Tag listID)
void SetListCellText (Tag windowID, Tag listID, int row, int column, char *text)
void SetListCellIcon (Tag windowID, Tag listID, int row, int column, char *filename)
void ClearListCellText (Tag windowID, Tag listID, int row, int column)
void ClearListCellIcon (Tag windowID, Tag listID, int row, int column)
void GetListCellText (Tag windowID, Tag listID, int row, int column, char *outtext)
void AddGraphTrace (Tag windowID, Tag graphID, Tag traceID, int traceType)
void RemoveGraphTrace (Tag windowID, Tag graphID, Tag traceID)
void RemoveAllGraphTraces (Tag windowID, Tag graphID)
void AddGraphTracePoint (Tag windowID, Tag graphID, Tag traceID, float x, float y)
void ClearGraphTracePoints (Tag windowID, Tag graphID, Tag traceID)
void SetGraphTraceRange (Tag windowID, Tag graphID, Tag traceID, float minX, float minY, float maxX, float maxY)
void SetGraphTraceColour (Tag windowID, Tag graphID, Tag traceID, unsigned int colour)
void SetGraphUseGrid (Tag windowID, Tag graphID, int useGrid)
void SetGraphGridRange (Tag windowID, Tag graphID, float minX, float minY, float maxX, float maxY)
void SetGraphGridSpacing (Tag windowID, Tag graphID, float xStep, float yStep)
void SetGridColour (Tag windowID, Tag graphID, unsigned int colour)
void SetGridBackColour (Tag windowID, Tag graphID, unsigned int colour)
void GetGraphGridRange (Tag windowID, Tag graphID, float *minX, float *minY, float *maxX, float *maxY)
void GetGraphGridSpacing (Tag windowID, Tag graphID, float *xStep, float *yStep)

Static Public Member Functions

static Tag GetComponentType (const char *name)

Protected Member Functions

CFuiComponentFindComponent (Tag windowID, Tag id)
CFuiLabelFindLabel (Tag windowID, Tag labelID)
CFuiCheckboxFindCheckbox (Tag windowID, Tag checkboxID)
CFuiListFindList (Tag windowID, Tag listID)
CFuiSliderFindSlider (Tag windowID, Tag sliderID)
CFuiGraphFindGraph (Tag windowID, Tag graphID)

Protected Attributes

std::map< Tag, CFuiWindow * > windowMap
std::map< Tag, CFuiTheme * > themeMap
CFuiTextPopupslew
CFuiTextPopuppause
CFuiTextPopupusermsg
bool userMsgActive
float userMsgExpiry


Detailed Description

Definition at line 1371 of file Fui.h.


Constructor & Destructor Documentation

CFuiManager::CFuiManager void   ) 
 

Definition at line 39 of file FuiManager.cpp.

References globals, gtfo, pause, pclose(), peof(), SGlobals::pfs, pgets(), popen(), SGlobals::screenHeight, SGlobals::screenWidth, CFuiComponent::SetPosition(), CFuiTextPopup::SetText(), slew, StringToTag(), themeMap, TrimTrailingWhitespace(), and usermsg.

CFuiManager::~CFuiManager void   ) 
 

Delete all FUI themes loaded in the constructor. Close any windows that are open.

Definition at line 112 of file FuiManager.cpp.

References pause, slew, themeMap, and usermsg.


Member Function Documentation

void CFuiManager::AddGraphTrace Tag  windowID,
Tag  graphID,
Tag  traceID,
int  traceType
 

Definition at line 1164 of file FuiManager.cpp.

References CFuiGraph::AddTrace(), and FindGraph().

Referenced by FrameRateNotify().

void CFuiManager::AddGraphTracePoint Tag  windowID,
Tag  graphID,
Tag  traceID,
float  x,
float  y
 

Definition at line 1188 of file FuiManager.cpp.

References CFuiGraph::AddTracePoint(), and FindGraph().

Referenced by FrameRateNotify().

void CFuiManager::AddListColumn Tag  windowID,
Tag  listID,
int  width,
char *  title
 

Definition at line 1019 of file FuiManager.cpp.

References CFuiList::AddColumn(), and FindList().

Referenced by TeleportDirectoryNotify().

void CFuiManager::AddListRow Tag  windowID,
Tag  listID,
int  height
 

Definition at line 1051 of file FuiManager.cpp.

References CFuiList::AddRow(), and FindList().

Referenced by TeleportDirectoryNotify().

void CFuiManager::AddPopupItem Tag  windowID,
Tag  popupID,
Tag  itemID,
const char *  label
 

Definition at line 777 of file FuiManager.cpp.

References CFuiPopupMenu::AddItem(), COMPONENT_POPUPMENU, CFuiWindow::GetComponent(), GetFuiWindow(), and CFuiComponent::IsType().

Referenced by TeleportDirectoryNotify().

void CFuiManager::AddPopupSeperator Tag  windowID,
Tag  popupID
 

Definition at line 791 of file FuiManager.cpp.

References CFuiPopupMenu::AddSeparator(), COMPONENT_POPUPMENU, CFuiWindow::GetComponent(), GetFuiWindow(), and CFuiComponent::IsType().

void CFuiManager::ClearGraphTracePoints Tag  windowID,
Tag  graphID,
Tag  traceID
 

Definition at line 1197 of file FuiManager.cpp.

References CFuiGraph::ClearTracePoints(), and FindGraph().

Referenced by FrameRateNotify().

void CFuiManager::ClearListCellIcon Tag  windowID,
Tag  listID,
int  row,
int  column
 

Definition at line 1139 of file FuiManager.cpp.

References CFuiList::ClearCellIcon(), and FindList().

void CFuiManager::ClearListCellText Tag  windowID,
Tag  listID,
int  row,
int  column
 

Definition at line 1131 of file FuiManager.cpp.

References CFuiList::ClearCellText(), and FindList().

void CFuiManager::ClearListSelection Tag  windowID,
Tag  listID
 

Definition at line 1107 of file FuiManager.cpp.

References CFuiList::ClearSelection(), and FindList().

void CFuiManager::ClearPopupItems Tag  windowID,
Tag  popupID
 

Definition at line 819 of file FuiManager.cpp.

References CFuiPopupMenu::ClearItems(), COMPONENT_POPUPMENU, CFuiWindow::GetComponent(), GetFuiWindow(), and CFuiComponent::IsType().

int CFuiManager::CountListSelectedRows Tag  windowID,
Tag  listID
 

Definition at line 1075 of file FuiManager.cpp.

References CFuiList::CountSelectedRows(), and FindList().

void CFuiManager::CreateFuiWindow FuiEventNoticeCb  handler,
Tag  windowId,
const char *  winFilename
 

Create a new window based on a .WIN template file. This is the primary means for the application to open a new FUI window.

Parameters:
handler Callback function for FUI events
tag Unique identification tag for the window
winFilename Name of the window template in Ui/Templates

Definition at line 136 of file FuiManager.cpp.

References EVENT_NOSUBEVENT, EVENT_OPENWINDOW, GenerateEventNotice(), and windowMap.

Referenced by KeyGlobal(), open_window(), and toggle_window().

void CFuiManager::DeleteAllListColumns Tag  windowID,
Tag  listID
 

Definition at line 1035 of file FuiManager.cpp.

References CFuiList::DeleteAllColumns(), and FindList().

Referenced by TeleportDirectoryNotify().

void CFuiManager::DeleteAllListRows Tag  windowID,
Tag  listID
 

Definition at line 1067 of file FuiManager.cpp.

References CFuiList::DeleteAllRows(), and FindList().

Referenced by TeleportDirectoryNotify().

void CFuiManager::DeleteListColumn Tag  windowID,
Tag  listID,
int  column
 

Definition at line 1027 of file FuiManager.cpp.

References CFuiList::DeleteColumn(), and FindList().

void CFuiManager::DeleteListRow Tag  windowID,
Tag  listID,
int  row
 

Definition at line 1059 of file FuiManager.cpp.

References CFuiList::DeleteRow(), and FindList().

void CFuiManager::DestroyFuiWindow Tag  windowId  ) 
 

Destroy the window identified by the unique tag. Applications may call this function to destroy a window that they created; it may also be called by the FuiManager in response to the user clicking the Cancel, OK, or Close buttons

Parameters:
tag Unique identification tag for the window

Definition at line 155 of file FuiManager.cpp.

References CFuiWindow::Close(), EVENT_CLOSEWINDOW, EVENT_NOSUBEVENT, GenerateEventNotice(), and GetFuiWindow().

Referenced by close_window(), FileLoadEventNotify(), FileQuitEventNotify(), FileSaveAsEventNotify(), FileSaveEventNotify(), OptionsDateTimeNotify(), OptionsKeysButtonsNotify(), OptionsRealismNotify(), OptionsSceneryNotify(), OptionsSetupAxesNotify(), OptionsSoundsNotify(), OptionsStartupNotify(), OptionsTestControlsNotify(), and toggle_window().

void CFuiManager::Draw void   ) 
 

Redraw all FUI components on the screen; this method is called on every screen refresh.

Definition at line 183 of file FuiManager.cpp.

References CFuiComponent::Draw(), CFuiWindow::Draw(), FUI_WINDOW_CLOSED, FUI_WINDOW_INIT, FUI_WINDOW_MOVE, FUI_WINDOW_OPEN, CTimeManager::GetElapsedSimTime(), CTimeManager::GetPauseState(), CFuiWindow::GetState(), globals, gtfo, CSlewManager::IsEnabled(), pause, SGlobals::screenHeight, SGlobals::screenWidth, CFuiTextPopup::SetText(), slew, SGlobals::slewmgr, SGlobals::timemgr, usermsg, userMsgActive, userMsgExpiry, and windowMap.

Referenced by RedrawSimulation().

void CFuiManager::DrawNoticeToUser const char *  text,
float  timeout
 

Display an application-specified message to the user in a pop-up box for the specified time

Parameters:
text Text to be displayed, maximum 80 chars
timeout Message timeout in seconds

Definition at line 337 of file FuiManager.cpp.

References CTimeManager::GetElapsedSimTime(), globals, CFuiTextPopup::SetText(), SGlobals::timemgr, usermsg, userMsgActive, and userMsgExpiry.

Referenced by DrawNoticeToUser().

CFuiCheckbox * CFuiManager::FindCheckbox Tag  windowID,
Tag  checkboxID
[protected]
 

Definition at line 1316 of file FuiManager.cpp.

References COMPONENT_CHECKBOX, FindComponent(), and CFuiComponent::IsType().

CFuiComponent * CFuiManager::FindComponent Tag  windowID,
Tag  id
[protected]
 

Definition at line 1290 of file FuiManager.cpp.

References CFuiWindow::GetComponent(), and GetFuiWindow().

Referenced by FindCheckbox(), FindGraph(), FindLabel(), FindList(), and FindSlider().

CFuiGraph * CFuiManager::FindGraph Tag  windowID,
Tag  graphID
[protected]
 

Definition at line 1358 of file FuiManager.cpp.

References COMPONENT_GRAPH, FindComponent(), and CFuiComponent::IsType().

Referenced by AddGraphTrace(), AddGraphTracePoint(), ClearGraphTracePoints(), GetGraphGridRange(), GetGraphGridSpacing(), RemoveAllGraphTraces(), RemoveGraphTrace(), SetGraphGridRange(), SetGraphGridSpacing(), SetGraphTraceColour(), SetGraphTraceRange(), SetGraphUseGrid(), SetGridBackColour(), and SetGridColour().

CFuiLabel * CFuiManager::FindLabel Tag  windowID,
Tag  labelID
[protected]
 

Definition at line 1302 of file FuiManager.cpp.

References COMPONENT_LABEL, FindComponent(), and CFuiComponent::IsType().

Referenced by SetLabelColour().

CFuiList * CFuiManager::FindList Tag  windowID,
Tag  listID
[protected]
 

Definition at line 1344 of file FuiManager.cpp.

References COMPONENT_LIST, FindComponent(), and CFuiComponent::IsType().

Referenced by AddListColumn(), AddListRow(), ClearListCellIcon(), ClearListCellText(), ClearListSelection(), CountListSelectedRows(), DeleteAllListColumns(), DeleteAllListRows(), DeleteListColumn(), DeleteListRow(), GetListCellText(), GetListColumnCount(), GetListRowCount(), GetListSelectedRow(), ScrollListToColumn(), ScrollListToRow(), SelectListRow(), SetListCellIcon(), SetListCellText(), and SetListColumnWidth().

CFuiSlider * CFuiManager::FindSlider Tag  windowID,
Tag  sliderID
[protected]
 

Definition at line 1330 of file FuiManager.cpp.

References COMPONENT_SLIDER, FindComponent(), and CFuiComponent::IsType().

Referenced by GetSliderDrawMajorTicks(), GetSliderDrawMinorTicks(), GetSliderMajorTickSpacing(), GetSliderMinorTickSpacing(), GetSliderSnapToTicks(), SetSliderDrawMajorTicks(), SetSliderDrawMinorTicks(), SetSliderLabel(), SetSliderMajorTickSpacing(), SetSliderMinorTickSpacing(), and SetSliderSnapToTicks().

void CFuiManager::GainFocus Tag  windowID,
Tag  componentID
 

void CFuiManager::GenerateEventNotice Tag  windowId,
Tag  componentId,
EFuiEvents  event,
EFuiEvents  subevent
 

Send event notification to the application callback. This is typically called by a FUI widget in response to some user action.

Definition at line 320 of file FuiManager.cpp.

References CFuiWindow::GenerateEventNotice(), and GetFuiWindow().

Referenced by CreateFuiWindow(), DestroyFuiWindow(), CFuiRadioButton::MouseStopClick(), CFuiCheckbox::MouseStopClick(), and CFuiButton::MouseStopClick().

int CFuiManager::GetCheckboxState Tag  windowID,
Tag  checkID
 

Definition at line 574 of file FuiManager.cpp.

References COMPONENT_CHECKBOX, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiCheckbox::GetState(), and CFuiComponent::IsType().

Tag CFuiManager::GetComponentType const char *  name  )  [static]
 

Lookup the FUI component type for a widget with the given name.

Parameters:
name Text name of the widget to look up (e.g. "CheckBox")
Returns:
FUI component type, or 0 if not found

Definition at line 545 of file FuiManager.cpp.

References globals, SGlobals::logWarning, SFuiNameLookup::name, SFuiNameLookup::type, and CLogFile::Write().

CFuiWindow * CFuiManager::GetFuiWindow Tag  tag  ) 
 

Return a pointer to the window identified by the given tag. The window must be instantiated in the list of active FUI windows.

Parameters:
tag Unique identification tag for the window
Returns:
Pointer to window or NULL if not found

Definition at line 363 of file FuiManager.cpp.

References windowMap.

Referenced by AddPopupItem(), AddPopupSeperator(), ClearPopupItems(), DestroyFuiWindow(), FindComponent(), GenerateEventNotice(), GetCheckboxState(), GetPopupItemSelection(), GetRadioState(), GetTextLength(), GetTextMaxChars(), GetTextSelection(), GetTextText(), IsTextPassword(), RemovePopupItem(), SelectPopupItem(), SetCheckboxState(), SetComponentText(), SetGroupBoxLabel(), SetRadioState(), SetTextMaxChars(), SetTextSelection(), SetTextText(), SetWindowTitle(), and UseTextPassword().

void CFuiManager::GetGraphGridRange Tag  windowID,
Tag  graphID,
float *  minX,
float *  minY,
float *  maxX,
float *  maxY
 

Definition at line 1267 of file FuiManager.cpp.

References FindGraph(), and CFuiGraph::GetGridRange().

void CFuiManager::GetGraphGridSpacing Tag  windowID,
Tag  graphID,
float *  xStep,
float *  yStep
 

Definition at line 1276 of file FuiManager.cpp.

References FindGraph(), and CFuiGraph::GetGridSpacing().

void CFuiManager::GetListCellText Tag  windowID,
Tag  listID,
int  row,
int  column,
char *  outtext
 

Definition at line 1147 of file FuiManager.cpp.

References FindList(), and CFuiList::GetCellText().

int CFuiManager::GetListColumnCount Tag  windowID,
Tag  listID
 

Definition at line 1007 of file FuiManager.cpp.

References FindList(), and CFuiList::GetColumnCount().

int CFuiManager::GetListRowCount Tag  windowID,
Tag  listID
 

Definition at line 995 of file FuiManager.cpp.

References FindList(), and CFuiList::GetRowCount().

int CFuiManager::GetListSelectedRow Tag  windowID,
Tag  listID,
int  index
 

Definition at line 1087 of file FuiManager.cpp.

References FindList(), and CFuiList::GetSelectedRow().

Tag CFuiManager::GetPopupItemSelection Tag  windowID,
Tag  popupID,
char *  outText
 

Definition at line 847 of file FuiManager.cpp.

References COMPONENT_POPUPMENU, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiPopupMenu::GetItemSelection(), and CFuiComponent::IsType().

int CFuiManager::GetRadioState Tag  windowID,
Tag  radioID
 

Definition at line 605 of file FuiManager.cpp.

References COMPONENT_RADIOBUTTON, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiRadioButton::GetState(), and CFuiComponent::IsType().

Referenced by AircraftTeleportNotify().

int CFuiManager::GetSliderDrawMajorTicks Tag  windowID,
Tag  sliderID
 

Definition at line 955 of file FuiManager.cpp.

References FindSlider(), and CFuiSlider::GetDrawMajorTicks().

int CFuiManager::GetSliderDrawMinorTicks Tag  windowID,
Tag  sliderID
 

Definition at line 967 of file FuiManager.cpp.

References FindSlider(), and CFuiSlider::GetDrawMinorTicks().

float CFuiManager::GetSliderMajorTickSpacing Tag  windowID,
Tag  sliderID
 

Definition at line 919 of file FuiManager.cpp.

References FindSlider(), and CFuiSlider::GetMajorTickSpacing().

float CFuiManager::GetSliderMinorTickSpacing Tag  windowID,
Tag  sliderID
 

Definition at line 931 of file FuiManager.cpp.

References FindSlider(), and CFuiSlider::GetMinorTickSpacing().

int CFuiManager::GetSliderSnapToTicks Tag  windowID,
Tag  sliderID
 

Definition at line 943 of file FuiManager.cpp.

References FindSlider(), and CFuiSlider::GetSnapToTicks().

int CFuiManager::GetTextLength Tag  windowID,
Tag  textID
 

Definition at line 700 of file FuiManager.cpp.

References COMPONENT_TEXTFIELD, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiTextField::GetLength(), and CFuiComponent::IsType().

int CFuiManager::GetTextMaxChars Tag  windowID,
Tag  textID
 

Definition at line 650 of file FuiManager.cpp.

References COMPONENT_TEXTFIELD, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiTextField::GetMaxChars(), and CFuiComponent::IsType().

void CFuiManager::GetTextSelection Tag  windowID,
Tag  textID,
int *  firstChar,
int *  lastChar
 

Definition at line 763 of file FuiManager.cpp.

References COMPONENT_TEXTFIELD, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiTextField::GetSelection(), and CFuiComponent::IsType().

char * CFuiManager::GetTextText Tag  windowID,
Tag  textID
 

Definition at line 732 of file FuiManager.cpp.

References COMPONENT_TEXTFIELD, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiTextField::GetText(), and CFuiComponent::IsType().

Referenced by AircraftTeleportNotify().

CFuiTheme * CFuiManager::GetTheme Tag  tag  ) 
 

Return a pointer to the CFuiTheme identified by the given tag.

Parameters:
tag Unique identification tag for the desired theme
Returns:
Pointer to the theme or NULL if not found

Definition at line 284 of file FuiManager.cpp.

References themeMap.

CFuiThemeWidget* CFuiManager::GetThemeWidget Tag  tag,
std::string  name
 

Referenced by CFuiZoomButton::Fill(), CFuiMinimizeButton::Fill(), CFuiCloseButton::Fill(), CFuiWindowTitle::Fill(), CFuiTextField::ReadFinished(), CFuiLabel::ReadFinished(), CFuiRadioButton::ReadFinished(), CFuiCheckbox::ReadFinished(), CFuiPopupMenu::ReadFinished(), CFuiButton::ReadFinished(), and CFuiWindow::ReadFinished().

int CFuiManager::IsTextPassword Tag  windowID,
Tag  textID
 

Definition at line 682 of file FuiManager.cpp.

References COMPONENT_TEXTFIELD, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiTextField::IsPassword(), and CFuiComponent::IsType().

bool CFuiManager::IsWindowCreated Tag  windowId  ) 
 

Determine whether the window with the specified tag has been created

Parameters:
tag Unique identification tag for the window
Returns:
bool true if window is created; false if not

Definition at line 171 of file FuiManager.cpp.

References windowMap.

Referenced by close_window(), open_window(), and toggle_window().

void CFuiManager::LoseFocus Tag  windowID,
Tag  componentID
 

bool CFuiManager::MouseClick int  mx,
int  my,
EMouseButton  button
 

Inform FUI of mouse button click action

Parameters:
mx X screen location of mouse (0=left)
my Y screen location of mouse (0=top)
button Mouse button clicked

Definition at line 402 of file FuiManager.cpp.

References CFuiWindow::MouseClick(), and windowMap.

Referenced by mouse().

bool CFuiManager::MouseMove int  mx,
int  my
 

Inform FUI of mouse location

Parameters:
mx X screen location of mouse (0=left)
my Y screen location of mouse (0=top)

Definition at line 381 of file FuiManager.cpp.

References CFuiWindow::MouseMove(), and windowMap.

Referenced by motion(), and passive_motion().

bool CFuiManager::MouseStopClick int  mx,
int  my,
EMouseButton  button
 

Inform FUI of mouse button release action

Parameters:
x X screen location of mouse (0=left)
y Y screen location of mouse (0=top)
button Mouse button released

Definition at line 423 of file FuiManager.cpp.

References CFuiWindow::MouseStopClick(), and windowMap.

Referenced by mouse().

void CFuiManager::Print FILE *  f  ) 
 

Dump FuiManager details to a file for debugging

Parameters:
f stdio file to write debug output to

Definition at line 474 of file FuiManager.cpp.

References themeMap.

Referenced by debug_dump_fui_cb(), and InitGlobalsWithPodFilesystem().

void CFuiManager::RemoveAllGraphTraces Tag  windowID,
Tag  graphID
 

Definition at line 1180 of file FuiManager.cpp.

References FindGraph(), and CFuiGraph::RemoveAllTraces().

void CFuiManager::RemoveGraphTrace Tag  windowID,
Tag  graphID,
Tag  traceID
 

Definition at line 1172 of file FuiManager.cpp.

References FindGraph(), and CFuiGraph::RemoveTrace().

void CFuiManager::RemovePopupItem Tag  windowID,
Tag  popupID,
Tag  itemID
 

Definition at line 805 of file FuiManager.cpp.

References COMPONENT_POPUPMENU, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiComponent::IsType(), and CFuiPopupMenu::RemoveItem().

void CFuiManager::ScrollListToColumn Tag  windowID,
Tag  listID,
int  column
 

Definition at line 987 of file FuiManager.cpp.

References FindList(), and CFuiList::ScrollToColumn().

void CFuiManager::ScrollListToRow Tag  windowID,
Tag  listID,
int  row
 

Definition at line 979 of file FuiManager.cpp.

References FindList(), and CFuiList::ScrollToRow().

Referenced by TeleportDirectoryNotify().

void CFuiManager::SelectListRow Tag  windowID,
Tag  listID,
int  row
 

Definition at line 1099 of file FuiManager.cpp.

References FindList(), and CFuiList::SelectRow().

Referenced by TeleportDirectoryNotify().

void CFuiManager::SelectPopupItem Tag  windowID,
Tag  popupID,
Tag  itemID
 

Definition at line 833 of file FuiManager.cpp.

References COMPONENT_POPUPMENU, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiComponent::IsType(), and CFuiPopupMenu::SelectItem().

Referenced by TeleportDirectoryNotify().

void CFuiManager::SetCheckboxState Tag  windowID,
Tag  checkID,
int  state
 

Definition at line 591 of file FuiManager.cpp.

References COMPONENT_CHECKBOX, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiComponent::IsType(), and CFuiCheckbox::SetState().

void CFuiManager::SetComponentText Tag  window,
Tag  component,
const char *  text
 

Set the text of a FUI widget.

Parameters:
window Unique identification tag for the window
component Unique identification tag for the component in the window
text New text for the widget, maximum 64 chars

Definition at line 444 of file FuiManager.cpp.

References CFuiWindow::GetComponent(), GetFuiWindow(), and CFuiComponent::SetText().

Referenced by FileQuitEventNotify(), FrameRateNotify(), and TeleportAlertNotify().

void CFuiManager::SetGraphGridRange Tag  windowID,
Tag  graphID,
float  minX,
float  minY,
float  maxX,
float  maxY
 

Definition at line 1231 of file FuiManager.cpp.

References FindGraph(), and CFuiGraph::SetGridRange().

Referenced by FrameRateNotify().

void CFuiManager::SetGraphGridSpacing Tag  windowID,
Tag  graphID,
float  xStep,
float  yStep
 

Definition at line 1240 of file FuiManager.cpp.

References FindGraph(), and CFuiGraph::SetGridSpacing().

Referenced by FrameRateNotify().

void CFuiManager::SetGraphTraceColour Tag  windowID,
Tag  graphID,
Tag  traceID,
unsigned int  colour
 

Definition at line 1214 of file FuiManager.cpp.

References FindGraph(), and CFuiGraph::SetTraceColour().

Referenced by FrameRateNotify().

void CFuiManager::SetGraphTraceRange Tag  windowID,
Tag  graphID,
Tag  traceID,
float  minX,
float  minY,
float  maxX,
float  maxY
 

Definition at line 1205 of file FuiManager.cpp.

References FindGraph(), and CFuiGraph::SetTraceRange().

Referenced by FrameRateNotify().

void CFuiManager::SetGraphUseGrid Tag  windowID,
Tag  graphID,
int  useGrid
 

Definition at line 1223 of file FuiManager.cpp.

References FindGraph(), and CFuiGraph::SetUseGrid().

void CFuiManager::SetGridBackColour Tag  windowID,
Tag  graphID,
unsigned int  colour
 

Definition at line 1258 of file FuiManager.cpp.

References FindGraph(), and CFuiGraph::SetGridBackColour().

void CFuiManager::SetGridColour Tag  windowID,
Tag  graphID,
unsigned int  colour
 

Definition at line 1249 of file FuiManager.cpp.

References FindGraph(), and CFuiGraph::SetGridColour().

void CFuiManager::SetGroupBoxLabel Tag  windowID,
Tag  groupID,
char *  label
 

Definition at line 865 of file FuiManager.cpp.

References COMPONENT_GROUPBOX, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiComponent::IsType(), and CFuiComponent::SetText().

void CFuiManager::SetLabelColour Tag  window,
Tag  labelID,
unsigned int  colour
 

Definition at line 566 of file FuiManager.cpp.

References FindLabel(), and CFuiLabel::SetColour().

Referenced by FrameRateNotify().

void CFuiManager::SetListCellIcon Tag  windowID,
Tag  listID,
int  row,
int  column,
char *  filename
 

Definition at line 1123 of file FuiManager.cpp.

References FindList(), and CFuiList::SetCellIcon().

void CFuiManager::SetListCellText Tag  windowID,
Tag  listID,
int  row,
int  column,
char *  text
 

Definition at line 1115 of file FuiManager.cpp.

References FindList(), and CFuiList::SetCellText().

Referenced by TeleportDirectoryNotify().

void CFuiManager::SetListColumnWidth Tag  windowID,
Tag  listID,
int  column,
int  width
 

Definition at line 1043 of file FuiManager.cpp.

References FindList(), and CFuiList::SetColumnWidth().

void CFuiManager::SetRadioState Tag  windowID,
Tag  radioID,
int  state
 

Definition at line 622 of file FuiManager.cpp.

References COMPONENT_RADIOBUTTON, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiComponent::IsType(), and CFuiRadioButton::SetState().

Referenced by AircraftTeleportNotify().

void CFuiManager::SetSliderDrawMajorTicks Tag  windowID,
Tag  sliderID,
int  drawFlag
 

Definition at line 903 of file FuiManager.cpp.

References FindSlider(), and CFuiSlider::SetDrawMajorTicks().

void CFuiManager::SetSliderDrawMinorTicks Tag  windowID,
Tag  sliderID,
int  drawFlag
 

Definition at line 911 of file FuiManager.cpp.

References FindSlider(), and CFuiSlider::SetDrawMinorTicks().

void CFuiManager::SetSliderLabel Tag  windowID,
Tag  sliderID,
char *  label
 

Definition at line 1156 of file FuiManager.cpp.

References FindSlider(), and CFuiComponent::SetText().

void CFuiManager::SetSliderMajorTickSpacing Tag  windowID,
Tag  sliderID,
float  spacing
 

Definition at line 879 of file FuiManager.cpp.

References FindSlider(), and CFuiSlider::SetMajorTickSpacing().

void CFuiManager::SetSliderMinorTickSpacing Tag  windowID,
Tag  sliderID,
float  spacing
 

Definition at line 887 of file FuiManager.cpp.

References FindSlider(), and CFuiSlider::SetMinorTickSpacing().

void CFuiManager::SetSliderSnapToTicks Tag  windowID,
Tag  sliderID,
int  snapFlag
 

Definition at line 895 of file FuiManager.cpp.

References FindSlider(), and CFuiSlider::SetSnapToTicks().

void CFuiManager::SetTextMaxChars Tag  windowID,
Tag  textID,
int  maxChars
 

Definition at line 636 of file FuiManager.cpp.

References COMPONENT_TEXTFIELD, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiComponent::IsType(), and CFuiTextField::SetMaxChars().

void CFuiManager::SetTextSelection Tag  windowID,
Tag  textID,
int  firstChar,
int  lastChar
 

Definition at line 749 of file FuiManager.cpp.

References COMPONENT_TEXTFIELD, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiComponent::IsType(), and CFuiTextField::SetSelection().

void CFuiManager::SetTextText Tag  windowID,
Tag  textID,
char *  text
 

Definition at line 718 of file FuiManager.cpp.

References COMPONENT_TEXTFIELD, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiComponent::IsType(), and CFuiTextField::SetText().

Referenced by AircraftTeleportNotify().

void CFuiManager::SetWindowTitle Tag  window,
const char *  title
 

Set the title of an open FUI window

Parameters:
window Unique identification tag for the window
title New title for the window, maximum 64 chars

Definition at line 461 of file FuiManager.cpp.

References GetFuiWindow(), and CFuiWindow::SetTitle().

Referenced by FileLoadEventNotify(), FileQuitEventNotify(), FileSaveAsEventNotify(), and FileSaveEventNotify().

void CFuiManager::UseTextPassword Tag  windowID,
Tag  textID,
int  passwordFlag
 

Definition at line 668 of file FuiManager.cpp.

References COMPONENT_TEXTFIELD, CFuiWindow::GetComponent(), GetFuiWindow(), CFuiComponent::IsType(), and CFuiTextField::UsePassword().


Member Data Documentation

CFuiTextPopup* CFuiManager::pause [protected]
 

Definition at line 1408 of file Fui.h.

Referenced by CFuiManager(), Draw(), and ~CFuiManager().

CFuiTextPopup* CFuiManager::slew [protected]
 

Definition at line 1407 of file Fui.h.

Referenced by CFuiManager(), Draw(), and ~CFuiManager().

std::map<Tag,CFuiTheme*> CFuiManager::themeMap [protected]
 

Definition at line 1406 of file Fui.h.

Referenced by CFuiManager(), GetTheme(), Print(), and ~CFuiManager().

CFuiTextPopup* CFuiManager::usermsg [protected]
 

Definition at line 1410 of file Fui.h.

Referenced by CFuiManager(), Draw(), DrawNoticeToUser(), and ~CFuiManager().

bool CFuiManager::userMsgActive [protected]
 

Definition at line 1411 of file Fui.h.

Referenced by Draw(), and DrawNoticeToUser().

float CFuiManager::userMsgExpiry [protected]
 

Definition at line 1412 of file Fui.h.

Referenced by Draw(), and DrawNoticeToUser().

std::map<Tag,CFuiWindow*> CFuiManager::windowMap [protected]
 

Definition at line 1405 of file Fui.h.

Referenced by CreateFuiWindow(), Draw(), GetFuiWindow(), IsWindowCreated(), MouseClick(), MouseMove(), and MouseStopClick().


The documentation for this class was generated from the following files:
SourceForge.net Logo Documentation generated by doxygen