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

Menu.cpp File Reference

#include "../Include/FlyLegacy.h"
#include "../Include/Globals.h"
#include "../Include/Ui.h"
#include "../Include/Fui.h"
#include "../Include/Database.h"
#include "../Include/Utility.h"
#include "../Include/TimeManager.h"
#include "../Include/Situation.h"

Go to the source code of this file.

Functions

static void toggle_window (FuiEventNoticeCb handler, Tag id, const char *winFilename)
static void open_window (FuiEventNoticeCb handler, Tag id, const char *winFilename)
static void close_window (Tag id)
void FileLoadEventNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void FileSaveEventNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void FileSaveAsEventNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void FileQuitEventNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void file_load_situation_cb (puObject *obj)
void file_save_situation_cb (puObject *obj)
void file_save_situation_as_cb (puObject *obj)
void file_quit_cb (puObject *obj)
void options_mute_cb (puObject *obj)
void options_pause_cb (puObject *obj)
static void OptionsSceneryNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void options_scenery_cb (puObject *obj)
static void OptionsRealismNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void options_realism_cb (puObject *obj)
static void OptionsStartupNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void options_startup_cb (puObject *obj)
static void OptionsCockpitNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void options_cockpit_cb (puObject *obj)
static void OptionsTestControlsNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void options_test_controls_cb (puObject *obj)
static void OptionsSetupAxesNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void options_setup_axes_cb (puObject *obj)
static void OptionsKeysButtonsNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void options_keys_buttons_cb (puObject *obj)
static void OptionsDateTimeNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void options_date_time_cb (puObject *obj)
static void OptionsSoundsNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void options_sound_cb (puObject *obj)
static void AdventuresNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void quickflight_adventures_cb (puObject *obj)
static void QuickFlightNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void quickflight_quickflight_cb (puObject *obj)
void flightplan_logbook_cb (puObject *obj)
void flightplan_checklist_cb (puObject *obj)
void flightplan_navlog_cb (puObject *obj)
void flightplan_directory_cb (puObject *obj)
void flightplan_waypoint_cb (puObject *obj)
void flightplanner_cb (puObject *obj)
void aircraft_slew_cb (puObject *obj)
void LatArcsecToDMS (double lat, bool &n, float &d, float &m, float &s)
void LonArcsecToDMS (double lon, bool &w, float &d, float &m, float &s)
void TeleportDirectoryNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void TeleportAlertNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void AircraftTeleportNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void aircraft_teleport_cb (puObject *obj)
void AircraftOptionsNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void aircraft_options_cb (puObject *obj)
void AircraftCgNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void aircraft_cg_cb (puObject *obj)
void AircraftTuneRadiosNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void aircraft_tune_radios_cb (puObject *obj)
void AircraftFuelNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void aircraft_fuel_loadout_cb (puObject *obj)
void AircraftWeightBalanceNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void aircraft_weight_balance_cb (puObject *obj)
void AircraftDamageNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void aircraft_damage_report_cb (puObject *obj)
void AircraftSelectNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void aircraft_select_cb (puObject *obj)
void WeatherMetarNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void weather_metar_cb (puObject *obj)
void WeatherOtherNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void weather_other_cb (puObject *obj)
void WeatherWindsNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void weather_winds_cb (puObject *obj)
void WeatherCloudsNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void weather_clouds_cb (puObject *obj)
void WeatherSkyTweakerNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void weather_sky_tweaker_cb (puObject *obj)
void weather_almanac_cb (puObject *obj)
void WeatherOverviewNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)
void weather_overview_cb (puObject *obj)
void multiplayer_connect_cb (puObject *obj)
void multiplayer_disconnect_cb (puObject *obj)
void multiplayer_chat_cb (puObject *obj)
void multiplayer_find_pilot_cb (puObject *obj)
void multiplayer_motd_cb (puObject *obj)
void multiplayer_sysop_cb (puObject *obj)
void windows_replay_cb (puObject *obj)
void windows_axis_cb (puObject *obj)
void windows_vector_cb (puObject *obj)
void windows_map_cb (puObject *obj)
void windows_gps_cb (puObject *obj)
void debug_dump_fui_cb (puObject *obj)
void debug_dump_system_pfs_cb (puObject *obj)
void debug_messaging_cb (puObject *obj)
void debug_dump_keymap_cb (puObject *obj)
void debug_dump_apdb_cb (puObject *obj)
void debug_dump_time_cb (puObject *obj)
void debug_dump_camera_cb (puObject *obj)
void debug_dump_terrain_cb (puObject *obj)
void debug_dump_sky_cb (puObject *obj)
void debug_dump_user_cb (puObject *obj)
void debug_dump_electrical_cb (puObject *obj)
void helpAbout_cb (puObject *obj)
void init_menu (void)
void cleanup_menu (void)
void hide_menu (void)
void show_menu (void)
void toggle_menu (void)

