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

ht_button Class Reference

#include <htdialog.h>

Inheritance diagram for ht_button:

ht_view Object List of all members.

Public Member Functions

void init (bounds *b, const char *text, int value)
virtual void done ()
virtual void draw ()
virtual void handlemsg (htmsg *msg)
virtual void push ()

Protected Member Functions

virtual char * defaultpalette ()

Protected Attributes

int value
int pressed
char * text
char * magicchar
ht_key shortcut1
ht_key shortcut2

Member Function Documentation

char * ht_button::defaultpalette  )  [protected, virtual]
 

Reimplemented from ht_view.

Definition at line 1274 of file htdialog.cc.

References palkey_generic_dialog_default.

void ht_button::done  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 1268 of file htdialog.cc.

References ht_view::done(), and text.

void ht_button::draw  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 1279 of file htdialog.cc.

References ht_view::buf_print(), ht_view::buf_printchar(), CHAR_FILLED_HL, CHAR_FILLED_HU, ht_view::fill(), ht_view::getcolor(), magicchar, palidx_generic_button_focused, palidx_generic_button_shadow, palidx_generic_button_shortcut, palidx_generic_button_unfocused, and text.

void ht_button::handlemsg htmsg *  msg  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 1296 of file htdialog.cc.

References clearmsg(), ht_view::dirtyview(), ht_view::handlemsg(), K_INVALID, K_Return, K_Space, msg_keypressed, mt_empty, mt_postprocess, push(), shortcut1, and shortcut2.

void ht_button::init bounds *  b,
const char *  text,
int  value
 

Definition at line 1249 of file htdialog.cc.

References ht_key, ht_metakey(), ht_strdup(), Object::init(), K_INVALID, magicchar, pressed, shortcut1, shortcut2, text, value, VIEW_DEBUG_NAME, VO_OWNBUFFER, VO_POSTPROCESS, and VO_SELECTABLE.

Referenced by ht_uformat_viewer::address_input(), eval_dialog(), imsgbox(), ht_blockop_dialog::init(), and inputboxrect().

void ht_button::push  )  [virtual]
 

Definition at line 1323 of file htdialog.cc.

References app, msg_button_pressed, pressed, ht_view::sendmsg(), and value.

Referenced by handlemsg().


Member Data Documentation

char* ht_button::magicchar [protected]
 

Definition at line 233 of file htdialog.h.

Referenced by draw(), and init().

int ht_button::pressed [protected]
 

Definition at line 231 of file htdialog.h.

Referenced by init(), and push().

ht_key ht_button::shortcut1 [protected]
 

Definition at line 234 of file htdialog.h.

Referenced by handlemsg(), and init().

ht_key ht_button::shortcut2 [protected]
 

Definition at line 235 of file htdialog.h.

Referenced by handlemsg(), and init().

char* ht_button::text [protected]
 

Definition at line 232 of file htdialog.h.

Referenced by done(), draw(), and init().

int ht_button::value [protected]
 

Definition at line 230 of file htdialog.h.

Referenced by init(), and push().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:15:56 2004 by doxygen 1.3.5