Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

PrefsWindow Class Reference

Collaboration diagram for PrefsWindow:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PrefsWindow (Prefs *p, bool start, char *path)
virtual void MessageReceived (BMessage *msg)
virtual bool QuitRequested (void)
virtual bool FilterKeyDown (uint32 *aChar, BView **target)

Private Member Functions

BCheckBox * make_checkbox (BRect frame, char *label, uint32 what, BView *parent)
NumberControlmake_number_entry (BRect frame, char *label_text, BView *parent)
BPopUpMenu * make_drvtype_popup (BRect frame, uint32 what, BView *parent)
PathControlmake_path_entry (BRect frame, char *label, BView *parent)
BPopUpMenu * make_sidtype_popup (BRect frame, char *label_text, uint32 what, BView *parent)
BPopUpMenu * make_reusize_popup (BRect frame, char *label_text, uint32 what, BView *parent)
BPopUpMenu * make_disptype_popup (BRect frame, char *label_text, uint32 what, BView *parent)
void set_values (void)
void get_values (void)
void ghost_controls (void)

Private Attributes

Prefsprefs
BMessenger this_messenger
BFilePanel * open_panel
BFilePanel * save_panel
BFilePanel * file_panel
BFilePanel * dir_panel
int panel_drive_num
BButton * g_ok
BButton * g_cancel
NumberControlg_normal_cycles
NumberControlg_bad_line_cycles
NumberControlg_cia_cycles
NumberControlg_floppy_cycles
NumberControlg_skip_frames
BPopUpMenu * g_drive_type [4]
PathControlg_drive_path [4]
BPopUpMenu * g_sid_type
BPopUpMenu * g_reu_size
BPopUpMenu * g_display_type
BCheckBox * g_sprites_on
BCheckBox * g_sprite_collisions
BCheckBox * g_joystick_1_on
BCheckBox * g_joystick_2_on
BCheckBox * g_joystick_swap
BCheckBox * g_limit_speed
BCheckBox * g_fast_reset
BCheckBox * g_cia_irq_hack
BCheckBox * g_sid_filters
BCheckBox * g_double_scan
BCheckBox * g_map_slash
BCheckBox * g_emul_1541_proc
char * prefs_path
bool startup

Constructor & Destructor Documentation

PrefsWindow::PrefsWindow Prefs p,
bool  start,
char *  path
 

Definition at line 220 of file Prefs_Be.i.

References AppDirectory, be_app, dark_color, dir_panel, file_panel, fill_color, g_bad_line_cycles, g_cancel, g_cia_cycles, g_cia_irq_hack, g_display_type, g_double_scan, g_drive_path, g_drive_type, g_emul_1541_proc, g_fast_reset, g_floppy_cycles, g_joystick_1_on, g_joystick_2_on, g_joystick_swap, g_limit_speed, g_map_slash, g_normal_cycles, g_ok, g_reu_size, g_sid_filters, g_sid_type, g_skip_frames, g_sprite_collisions, g_sprites_on, light_color, make_checkbox(), make_disptype_popup(), make_drvtype_popup(), make_number_entry(), make_path_entry(), make_reusize_popup(), make_sidtype_popup(), MSG_CANCEL, MSG_CIA_IRQ_HACK, MSG_DISPLAY_TYPE, MSG_DOUBLE_SCAN, MSG_DRIVE_PANEL_RETURNED, MSG_DRVTYPE_8, MSG_EMUL_1541_PROC, MSG_FAST_RESET, MSG_GETDRIVE_8, MSG_JOYSTICK_1_ON, MSG_JOYSTICK_2_ON, MSG_JOYSTICK_SWAP, MSG_LIMIT_SPEED, MSG_MAP_SLASH, MSG_OK, MSG_OPEN, MSG_OPEN_PANEL_RETURNED, MSG_REU_SIZE, MSG_REVERT, MSG_SAVE, MSG_SAVE_AS, MSG_SAVE_PANEL_RETURNED, MSG_SID_FILTERS, MSG_SID_TYPE, MSG_SPRITE_COLLISIONS, MSG_SPRITES_ON, open_panel, prefs, prefs_path, save_panel, set_values(), sprintf, startup, and this_messenger.


Member Function Documentation

bool PrefsWindow::FilterKeyDown uint32 aChar,
BView **  target
[virtual]
 

Definition at line 759 of file Prefs_Be.i.

References g_cancel, and MSG_CANCEL.

void PrefsWindow::get_values void   )  [private]
 

Definition at line 534 of file Prefs_Be.i.

References Prefs::BadLineCycles, Prefs::Check(), Prefs::CIACycles, Prefs::DrivePath, Prefs::FloppyCycles, g_bad_line_cycles, g_cia_cycles, g_drive_path, g_floppy_cycles, g_normal_cycles, g_skip_frames, Prefs::NormalCycles, prefs, Prefs::SkipFrames, strcpy, and NumberControl::Value().

Referenced by MessageReceived().

void PrefsWindow::ghost_controls void   )  [private]
 

Definition at line 553 of file Prefs_Be.i.