Variables

char * file_legends []
puCallback file_cb []
char * options_legends []
puCallback options_cb []
char * quickflight_legends []
puCallback quickflight_cb []
char * flightplan_legends []
puCallback flightplan_cb []
char * aircraft_legends []
puCallback aircraft_cb []
char * weather_legends []
puCallback weather_cb []
char * multiplayer_legends []
puCallback multiplayer_cb []
char * windows_legends []
puCallback windows_cb []
char * debug_legends []
puCallback debug_cb []
char * help_legends []
puCallback help_cb []
static puMenuBar * menu


Function Documentation

static void AdventuresNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
[static]
 

Definition at line 689 of file Menu.cpp.

Referenced by quickflight_adventures_cb().

void aircraft_cg_cb puObject *  obj  ) 
 

Definition at line 1132 of file Menu.cpp.

References AircraftCgNotify(), FUI_WINDOW_AIRCRAFT_CG, and open_window().

void aircraft_damage_report_cb puObject *  obj  ) 
 

Definition at line 1176 of file Menu.cpp.

References AircraftDamageNotify(), FUI_WINDOW_AIRCRAFT_DAMAGE, and open_window().

void aircraft_fuel_loadout_cb puObject *  obj  ) 
 

Definition at line 1154 of file Menu.cpp.

References AircraftFuelNotify(), FUI_WINDOW_AIRCRAFT_FUEL, and open_window().

void aircraft_options_cb puObject *  obj  ) 
 

Definition at line 1121 of file Menu.cpp.

References AircraftOptionsNotify(), FUI_WINDOW_AIRCRAFT_OPTIONS, and open_window().

void aircraft_select_cb puObject *  obj  ) 
 

Definition at line 1187 of file Menu.cpp.

References AircraftSelectNotify(), FUI_WINDOW_AIRCRAFT_SELECT, and open_window().

void aircraft_slew_cb puObject *  obj  ) 
 

Definition at line 797 of file Menu.cpp.

References CSlewManager::Disable(), CSlewManager::Enable(), globals, CSlewManager::IsEnabled(), and SGlobals::slewmgr.

void aircraft_teleport_cb puObject *  obj  ) 
 

Definition at line 1110 of file Menu.cpp.

References AircraftTeleportNotify(), FUI_WINDOW_TELEPORT, and open_window().

void aircraft_tune_radios_cb puObject *  obj  ) 
 

Definition at line 1143 of file Menu.cpp.

References AircraftTuneRadiosNotify(), FUI_WINDOW_AIRCRAFT_AUTOTUNE, and open_window().

void aircraft_weight_balance_cb puObject *  obj  ) 
 

Definition at line 1165 of file Menu.cpp.

References AircraftWeightBalanceNotify(), FUI_WINDOW_AIRCRAFT_WEIGHT_BALANCE, and open_window().

void AircraftCgNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 1128 of file Menu.cpp.

Referenced by aircraft_cg_cb().

void AircraftDamageNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 1172 of file Menu.cpp.

Referenced by aircraft_damage_report_cb().

void AircraftFuelNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 1150 of file Menu.cpp.

Referenced by aircraft_fuel_loadout_cb().

void AircraftOptionsNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 1117 of file Menu.cpp.

Referenced by aircraft_options_cb().

void AircraftSelectNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 1183 of file Menu.cpp.

Referenced by aircraft_select_cb().

void AircraftTeleportNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 960 of file Menu.cpp.

