VGUI::Page Class Reference

#include <page.h>

Collaboration diagram for VGUI::Page:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Page ()
 Page (string filename)
 ~Page ()
void Draw ()
void Draw (float opacity)
void UpWidget ()
void DownWidget ()
void RightWidgetPress ()
void LeftWidgetPress ()
void RightWidgetRelease ()
void LeftWidgetRelease ()
void BackspacePress ()
void DeletePress ()
void BackspaceRelease ()
void DeleteRelease ()
void KeyPress ()
string KeyRelease ()
void Type (SDLKey key)
void CancelPress ()
string CancelRelease ()
string ExecWidget ()
void SaveSettings ()
void ClearSettings ()
void SelectDefault ()
void MouseSelect (float x, float y)
bool MouseOver (float x, float y)
string MousePressWidget (float x, float y)
string MouseReleaseWidget (float x, float y)
void StartGame ()
void ControlGrabKey (SDLKey key)
void ControlGrabMouseMove (string direction)
void ControlGrabMouseButton (int button_idx)
void ControlGrabJoyButton (Uint8 joy_idx, Uint8 joy_btn)
void ControlGrabJoyMove (Uint8 joy_idx, Uint8 joy_axis, bool joy_positive, float joy_value)
bool HasChanges ()
WidgetGetWidget (int idx)
bool GetDialog ()
int GetNumWidgets ()
string GetName ()
string GetTabText ()
void SetDialog (bool new_dialog)
void SetName (string new_name)

Private Member Functions

void Init ()
void DeInit ()
void ReleaseWidgets ()

Private Attributes

vector< Widget * > page_objects
vector< Page * > tabs
CONFIGFILE menu_file
TEXTURE_HANDLE background
TEXTURE_HANDLE tab_active
TEXTURE_HANDLE tab_inactive
TEXTURE_HANDLE tab_page_background
string path
string name
string tab_text
unsigned int cur_obj
unsigned int cancel_obj
unsigned int default_obj
unsigned int cur_tab
unsigned int num_widgets
unsigned int num_tabs
unsigned int clicked_obj
bool is_dialog
bool l_pressed
bool r_pressed
bool has_changes

Detailed Description

Definition at line 20 of file page.h.


Constructor & Destructor Documentation

Page::Page  ) 
 

Definition at line 30 of file page.cpp.

Page::Page string  filename  ) 
 

Definition at line 35 of file page.cpp.

References cancel_obj, clicked_obj, cur_obj, cur_tab, default_obj, has_changes, Init(), is_dialog, l_pressed, CONFIGFILE::Load(), menu_file, name, num_widgets, path, r_pressed, CONFIGFILE::SuppressError(), tab_text, and verbose_output.

Page::~Page  ) 
 

Definition at line 48 of file page.cpp.

References CONFIGFILE::Clear(), menu_file, and page_objects.


Member Function Documentation

void Page::BackspacePress  ) 
 

Definition at line 1775 of file page.cpp.

References cur_obj, and page_objects.

void Page::BackspaceRelease  ) 
 

Definition at line 1793 of file page.cpp.

References cur_obj, has_changes, and page_objects.

void Page::CancelPress  ) 
 

Definition at line 1883 of file page.cpp.

References cancel_obj, cur_obj, and page_objects.

string Page::CancelRelease  ) 
 

Definition at line 1898 of file page.cpp.

References cancel_obj, and page_objects.

void Page::ClearSettings  ) 
 

Definition at line 1995 of file page.cpp.

References has_changes, and page_objects.

void Page::ControlGrabJoyButton Uint8  joy_idx,
Uint8  joy_btn
 

Definition at line 2240 of file page.cpp.

References cur_obj, and page_objects.

void Page::ControlGrabJoyMove Uint8  joy_idx,
Uint8  joy_axis,
bool  joy_positive,
float  joy_value
 

Definition at line 2248 of file page.cpp.

References cur_obj, and page_objects.

void Page::ControlGrabKey SDLKey  key  ) 
 

Definition at line 2216 of file page.cpp.

References cur_obj, and page_objects.

void Page::ControlGrabMouseButton int  button_idx  ) 
 

Definition at line 2232 of file page.cpp.

References cur_obj, and page_objects.

void Page::ControlGrabMouseMove string  direction  ) 
 

Definition at line 2224 of file page.cpp.

References cur_obj, and page_objects.

void Page::DeInit  )  [private]
 

Definition at line 1435 of file page.cpp.

void Page::DeletePress  ) 
 

Definition at line 1784 of file page.cpp.

References cur_obj, and page_objects.

void Page::DeleteRelease  ) 
 

Definition at line 1803 of file page.cpp.

References cur_obj, has_changes, and page_objects.

void Page::DownWidget  ) 
 

Definition at line 1518 of file page.cpp.

References cur_obj, and page_objects.

void Page::Draw float  opacity  ) 
 

Definition at line 1444 of file page.cpp.