References DISPTYPE_SCREEN, g_bad_line_cycles, g_cia_cycles, g_cia_irq_hack, g_double_scan, g_floppy_cycles, g_normal_cycles, and prefs.

Referenced by set_values().

BCheckBox * PrefsWindow::make_checkbox BRect  frame,
char *  label,
uint32  what,
BView *  parent
[private]
 

Definition at line 372 of file Prefs_Be.i.

Referenced by PrefsWindow().

BPopUpMenu * PrefsWindow::make_disptype_popup BRect  frame,
char *  label_text,
uint32  what,
BView *  parent
[private]
 

Definition at line 437 of file Prefs_Be.i.

Referenced by PrefsWindow().

BPopUpMenu * PrefsWindow::make_drvtype_popup BRect  frame,
uint32  what,
BView *  parent
[private]
 

Definition at line 401 of file Prefs_Be.i.

Referenced by PrefsWindow().

NumberControl * PrefsWindow::make_number_entry BRect  frame,
char *  label_text,
BView *  parent
[private]
 

Definition at line 384 of file Prefs_Be.i.

Referenced by PrefsWindow().

PathControl * PrefsWindow::make_path_entry BRect  frame,
char *  label,
BView *  parent
[private]
 

Definition at line 419 of file Prefs_Be.i.

Referenced by PrefsWindow().

BPopUpMenu * PrefsWindow::make_reusize_popup BRect  frame,
char *  label_text,
uint32  what,
BView *  parent
[private]
 

Definition at line 473 of file Prefs_Be.i.

Referenced by PrefsWindow().

BPopUpMenu * PrefsWindow::make_sidtype_popup BRect  frame,
char *  label_text,
uint32  what,
BView *  parent
[private]
 

Definition at line 455 of file Prefs_Be.i.

Referenced by PrefsWindow().

void PrefsWindow::MessageReceived BMessage *  msg  )  [virtual]
 

Definition at line 568 of file Prefs_Be.i.

References be_app, dir_panel, DISPTYPE_SCREEN, Prefs::DrivePath, Prefs::DriveType, DRVTYPE_D64, DRVTYPE_T64, Prefs::Emul1541Proc, Prefs::FastReset, file_panel, g_double_scan, get_values(), Prefs::Joystick1On, Prefs::Joystick2On, Prefs::LimitSpeed, Prefs::Load(), MSG_CANCEL, MSG_CIA_IRQ_HACK, MSG_DISPLAY_TYPE, MSG_DOUBLE_SCAN, MSG_DRIVE_PANEL_RETURNED, MSG_DRVTYPE_10, MSG_DRVTYPE_11, MSG_DRVTYPE_8, MSG_DRVTYPE_9, MSG_EMUL_1541_PROC, MSG_FAST_RESET, MSG_GETDRIVE_10, MSG_GETDRIVE_11, MSG_GETDRIVE_8, MSG_GETDRIVE_9, MSG_JOYSTICK_1_ON, MSG_JOYSTICK_2_ON, MSG_JOYSTICK_SWAP, MSG_LIMIT_SPEED, MSG_MAP_SLASH, MSG_OK, MSG_OPEN, MSG_OPEN_PANEL_RETURNED, MSG_REU_SIZE, MSG_REVERT, MSG_SAVE, MSG_SAVE_AS, MSG_SAVE_PANEL_RETURNED, MSG_SID_FILTERS, MSG_SID_TYPE, MSG_SPRITE_COLLISIONS, MSG_SPRITES_ON, open_panel, panel_drive_num, prefs, prefs_path, Prefs::REUSize, Prefs::Save(), save_panel, set_values(), ShowRequester(), Prefs::SIDFilters, Prefs::SIDType, Prefs::SpriteCollisions, Prefs::SpritesOn, startup, and strncpy.

bool PrefsWindow::QuitRequested void   )  [virtual]
 

Definition at line 775 of file Prefs_Be.i.

References dir_panel, file_panel, open_panel, and save_panel.

void PrefsWindow::set_values void   )  [private]
 

Definition at line 493 of file Prefs_Be.i.

References Prefs::BadLineCycles, Prefs::Check(), Prefs::CIACycles, Prefs::DrivePath, Prefs::DriveType, Prefs::Emul1541Proc, Prefs::FastReset, Prefs::FloppyCycles, g_bad_line_cycles, g_cia_cycles, g_cia_irq_hack, g_display_type, g_double_scan, g_drive_path, g_drive_type, g_emul_1541_proc, g_fast_reset, g_floppy_cycles, g_joystick_1_on, g_joystick_2_on, g_joystick_swap, g_limit_speed, g_map_slash, g_normal_cycles, g_reu_size, g_sid_filters, g_sid_type, g_skip_frames, g_sprite_collisions, g_sprites_on, ghost_controls(), Prefs::Joystick1On, Prefs::Joystick2On, Prefs::LimitSpeed, Prefs::NormalCycles, prefs, Prefs::REUSize, NumberControl::SetValue(), Prefs::SIDFilters, Prefs::SIDType, Prefs::SkipFrames, Prefs::SpriteCollisions, and Prefs::SpritesOn.

Referenced by MessageReceived(), and PrefsWindow().