References close_window(), DrawNoticeToUser(), EVENT_BUTTONPRESSED, EVENT_CHECKED, EVENT_OPENWINDOW, FUI_WINDOW_TELEPORT_ALERT, FUI_WINDOW_TELEPORT_DIRECTORY, SGlobals::fuimgr, CWorldObject::GetPosition(), CFuiManager::GetRadioState(), CFuiManager::GetTextText(), CSituation::GetUserVehicle(), globals, SPosition::lat, LatArcsecToDMS(), SPosition::lon, LonArcsecToDMS(), open_window(), CModelObject::SetPosition(), CFuiManager::SetRadioState(), CFuiManager::SetTextText(), SGlobals::sit, TagToString(), TeleportAlertNotify(), and TeleportDirectoryNotify().

Referenced by aircraft_teleport_cb().

void AircraftTuneRadiosNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 1139 of file Menu.cpp.

Referenced by aircraft_tune_radios_cb().

void AircraftWeightBalanceNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 1161 of file Menu.cpp.

Referenced by aircraft_weight_balance_cb().

void cleanup_menu void   ) 
 

Definition at line 1939 of file Menu.cpp.

References menu.

Referenced by cleanup_ui().

static void close_window Tag  id  )  [static]
 

Definition at line 64 of file Menu.cpp.

References CFuiManager::DestroyFuiWindow(), SGlobals::fuimgr, globals, and CFuiManager::IsWindowCreated().

Referenced by AircraftTeleportNotify().

void debug_dump_apdb_cb puObject *  obj  ) 
 

Definition at line 1721 of file Menu.cpp.

References dbAirport, DrawNoticeToUser(), and CDatabase::Dump().

void debug_dump_camera_cb puObject *  obj  ) 
 

Definition at line 1747 of file Menu.cpp.

References DrawNoticeToUser(), CVehicleObject::GetCameraManager(), CSituation::GetUserVehicle(), globals, CCameraManager::Print(), and SGlobals::sit.

void debug_dump_electrical_cb puObject *  obj  ) 
 

Definition at line 1812 of file Menu.cpp.

References CAirplane::amp, DrawNoticeToUser(), CWorldObject::GetType(), CSituation::GetUserVehicle(), globals, CAirplaneObject::pAirplane, CElectricalSystem::Print(), SGlobals::sit, and TYPE_FLY_AIRPLANE.

void debug_dump_fui_cb puObject *  obj  ) 
 

Definition at line 1581 of file Menu.cpp.

References DrawNoticeToUser(), SGlobals::fuimgr, globals, and CFuiManager::Print().

void debug_dump_keymap_cb puObject *  obj  ) 
 

Definition at line 1611 of file Menu.cpp.

References DrawNoticeToUser(), globals, SGlobals::keymap, and CKeyMap::Print().

void debug_dump_sky_cb puObject *  obj  ) 
 

Definition at line 1777 of file Menu.cpp.

References DrawNoticeToUser(), globals, CSkyManager::Print(), and SGlobals::skymgr.

void debug_dump_system_pfs_cb puObject *  obj  ) 
 

Definition at line 1595 of file Menu.cpp.

References DrawNoticeToUser(), globals, SGlobals::pfs, and pfsdump().

void debug_dump_terrain_cb puObject *  obj  ) 
 

Definition at line 1762 of file Menu.cpp.

References DrawNoticeToUser(), globals, CTerrainManager::Print(), and SGlobals::terrainmgr.

void debug_dump_time_cb puObject *  obj  ) 
 

Definition at line 1732 of file Menu.cpp.

References DrawNoticeToUser(), globals, CTimeManager::Print(), and SGlobals::timemgr.

void debug_dump_user_cb puObject *  obj  ) 
 

Definition at line 1792 of file Menu.cpp.

References DrawNoticeToUser(), globals, CSituation::PrintUserVehicle(), and SGlobals::sit.

void debug_messaging_cb puObject *  obj  ) 
 

Definition at line 1606 of file Menu.cpp.

References msg_debug_dlg_create().

void file_load_situation_cb puObject *  obj  ) 
 

Definition at line 206 of file Menu.cpp.

References FileLoadEventNotify(), FUI_WINDOW_SITUATION_LOAD, and open_window().

void file_quit_cb puObject *  obj  ) 
 

Definition at line 227 of file Menu.cpp.

References FileQuitEventNotify(), FUI_WINDOW_QUIT, and open_window().

void file_save_situation_as_cb puObject *  obj  ) 
 

Definition at line 220 of file Menu.cpp.

References FileSaveAsEventNotify(), FUI_WINDOW_SITUATION_SAVE_AS, and open_window().