References background, cur_tab, UTILITY::Draw2D(), UTILITY::DrawButton(), font, GetTabText(), FONT::Print(), tab_active, tab_inactive, tab_page_background, tab_text, tabs, utility, and FONT::Width().

void Page::Draw  ) 
 

Definition at line 1439 of file page.cpp.

string Page::ExecWidget  ) 
 

Definition at line 1813 of file page.cpp.

References cur_obj, default_obj, has_changes, page_objects, and SaveSettings().

Referenced by KeyRelease(), and MouseReleaseWidget().

bool VGUI::Page::GetDialog  )  [inline]
 

Definition at line 77 of file page.h.

References is_dialog.

string VGUI::Page::GetName  )  [inline]
 

Definition at line 79 of file page.h.

References name.

Referenced by LeftWidgetPress(), LeftWidgetRelease(), MousePressWidget(), MouseReleaseWidget(), ReleaseWidgets(), RightWidgetPress(), RightWidgetRelease(), and StartGame().

int VGUI::Page::GetNumWidgets  )  [inline]
 

Definition at line 78 of file page.h.

References num_widgets.

string VGUI::Page::GetTabText  )  [inline]
 

Definition at line 80 of file page.h.

References tab_text.

Referenced by Draw().

Widget* VGUI::Page::GetWidget int  idx  )  [inline]
 

Definition at line 76 of file page.h.

References page_objects.

bool VGUI::Page::HasChanges  )  [inline]
 

Definition at line 74 of file page.h.

References has_changes.

void Page::Init  )  [private]
 

Definition at line 58 of file page.cpp.

References CONFIGFILE::GetParam(), menu_file, name, path, and verbose_output.

Referenced by Page().

void Page::KeyPress  ) 
 

Definition at line 1917 of file page.cpp.

References clicked_obj, cur_obj, has_changes, and page_objects.

string Page::KeyRelease  ) 
 

Definition at line 1929 of file page.cpp.

References clicked_obj, cur_obj, ExecWidget(), has_changes, and page_objects.

void Page::LeftWidgetPress  ) 
 

Definition at line 1541 of file page.cpp.

References clicked_obj, cur_obj, GetName(), l_pressed, page_objects, and ReleaseWidgets().

void Page::LeftWidgetRelease  ) 
 

Definition at line 1635 of file page.cpp.

References clicked_obj, cur_obj, GetName(), has_changes, and page_objects.

bool Page::MouseOver float  x,
float  y
 

Definition at line 2056 of file page.cpp.

References cur_obj, cur_tab, page_objects, and tabs.

Referenced by MouseReleaseWidget(), and MouseSelect().

string Page::MousePressWidget float  x,
float  y
 

Definition at line 2085 of file page.cpp.

References clicked_obj, cur_obj, cur_tab, GetName(), page_objects, and tabs.

string Page::MouseReleaseWidget float  x,
float  y
 

Definition at line 2136 of file page.cpp.

References clicked_obj, cur_obj, cur_tab, ExecWidget(), GetName(), has_changes, MouseOver(), page_objects, and tabs.

void Page::MouseSelect float  x,
float  y
 

Definition at line 2026 of file page.cpp.

References clicked_obj, cur_obj, has_changes, l_pressed, MouseOver(), page_objects, and r_pressed.

void Page::ReleaseWidgets  )  [private]
 

Definition at line 1731 of file page.cpp.

References GetName(), l_pressed, page_objects, and r_pressed.

Referenced by LeftWidgetPress(), and RightWidgetPress().

void Page::RightWidgetPress  ) 
 

Definition at line 1588 of file page.cpp.

References clicked_obj, cur_obj, GetName(), page_objects, r_pressed, and ReleaseWidgets().

void Page::RightWidgetRelease  ) 
 

Definition at line 1683 of file page.cpp.

References clicked_obj, cur_obj, GetName(), has_changes, and page_objects.

void Page::SaveSettings  ) 
 

Definition at line 1959 of file page.cpp.

References has_changes, and page_objects.

Referenced by ExecWidget().

void VGUI::Page::SelectDefault  )  [inline]
 

Definition at line 63 of file page.h.

References cur_obj, default_obj, and page_objects.

void VGUI::Page::SetDialog bool  new_dialog  )  [inline]
 

Definition at line 81 of file page.h.

References is_dialog.

void VGUI::Page::SetName string  new_name  )  [inline]
 

Definition at line 82 of file page.h.

References name.

void Page::StartGame  ) 
 

Definition at line 2202 of file page.cpp.

References GetName(), and page_objects.

void Page::Type SDLKey  key  ) 
 

Definition at line 1950 of file page.cpp.

References cur_obj, has_changes, and page_objects.

void Page::UpWidget  ) 
 

Definition at line 1493 of file page.cpp.

References cur_obj, and page_objects.


Member Data Documentation

TEXTURE_HANDLE VGUI::Page::background [private]
 

Definition at line 30 of file page.h.

