Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

BC_Pot Class Reference

#include <bcpot.h>

Inheritance diagram for BC_Pot:

BC_SubWindow BC_WindowBase BC_RelocatableWidget BC_FPot BC_IPot BC_PercentagePot BC_QPot List of all members.

Public Member Functions

 BC_Pot (int x, int y, VFrame **data)
virtual ~BC_Pot ()
int initialize ()
virtual float get_percentage ()
virtual int percentage_to_value (float percentage)
virtual int handle_event ()
virtual char * get_caption ()
virtual int increase_value ()
virtual int decrease_value ()
void set_use_caption (int value)
int reposition_window (int x, int y)
int repeat_event (int64_t repeat_id)
int cursor_enter_event ()
int cursor_leave_event ()
int button_press_event ()
virtual int button_release_event ()
int cursor_motion_event ()
int keypress_event ()

Static Public Member Functions

static int calculate_h ()

Private Member Functions

int set_data (VFrame **data)
int draw ()
float percentage_to_angle (float percentage)
float angle_to_percentage (float angle)
int angle_to_coords (int &x1, int &y1, int &x2, int &y2, float angle)
float coords_to_angle (int x2, int y2)
void show_value_tooltip ()

Private Attributes

VFrame ** data
BC_Pixmapimages [POT_STATES]
char caption [BCTEXTLEN]
char temp_tooltip_text [BCTEXTLEN]
int status
int64_t keypress_tooltip_timer
float angle_offset
float start_cursor_angle
float start_needle_angle
float prev_angle
float angle_correction
int use_caption

Friends

class BC_FPot
class BC_IPot
class BC_QPot
class BC_PercentagePot

Detailed Description

Definition at line 18 of file bcpot.h.


Constructor & Destructor Documentation

BC_Pot::BC_Pot int  x,
int  y,
VFrame **  data
 

Definition at line 14 of file bcpot.C.

BC_Pot::~BC_Pot  )  [virtual]
 

Definition at line 23 of file bcpot.C.


Member Function Documentation

int BC_Pot::angle_to_coords int &  x1,
int &  y1,
int &  x2,
int &  y2,
float  angle
[private]
 

Definition at line 96 of file bcpot.C.

float BC_Pot::angle_to_percentage float  angle  )  [private]
 

Definition at line 90 of file bcpot.C.

int BC_Pot::button_press_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 274 of file bcpot.C.

int BC_Pot::button_release_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 315 of file bcpot.C.

int BC_Pot::calculate_h  )  [static]
 

Definition at line 27 of file bcpot.C.

float BC_Pot::coords_to_angle int  x2,
int  y2
[private]
 

Definition at line 114 of file bcpot.C.

int BC_Pot::cursor_enter_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 249 of file bcpot.C.

int BC_Pot::cursor_leave_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 263 of file bcpot.C.

int BC_Pot::cursor_motion_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 335 of file bcpot.C.

virtual int BC_Pot::decrease_value  )  [inline, virtual]
 

Reimplemented in BC_FPot, BC_IPot, BC_QPot, and BC_PercentagePot.

Definition at line 37 of file bcpot.h.

int BC_Pot::draw  )  [private]
 

Definition at line 71 of file bcpot.C.

virtual char* BC_Pot::get_caption  )  [inline, virtual]
 

Reimplemented in BC_FPot, BC_IPot, BC_QPot, and BC_PercentagePot.

Definition at line 35 of file bcpot.h.

virtual float BC_Pot::get_percentage  )  [inline, virtual]
 

Reimplemented in BC_FPot, BC_IPot, BC_QPot, and BC_PercentagePot.

Definition at line 32 of file bcpot.h.

virtual int BC_Pot::handle_event  )  [inline, virtual]
 

Definition at line 34 of file bcpot.h.

virtual int BC_Pot::increase_value  )  [inline, virtual]
 

Reimplemented in BC_FPot, BC_IPot, BC_QPot, and BC_PercentagePot.

Definition at line 36 of file bcpot.h.

int BC_Pot::initialize  )  [virtual]
 

Reimplemented from BC_SubWindow.

Definition at line 32 of file bcpot.C.

int BC_Pot::keypress_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 217 of file bcpot.C.

float BC_Pot::percentage_to_angle float  percentage  )  [private]
 

Definition at line 85 of file bcpot.C.

virtual int BC_Pot::percentage_to_value float  percentage  )  [inline, virtual]
 

Reimplemented in BC_FPot, BC_IPot, BC_QPot, and BC_PercentagePot.

Definition at line 33 of file bcpot.h.

int BC_Pot::repeat_event int64_t  repeat_id  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 181 of file bcpot.C.

int BC_Pot::reposition_window int  x,
int  y
 

Definition at line 48 of file bcpot.C.

int BC_Pot::set_data VFrame **  data  )  [private]
 

Definition at line 55 of file bcpot.C.

void BC_Pot::set_use_caption int  value  ) 
 

Definition at line 66 of file bcpot.C.

void BC_Pot::show_value_tooltip  )  [private]
 

Definition at line 171 of file bcpot.C.


Friends And Related Function Documentation

friend class BC_FPot [friend]
 

Definition at line 24 of file bcpot.h.

friend class BC_IPot [friend]
 

Definition at line 25 of file bcpot.h.

friend class BC_PercentagePot [friend]
 

Definition at line 27 of file bcpot.h.

friend class BC_QPot [friend]
 

Definition at line 26 of file bcpot.h.


Member Data Documentation

float BC_Pot::angle_correction [private]
 

Definition at line 66 of file bcpot.h.

float BC_Pot::angle_offset [private]
 

Definition at line 63 of file bcpot.h.

char BC_Pot::caption[BCTEXTLEN] [private]
 

Definition at line 60 of file bcpot.h.

VFrame** BC_Pot::data [private]
 

Definition at line 58 of file bcpot.h.

BC_Pixmap* BC_Pot::images[POT_STATES] [private]
 

Definition at line 59 of file bcpot.h.

int64_t BC_Pot::keypress_tooltip_timer [private]
 

Definition at line 62 of file bcpot.h.

float BC_Pot::prev_angle [private]
 

Definition at line 66 of file bcpot.h.

float BC_Pot::start_cursor_angle [private]
 

Definition at line 64 of file bcpot.h.

float BC_Pot::start_needle_angle [private]
 

Definition at line 65 of file bcpot.h.

int BC_Pot::status [private]
 

Definition at line 61 of file bcpot.h.

char BC_Pot::temp_tooltip_text[BCTEXTLEN] [private]
 

Definition at line 60 of file bcpot.h.

int BC_Pot::use_caption [private]
 

Definition at line 67 of file bcpot.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:26:37 2006 for Guicast-svn by  doxygen 1.4.4