Member Data Documentation

BFilePanel* PrefsWindow::dir_panel [private]
 

Definition at line 86 of file Prefs_Be.i.

Referenced by MessageReceived(), PrefsWindow(), and QuitRequested().

BFilePanel* PrefsWindow::file_panel [private]
 

Definition at line 85 of file Prefs_Be.i.

Referenced by MessageReceived(), PrefsWindow(), and QuitRequested().

NumberControl* PrefsWindow::g_bad_line_cycles [private]
 

Definition at line 92 of file Prefs_Be.i.

Referenced by get_values(), ghost_controls(), PrefsWindow(), and set_values().

BButton* PrefsWindow::g_cancel [private]
 

Definition at line 90 of file Prefs_Be.i.

Referenced by FilterKeyDown(), and PrefsWindow().

NumberControl* PrefsWindow::g_cia_cycles [private]
 

Definition at line 93 of file Prefs_Be.i.

Referenced by get_values(), ghost_controls(), PrefsWindow(), and set_values().

BCheckBox* PrefsWindow::g_cia_irq_hack [private]
 

Definition at line 108 of file Prefs_Be.i.

Referenced by ghost_controls(), PrefsWindow(), and set_values().

BPopUpMenu* PrefsWindow::g_display_type [private]
 

Definition at line 100 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

BCheckBox* PrefsWindow::g_double_scan [private]
 

Definition at line 110 of file Prefs_Be.i.

Referenced by ghost_controls(), MessageReceived(), PrefsWindow(), and set_values().

PathControl* PrefsWindow::g_drive_path[4] [private]
 

Definition at line 97 of file Prefs_Be.i.

Referenced by get_values(), PrefsWindow(), and set_values().

BPopUpMenu* PrefsWindow::g_drive_type[4] [private]
 

Definition at line 96 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

BCheckBox* PrefsWindow::g_emul_1541_proc [private]
 

Definition at line 112 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

BCheckBox* PrefsWindow::g_fast_reset [private]
 

Definition at line 107 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

NumberControl* PrefsWindow::g_floppy_cycles [private]
 

Definition at line 94 of file Prefs_Be.i.

Referenced by get_values(), ghost_controls(), PrefsWindow(), and set_values().

BCheckBox* PrefsWindow::g_joystick_1_on [private]
 

Definition at line 103 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

BCheckBox* PrefsWindow::g_joystick_2_on [private]
 

Definition at line 104 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

BCheckBox* PrefsWindow::g_joystick_swap [private]
 

Definition at line 105 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

BCheckBox* PrefsWindow::g_limit_speed [private]
 

Definition at line 106 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

BCheckBox* PrefsWindow::g_map_slash [private]
 

Definition at line 111 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

NumberControl* PrefsWindow::g_normal_cycles [private]
 

Definition at line 91 of file Prefs_Be.i.

Referenced by get_values(), ghost_controls(), PrefsWindow(), and set_values().

BButton* PrefsWindow::g_ok [private]
 

Definition at line 89 of file Prefs_Be.i.

Referenced by PrefsWindow().

BPopUpMenu* PrefsWindow::g_reu_size [private]
 

Definition at line 99 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

BCheckBox* PrefsWindow::g_sid_filters [private]
 

Definition at line 109 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

BPopUpMenu* PrefsWindow::g_sid_type [private]
 

Definition at line 98 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

NumberControl* PrefsWindow::g_skip_frames [private]
 

Definition at line 95 of file Prefs_Be.i.

Referenced by get_values(), PrefsWindow(), and set_values().

BCheckBox* PrefsWindow::g_sprite_collisions [private]
 

Definition at line 102 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

BCheckBox* PrefsWindow::g_sprites_on [private]
 

Definition at line 101 of file Prefs_Be.i.

Referenced by PrefsWindow(), and set_values().

BFilePanel* PrefsWindow::open_panel [private]
 

Definition at line 83 of file Prefs_Be.i.

Referenced by MessageReceived(), PrefsWindow(), and QuitRequested().

int PrefsWindow::panel_drive_num [private]
 

Definition at line 87 of file Prefs_Be.i.

Referenced by MessageReceived().

Prefs* PrefsWindow::prefs [private]
 

Definition at line 80 of file Prefs_Be.i.

Referenced by get_values(), ghost_controls(), MessageReceived(), PrefsWindow(), and set_values().

char* PrefsWindow::prefs_path [private]
 

Definition at line 114 of file Prefs_Be.i.

Referenced by MessageReceived(), and PrefsWindow().

BFilePanel* PrefsWindow::save_panel [private]
 

Definition at line 84 of file Prefs_Be.i.

Referenced by MessageReceived(), PrefsWindow(), and QuitRequested().

bool PrefsWindow::startup [private]
 

Definition at line 115 of file Prefs_Be.i.

Referenced by MessageReceived(), and PrefsWindow().

BMessenger PrefsWindow::this_messenger [private]
 

Definition at line 82 of file Prefs_Be.i.

Referenced by PrefsWindow().


The documentation for this class was generated from the following file:
Generated on Tue Feb 8 04:12:38 2005 for E32frodo by doxygen 1.3.3