void file_save_situation_cb puObject *  obj  ) 
 

Definition at line 213 of file Menu.cpp.

References FileSaveEventNotify(), FUI_WINDOW_SITUATION_SAVE, and open_window().

void FileLoadEventNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Todo:
Get filename and load situation

Definition at line 76 of file Menu.cpp.

References CFuiManager::DestroyFuiWindow(), EVENT_BUTTONPRESSED, EVENT_OPENWINDOW, SGlobals::fuimgr, globals, and CFuiManager::SetWindowTitle().

Referenced by file_load_situation_cb().

void FileQuitEventNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 173 of file Menu.cpp.

References APP_EXIT_SCREEN, SGlobals::appState, CFuiManager::DestroyFuiWindow(), EVENT_BUTTONPRESSED, EVENT_OPENWINDOW, SGlobals::fuimgr, globals, CFuiManager::SetComponentText(), and CFuiManager::SetWindowTitle().

Referenced by file_quit_cb().

void FileSaveAsEventNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

todo Get filename and load situation

Definition at line 138 of file Menu.cpp.

References CFuiManager::DestroyFuiWindow(), DrawNoticeToUser(), EVENT_BUTTONPRESSED, EVENT_CLOSEWINDOW, EVENT_OPENWINDOW, SGlobals::fuimgr, globals, and CFuiManager::SetWindowTitle().

Referenced by file_save_situation_as_cb().

void FileSaveEventNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Todo:
Save situation

Definition at line 107 of file Menu.cpp.

References CFuiManager::DestroyFuiWindow(), EVENT_BUTTONPRESSED, EVENT_OPENWINDOW, SGlobals::fuimgr, globals, and CFuiManager::SetWindowTitle().

Referenced by file_save_situation_cb().

void flightplan_checklist_cb puObject *  obj  ) 
 

Definition at line 740 of file Menu.cpp.

References DrawNoticeToUser().

void flightplan_directory_cb puObject *  obj  ) 
 

Definition at line 750 of file Menu.cpp.

References DrawNoticeToUser().

void flightplan_logbook_cb puObject *  obj  ) 
 

Definition at line 735 of file Menu.cpp.

References DrawNoticeToUser().

void flightplan_navlog_cb puObject *  obj  ) 
 

Definition at line 745 of file Menu.cpp.

References DrawNoticeToUser().

void flightplan_waypoint_cb puObject *  obj  ) 
 

Definition at line 755 of file Menu.cpp.

References DrawNoticeToUser().

void flightplanner_cb puObject *  obj  ) 
 

Definition at line 760 of file Menu.cpp.

References DrawNoticeToUser().

void helpAbout_cb puObject *  obj  ) 
 

Definition at line 1896 of file Menu.cpp.

References DrawNoticeToUser().

void hide_menu void   ) 
 

Definition at line 1945 of file Menu.cpp.

References menu.

Referenced by init_menu().

void init_menu void   ) 
 

Definition at line 1919 of file Menu.cpp.

References aircraft_cb, aircraft_legends, debug_cb, debug_legends, file_cb, file_legends, flightplan_cb, flightplan_legends, help_cb, help_legends, hide_menu(), menu, multiplayer_cb, multiplayer_legends, options_cb, options_legends, quickflight_cb, quickflight_legends, weather_cb, weather_legends, windows_cb, and windows_legends.

Referenced by init_ui().

void LatArcsecToDMS double  lat,
bool &  n,
float &  d,
float &  m,
float &  s
 

Definition at line 807 of file Menu.cpp.

Referenced by AircraftTeleportNotify().

void LonArcsecToDMS double  lon,
bool &  w,
float &  d,
float &  m,
float &  s
 

Definition at line 823 of file Menu.cpp.

Referenced by AircraftTeleportNotify().

void multiplayer_chat_cb puObject *  obj  ) 
 

Definition at line 1346 of file Menu.cpp.

References DrawNoticeToUser().

void multiplayer_connect_cb puObject *  obj  ) 
 

Definition at line 1336 of file Menu.cpp.

References DrawNoticeToUser().

void multiplayer_disconnect_cb puObject *  obj  ) 
 

Definition at line 1341 of file Menu.cpp.

References DrawNoticeToUser().

void multiplayer_find_pilot_cb puObject *  obj  ) 
 

Definition at line 1351 of file Menu.cpp.

References DrawNoticeToUser().