Referenced by Draw().

unsigned int VGUI::Page::cancel_obj [private]
 

Definition at line 33 of file page.h.

Referenced by CancelPress(), CancelRelease(), and Page().

unsigned int VGUI::Page::clicked_obj [private]
 

Definition at line 35 of file page.h.

Referenced by KeyPress(), KeyRelease(), LeftWidgetPress(), LeftWidgetRelease(), MousePressWidget(), MouseReleaseWidget(), MouseSelect(), Page(), RightWidgetPress(), and RightWidgetRelease().

unsigned int VGUI::Page::cur_obj [private]
 

Definition at line 33 of file page.h.

Referenced by BackspacePress(), BackspaceRelease(), CancelPress(), ControlGrabJoyButton(), ControlGrabJoyMove(), ControlGrabKey(), ControlGrabMouseButton(), ControlGrabMouseMove(), DeletePress(), DeleteRelease(), DownWidget(), ExecWidget(), KeyPress(), KeyRelease(), LeftWidgetPress(), LeftWidgetRelease(), MouseOver(), MousePressWidget(), MouseReleaseWidget(), MouseSelect(), Page(), RightWidgetPress(), RightWidgetRelease(), SelectDefault(), Type(), and UpWidget().

unsigned int VGUI::Page::cur_tab [private]
 

Definition at line 33 of file page.h.

Referenced by Draw(), MouseOver(), MousePressWidget(), MouseReleaseWidget(), and Page().

unsigned int VGUI::Page::default_obj [private]
 

Definition at line 33 of file page.h.

Referenced by ExecWidget(), Page(), and SelectDefault().

bool VGUI::Page::has_changes [private]
 

Definition at line 37 of file page.h.

Referenced by BackspaceRelease(), ClearSettings(), DeleteRelease(), ExecWidget(), HasChanges(), KeyPress(), KeyRelease(), LeftWidgetRelease(), MouseReleaseWidget(), MouseSelect(), Page(), RightWidgetRelease(), SaveSettings(), and Type().

bool VGUI::Page::is_dialog [private]
 

Definition at line 36 of file page.h.

Referenced by GetDialog(), Page(), and SetDialog().

bool VGUI::Page::l_pressed [private]
 

Definition at line 36 of file page.h.

Referenced by LeftWidgetPress(), MouseSelect(), Page(), and ReleaseWidgets().

CONFIGFILE VGUI::Page::menu_file [private]
 

Definition at line 29 of file page.h.

Referenced by Init(), Page(), and ~Page().

string VGUI::Page::name [private]
 

Definition at line 32 of file page.h.

Referenced by GetName(), Init(), Page(), and SetName().

unsigned int VGUI::Page::num_tabs [private]
 

Definition at line 34 of file page.h.

unsigned int VGUI::Page::num_widgets [private]
 

Definition at line 34 of file page.h.

Referenced by GetNumWidgets(), and Page().

vector<Widget*> VGUI::Page::page_objects [private]
 

Definition at line 27 of file page.h.

Referenced by BackspacePress(), BackspaceRelease(), CancelPress(), CancelRelease(), ClearSettings(), ControlGrabJoyButton(), ControlGrabJoyMove(), ControlGrabKey(), ControlGrabMouseButton(), ControlGrabMouseMove(), DeletePress(), DeleteRelease(), DownWidget(), ExecWidget(), GetWidget(), KeyPress(), KeyRelease(), LeftWidgetPress(), LeftWidgetRelease(), MouseOver(), MousePressWidget(), MouseReleaseWidget(), MouseSelect(), ReleaseWidgets(), RightWidgetPress(), RightWidgetRelease(), SaveSettings(), SelectDefault(), StartGame(), Type(), UpWidget(), and ~Page().

string VGUI::Page::path [private]
 

Definition at line 31 of file page.h.

Referenced by Init(), and Page().

bool VGUI::Page::r_pressed [private]
 

Definition at line 36 of file page.h.

Referenced by MouseSelect(), Page(), ReleaseWidgets(), and RightWidgetPress().

TEXTURE_HANDLE VGUI::Page::tab_active [private]
 

Definition at line 30 of file page.h.

Referenced by Draw().

TEXTURE_HANDLE VGUI::Page::tab_inactive [private]
 

Definition at line 30 of file page.h.

Referenced by Draw().

TEXTURE_HANDLE VGUI::Page::tab_page_background [private]
 

Definition at line 30 of file page.h.

Referenced by Draw().

string VGUI::Page::tab_text [private]
 

Definition at line 32 of file page.h.

Referenced by Draw(), GetTabText(), and Page().

vector<Page*> VGUI::Page::tabs [private]
 

Definition at line 28 of file page.h.

Referenced by Draw(), MouseOver(), MousePressWidget(), and MouseReleaseWidget().


The documentation for this class was generated from the following files:
Generated on Thu Oct 19 04:14:22 2006 by  doxygen 1.4.6