Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

ButtonGroup class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

ButtonGroup Class Reference

UI class for drawing radio buttons. More...

#include <Obutton.h>

List of all members.

Public Methods

 ButtonGroup (int)
 ~ButtonGroup ()
void deinit_buttons ()
void paint (int=-1)
int detect ()
void push (int)
Buttonoperator[] (int)
int operator() ()

Public Attributes

int button_num
int button_pressed
Buttonbutton_array


Detailed Description

UI class for drawing radio buttons.

Definition at line 131 of file Obutton.h.


Constructor & Destructor Documentation

ButtonGroup::ButtonGroup int   
 

Definition at line 535 of file Obutton.cpp.

References button_array, button_num, and button_pressed.

ButtonGroup::~ButtonGroup  
 

Definition at line 545 of file Obutton.cpp.

References NULL.


Member Function Documentation

void ButtonGroup::deinit_buttons  
 

Definition at line 558 of file Obutton.cpp.

References button_array, button_num, and Button::deinit().

Referenced by Department::course_report_deinit(), Finance::report_deinit(), PlayerSchool::score_report_deinit(), FacultyRes::summary_report_deinit(), and PlayerSchool::summary_student_report_deinit().

int ButtonGroup::detect void   
 

Detect all buttons in this button nation. Since only one button can be pressed at one time, so if any one of them is pressed, the previously pressed one will be pop up.

Return : <int> -1 - if no button pressed >=0 - the record no. of the button pressed

Definition at line 597 of file Obutton.cpp.

Referenced by BlackBoard::black_log_detect(), Department::course_report_detect(), Crime::crime_detect(), HelpIf::help_desc_detect(), HelpIf::help_topic_detect(), Finance::report_detect(), FacultyRes::report_detect(), and PlayerSchool::score_report_detect().

int ButtonGroup::operator()   [inline]
 

Definition at line 147 of file Obutton.h.

References button_pressed.

Button & ButtonGroup::operator[] int    buttonId
 

<int> buttonId = Id. of the button, start from 0

Definition at line 638 of file Obutton.cpp.

void ButtonGroup::paint int    buttonPressed = -1
 

Paint all buttons in this button nation.

[int] buttonPressed = the default pressed button (default no change to button_pressed)

Definition at line 574 of file Obutton.cpp.

Referenced by BlackBoard::black_log_report(), Department::course_report_2(), Department::course_report_4(), Finance::report_paint_button(), PlayerSchool::score_report(), FacultyRes::summary_report_1(), FacultyRes::summary_report_2(), FacultyRes::summary_report_3(), FacultyRes::summary_report_4(), FacultyRes::summary_report_6(), FacultyRes::summary_report_7(), FacultyRes::summary_report_8(), PlayerSchool::summary_student_report_1(), PlayerSchool::summary_student_report_2(), PlayerSchool::summary_student_report_3(), PlayerSchool::summary_student_report_4(), PlayerSchool::summary_student_report_5(), and PlayerSchool::summary_student_report_6().

void ButtonGroup::push int    buttonId
 

Push the specified button.

<int> buttonId = Id. of the button.

Definition at line 619 of file Obutton.cpp.


Member Data Documentation

Button* ButtonGroup::button_array
 

Definition at line 135 of file Obutton.h.

Referenced by ButtonGroup(), and deinit_buttons().

int ButtonGroup::button_num
 

Definition at line 133 of file Obutton.h.

Referenced by ButtonGroup(), and deinit_buttons().

int ButtonGroup::button_pressed
 

Definition at line 134 of file Obutton.h.

Referenced by ButtonGroup(), operator()(), Finance::report_detect(), FacultyRes::report_detect(), Optimization::report_stage_1(), and Optimization::report_stage_2().


The documentation for this class was generated from the following files:
Generated on Fri Aug 23 01:39:02 2002 for VirtualU by doxygen1.2.17