void multiplayer_motd_cb puObject *  obj  ) 
 

Definition at line 1356 of file Menu.cpp.

References DrawNoticeToUser().

void multiplayer_sysop_cb puObject *  obj  ) 
 

Definition at line 1361 of file Menu.cpp.

References DrawNoticeToUser().

static void open_window FuiEventNoticeCb  handler,
Tag  id,
const char *  winFilename
[static]
 

Definition at line 51 of file Menu.cpp.

References CFuiManager::CreateFuiWindow(), SGlobals::fuimgr, globals, and CFuiManager::IsWindowCreated().

Referenced by aircraft_cg_cb(), aircraft_damage_report_cb(), aircraft_fuel_loadout_cb(), aircraft_options_cb(), aircraft_select_cb(), aircraft_teleport_cb(), aircraft_tune_radios_cb(), aircraft_weight_balance_cb(), AircraftTeleportNotify(), file_load_situation_cb(), file_quit_cb(), file_save_situation_as_cb(), file_save_situation_cb(), options_cockpit_cb(), options_date_time_cb(), options_keys_buttons_cb(), options_realism_cb(), options_scenery_cb(), options_setup_axes_cb(), options_sound_cb(), options_startup_cb(), options_test_controls_cb(), quickflight_adventures_cb(), quickflight_quickflight_cb(), weather_clouds_cb(), weather_metar_cb(), weather_other_cb(), weather_overview_cb(), weather_sky_tweaker_cb(), and weather_winds_cb().

void options_cockpit_cb puObject *  obj  ) 
 

Definition at line 426 of file Menu.cpp.

References FUI_WINDOW_OPTIONS_COCKPIT, open_window(), and OptionsCockpitNotify().

void options_date_time_cb puObject *  obj  ) 
 

Definition at line 600 of file Menu.cpp.

References FUI_WINDOW_OPTIONS_DATE_TIME, open_window(), and OptionsDateTimeNotify().

void options_keys_buttons_cb puObject *  obj  ) 
 

Definition at line 563 of file Menu.cpp.

References FUI_WINDOW_OPTIONS_KEYS_BUTTONS, open_window(), and OptionsKeysButtonsNotify().

void options_mute_cb puObject *  obj  ) 
 

Definition at line 258 of file Menu.cpp.

References DrawNoticeToUser().

void options_pause_cb puObject *  obj  ) 
 

Definition at line 263 of file Menu.cpp.

References CTimeManager::GetPauseState(), globals, CTimeManager::Pause(), SGlobals::timemgr, and CTimeManager::Unpause().

void options_realism_cb puObject *  obj  ) 
 

Definition at line 353 of file Menu.cpp.

References FUI_WINDOW_OPTIONS_REALISM, open_window(), and OptionsRealismNotify().

void options_scenery_cb puObject *  obj  ) 
 

Definition at line 309 of file Menu.cpp.

References FUI_WINDOW_OPTIONS_SCENERY, open_window(), and OptionsSceneryNotify().

void options_setup_axes_cb puObject *  obj  ) 
 

Definition at line 512 of file Menu.cpp.

References open_window(), and OptionsSetupAxesNotify().

void options_sound_cb puObject *  obj  ) 
 

Definition at line 634 of file Menu.cpp.

References FUI_WINDOW_OPTIONS_SOUND, open_window(), and OptionsSoundsNotify().

void options_startup_cb puObject *  obj  ) 
 

Definition at line 397 of file Menu.cpp.

References FUI_WINDOW_OPTIONS_STARTUP, open_window(), and OptionsStartupNotify().

void options_test_controls_cb puObject *  obj  ) 
 

Definition at line 464 of file Menu.cpp.

References FUI_WINDOW_OPTIONS_TEST_CONTROLS, open_window(), and OptionsTestControlsNotify().

static void OptionsCockpitNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
[static]
 

Definition at line 404 of file Menu.cpp.

References DrawNoticeToUser(), EVENT_BUTTONPRESSED, and TagToString().

Referenced by options_cockpit_cb().

static void OptionsDateTimeNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
[static]
 

Definition at line 570 of file Menu.cpp.

References CFuiManager::DestroyFuiWindow(), EVENT_BUTTONPRESSED, EVENT_OPENWINDOW, SGlobals::fuimgr, and globals.

Referenced by options_date_time_cb().

static void OptionsKeysButtonsNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
[static]
 

Todo:
Apply Clear Key
Todo:
Apply Clear Button
Todo:
Apply Default Key
Todo:
Apply Default Button

Definition at line 517 of file Menu.cpp.

References CFuiManager::DestroyFuiWindow(), DrawNoticeToUser(), EVENT_BUTTONPRESSED, SGlobals::fuimgr, globals, and TagToString().

Referenced by options_keys_buttons_cb().

static void OptionsRealismNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
[static]
 

Todo:
Apply realism options

Definition at line 316 of file Menu.cpp.

References CFuiManager::DestroyFuiWindow(), DrawNoticeToUser(), EVENT_BUTTONPRESSED, SGlobals::fuimgr, globals, and TagToString().

Referenced by options_realism_cb().

static void OptionsSceneryNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
[static]
 

Todo:
Apply startup options

Definition at line 272 of file Menu.cpp.

References CFuiManager::DestroyFuiWindow(), DrawNoticeToUser(), EVENT_BUTTONPRESSED, SGlobals::fuimgr, globals, and TagToString().

Referenced by options_scenery_cb().

static void OptionsSetupAxesNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
[static]
 

Todo:
Apply Test Axes
Todo:
Apply Clear Axes
Todo:
Apply Default Axes

Definition at line 471 of file Menu.cpp.

References CFuiManager::DestroyFuiWindow(), DrawNoticeToUser(), EVENT_BUTTONPRESSED, SGlobals::fuimgr, globals, and TagToString().

Referenced by options_setup_axes_cb().

static void OptionsSoundsNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
[static]
 

Todo:
Apply sound options

Definition at line 607 of file Menu.cpp.

References CFuiManager::DestroyFuiWindow(), EVENT_BUTTONPRESSED, SGlobals::fuimgr, and globals.

Referenced by options_sound_cb().

static void OptionsStartupNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
[static]
 

Todo:
Apply startup options

Definition at line 360 of file Menu.cpp.

References CFuiManager::DestroyFuiWindow(), DrawNoticeToUser(), EVENT_BUTTONPRESSED, SGlobals::fuimgr, globals, and TagToString().

Referenced by options_startup_cb().

static void OptionsTestControlsNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
[static]
 

Todo:
Apply Print Report

Definition at line 433 of file Menu.cpp.

References CFuiManager::DestroyFuiWindow(), DrawNoticeToUser(), EVENT_BUTTONPRESSED, SGlobals::fuimgr, globals, and TagToString().

Referenced by options_test_controls_cb().

void quickflight_adventures_cb puObject *  obj  ) 
 

Definition at line 696 of file Menu.cpp.

References AdventuresNotify(), FUI_WINDOW_ADVENTURES, and open_window().

void quickflight_quickflight_cb puObject *  obj  ) 
 

Definition at line 710 of file Menu.cpp.

References FUI_WINDOW_QUICKFLIGHT, open_window(), and QuickFlightNotify().

static void QuickFlightNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
[static]
 

Definition at line 703 of file Menu.cpp.

Referenced by quickflight_quickflight_cb().

void show_menu void   ) 
 

Definition at line 1950 of file Menu.cpp.

References menu.

void TeleportAlertNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 944 of file Menu.cpp.

References EVENT_OPENWINDOW, SGlobals::fuimgr, globals, and CFuiManager::SetComponentText().

Referenced by AircraftTeleportNotify().

void TeleportDirectoryNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Todo:
Populate state list

Definition at line 839 of file Menu.cpp.

References CFuiManager::AddListColumn(), CFuiManager::AddListRow(), CFuiManager::AddPopupItem(), CDatabaseField::data, dbCountry, dbState, CFuiManager::DeleteAllListColumns(), CFuiManager::DeleteAllListRows(), DrawNoticeToUser(), ENTRY_AIRPORT, ENTRY_NAVAID, ENTRY_WAYPOINT, EVENT_BUTTONPRESSED, EVENT_OPENWINDOW, SGlobals::fuimgr, CDatabaseRecord::GetField(), GetIniString(), CDatabase::GetNumRecords(), CDatabase::GetRecordByIndex(), CDatabase::GetRecordByOffset(), globals, CFuiManager::ScrollListToRow(), CDatabase::Search(), CDatabase::SearchNext(), CFuiManager::SelectListRow(), CFuiManager::SelectPopupItem(), and CFuiManager::SetListCellText().

Referenced by AircraftTeleportNotify().

void toggle_menu void   ) 
 

Definition at line 1955 of file Menu.cpp.

References menu.

Referenced by KeyGlobalMenu().

static void toggle_window FuiEventNoticeCb  handler,
Tag  id,
const char *  winFilename
[static]
 

Definition at line 34 of file Menu.cpp.

References CFuiManager::CreateFuiWindow(), CFuiManager::DestroyFuiWindow(), SGlobals::fuimgr, globals, and CFuiManager::IsWindowCreated().

Referenced by windows_axis_cb(), windows_map_cb(), windows_replay_cb(), and windows_vector_cb().

void weather_almanac_cb puObject *  obj  ) 
 

Definition at line 1287 of file Menu.cpp.

References DrawNoticeToUser().

void weather_clouds_cb puObject *  obj  ) 
 

Definition at line 1269 of file Menu.cpp.

References FUI_WINDOW_WEATHER_WINDS, open_window(), and WeatherCloudsNotify().

void weather_metar_cb puObject *  obj  ) 
 

Definition at line 1236 of file Menu.cpp.

References FUI_WINDOW_WEATHER_METAR, open_window(), and WeatherMetarNotify().

void weather_other_cb puObject *  obj  ) 
 

Definition at line 1247 of file Menu.cpp.

References FUI_WINDOW_WEATHER_OTHER, open_window(), and WeatherOtherNotify().

void weather_overview_cb puObject *  obj  ) 
 

Definition at line 1296 of file Menu.cpp.

References open_window(), and WeatherOverviewNotify().

void weather_sky_tweaker_cb puObject *  obj  ) 
 

Definition at line 1280 of file Menu.cpp.

References FUI_WINDOW_WEATHER_SKY_TWEAKER, open_window(), and WeatherSkyTweakerNotify().

void weather_winds_cb puObject *  obj  ) 
 

Definition at line 1258 of file Menu.cpp.

References FUI_WINDOW_WEATHER_WINDS, open_window(), and WeatherWindsNotify().

void WeatherCloudsNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 1265 of file Menu.cpp.

Referenced by weather_clouds_cb().

void WeatherMetarNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 1232 of file Menu.cpp.

Referenced by weather_metar_cb().

void WeatherOtherNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 1243 of file Menu.cpp.

Referenced by weather_other_cb().

void WeatherOverviewNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 1292 of file Menu.cpp.

Referenced by weather_overview_cb().

void WeatherSkyTweakerNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 1276 of file Menu.cpp.

Referenced by weather_sky_tweaker_cb().

void WeatherWindsNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Definition at line 1254 of file Menu.cpp.

Referenced by weather_winds_cb().

void windows_axis_cb puObject *  obj  ) 
 

Definition at line 1403 of file Menu.cpp.

References AxisNotify(), FUI_WINDOW_AXIS, and toggle_window().

void windows_gps_cb puObject *  obj  ) 
 

Definition at line 1424 of file Menu.cpp.

References DrawNoticeToUser().

void windows_map_cb puObject *  obj  ) 
 

Definition at line 1417 of file Menu.cpp.

References FUI_WINDOW_MAP, MapNotify(), and toggle_window().

void windows_replay_cb puObject *  obj  ) 
 

Definition at line 1396 of file Menu.cpp.

References FUI_WINDOW_INSTANT_REPLAY, ReplayNotify(), and toggle_window().

void windows_vector_cb puObject *  obj  ) 
 

Definition at line 1410 of file Menu.cpp.

References FUI_WINDOW_VECTOR_MAP, toggle_window(), and VectorMapNotify().


Variable Documentation

puCallback aircraft_cb[]
 

Initial value:

Definition at line 1211 of file Menu.cpp.

Referenced by init_menu().

char* aircraft_legends[]
 

Initial value:

{
  "Slew",
  "Teleport",
  "--------------------",
  "Options",
  "CG Indicator",
  "--------------------",
  "Tune Radios",
  "Fuel Loadout",
  "Weight & Balance",
  "--------------------",
  "Damage Report",
  "Select Aircraft",
  NULL
}

Definition at line 1194 of file Menu.cpp.

Referenced by init_menu().

puCallback debug_cb[]
 

Initial value:

Definition at line 1864 of file Menu.cpp.

Referenced by init_menu().

char* debug_legends[]
 

Initial value:

{
  "Dump FUI Manager",
  "Dump Electrical Systems",
  "Dump POD Filesystem",
  "Messaging",
  "Dump Key Mappings",










  "Dump Time Manager",
  "Dump Camera",
  "Dump Terrain",
  "Dump Sky",
  "Dump User Vehicle",



  NULL
}

Definition at line 1836 of file Menu.cpp.

Referenced by init_menu().

puCallback file_cb[]
 

Initial value:

Definition at line 244 of file Menu.cpp.

Referenced by init_menu().

char* file_legends[]
 

Initial value:

{
  "Quit",
  "--------------------",
  "Save Situation As...",
  "Save Situation...",
  "Load Situation...",
  NULL
}

Definition at line 234 of file Menu.cpp.

Referenced by init_menu().

puCallback flightplan_cb[]
 

Initial value:

Definition at line 779 of file Menu.cpp.

Referenced by init_menu().

char* flightplan_legends[]
 

Initial value:

{
  "Log Book...",
  "--------------------",
  "Check List...",
  "Navigation Log...",
  "--------------------",
  "Directory...",
  "Current Waypoint...",
  "--------------------",
  "Flight Planner...",
  NULL
}

Definition at line 765 of file Menu.cpp.

Referenced by init_menu().

puCallback help_cb[]
 

Initial value:

{
  helpAbout_cb,
  NULL
}

Definition at line 1907 of file Menu.cpp.

Referenced by init_menu().

char* help_legends[]
 

Initial value:

{
  "About...",
  NULL
}

Definition at line 1901 of file Menu.cpp.

Referenced by init_menu().

puMenuBar* menu [static]
 

Definition at line 1917 of file Menu.cpp.

Referenced by BindGlobalKeys(), cleanup_menu(), hide_menu(), init_menu(), show_menu(), and toggle_menu().

puCallback multiplayer_cb[]
 

Initial value:

Definition at line 1379 of file Menu.cpp.

Referenced by init_menu().

char* multiplayer_legends[]
 

Initial value:

{
  "Sysop",
  "Show MOTD",
  "--------------------",
  "Find Pilot",
  "Chat Window",
  "--------------------",
  "Disconnect",
  "Connect",
  NULL
}

Definition at line 1366 of file Menu.cpp.

Referenced by init_menu().

puCallback options_cb[]
 

Initial value:

Definition at line 663 of file Menu.cpp.

Referenced by init_menu().

char* options_legends[]
 

Initial value:

{
  "Mute",
  "--------------------",
  "Pause",
  "--------------------",
  "Scenery...",
  "Realism...",
  "--------------------",
  "Startup...",
  "--------------------",
  "Cockpit...",
  "--------------------",
  "Test Controls...",
  "Setup Axes...",
  "Keys & Buttons...",
  "--------------------",
  "Date & Time...",
  "Sound...",
  NULL
}

Definition at line 641 of file Menu.cpp.

Referenced by init_menu().

puCallback quickflight_cb[]
 

Initial value:

Definition at line 724 of file Menu.cpp.

Referenced by init_menu().

char* quickflight_legends[]
 

Initial value:

{
  "Adventures...",
  "QuickFlight...",
  NULL
}

Definition at line 717 of file Menu.cpp.

Referenced by init_menu().

puCallback weather_cb[]
 

Initial value:

Definition at line 1316 of file Menu.cpp.

Referenced by init_menu().

char* weather_legends[]
 

Initial value:

{
  "Load METAR...",
  "--------------------",
  "Other",
  "Winds",
  "Clouds",
  "--------------------",
  "Sky Tweaker",
  "--------------------",
  "Almanac",
  "Overview",
  NULL
}

Definition at line 1301 of file Menu.cpp.

Referenced by init_menu().

puCallback windows_cb[]
 

Initial value:

Definition at line 1441 of file Menu.cpp.

Referenced by init_menu().

char* windows_legends[]
 

Initial value:

{
  "Instant Replay",
  "--------------------",
  "Axis Window",
  "--------------------",
  "Vector Window",
  "Map Window",
  "GPS Window",
  NULL
}

Definition at line 1429 of file Menu.cpp.

Referenced by init_menu().

SourceForge.net Logo Documentation generated by doxygen