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

ht_window Class Reference

#include <htobj.h>

Inheritance diagram for ht_window:

ht_group ht_view Object ht_dialog ht_file_window ht_help_window ht_progress_indicator ht_project_window FileBrowser ht_app ht_blockop_dialog ht_listpopup_dialog ht_menu_window ht_search_dialog ht_history_popup_dialog ht_replace_dialog List of all members.

Public Member Functions

void init (bounds *b, const char *desc, UINT framestyle, UINT number=0)
virtual void done ()
virtual void draw ()
virtual UINT getnumber ()
virtual void handlemsg (htmsg *msg)
virtual void insert (ht_view *view)
virtual int load (ht_object_stream *s)
virtual OBJECT_ID object_id () const
virtual void receivefocus ()
virtual void releasefocus ()
virtual void redraw ()
virtual void resize (int rw, int rh)
virtual void setnumber (UINT number)
virtual void store (ht_object_stream *s)
void getclientarea (bounds *b)
ht_framegetframe ()
void setframe (ht_frame *frame)
void sethscrollbar (ht_scrollbar *scrollbar)
void setpindicator (ht_text *pindicator)
void settitle (char *title)
void setvscrollbar (ht_scrollbar *scrollbar)

Protected Member Functions

bool next_action_state ()

Protected Attributes

ht_frameframe
ht_scrollbarhscrollbar
ht_scrollbarvscrollbar
ht_textpindicator
UINT number
int action_state

Member Function Documentation

void ht_window::done  )  [virtual]
 

Reimplemented from ht_group.

Reimplemented in ht_blockop_dialog, ht_file_window, ht_project_window, ht_app, ht_dialog, ht_listpopup_dialog, ht_menu_window, ht_search_dialog, and ht_replace_dialog.

Definition at line 1635 of file htobj.cc.

References ht_group::done(), hscrollbar, NULL, pindicator, and vscrollbar.

Referenced by ht_app::create_window_help(), ht_app::delete_window(), ht_dialog::done(), ht_file_window::done(), ht_project_window::done(), execute_process(), and ht_uformat_viewer::vsearch().

void ht_window::draw  )  [virtual]
 

Reimplemented from ht_view.

Reimplemented in ht_app, and ht_dialog.

Definition at line 1643 of file htobj.cc.

References ht_view::clear(), ht_view::getcolor(), palidx_generic_body, and vcp.

void ht_window::getclientarea bounds *  b  ) 
 

Definition at line 1649 of file htobj.cc.

References frame, and ht_view::getbounds().

Referenced by ht_listpopup_dialog::init().

ht_frame * ht_window::getframe  ) 
 

Definition at line 1665 of file htobj.cc.

References frame.

Referenced by ht_app::create_window_ofm().

UINT ht_window::getnumber  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 1660 of file htobj.cc.

References number, and UINT.

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

Reimplemented from ht_group.

Reimplemented in ht_help_window, ht_file_window, ht_project_window, ht_app, ht_dialog, ht_menu_window, ht_search_dialog, and ht_replace_dialog.

Definition at line 1670 of file htobj.cc.

References action_state, app, clearmsg(), cmd_window_resizemove, cmd_window_switch_resizemove, ht_view::dirtyview(), ht_view::getminbounds(), ht_group::handlemsg(), K_Control_Down, K_Control_F5, K_Control_Left, K_Control_R, K_Control_Right, K_Control_Up, K_Down, K_Escape, K_Left, K_Return, K_Right, K_Space, K_Up, ht_group::move(), msg_dirtyview, msg_keypressed, next_action_state(), resize(), ht_view::sendmsg(), ht_view::size, VO_MOVE, VO_RESIZE, WAC_MOVE, WAC_NORMAL, and WAC_RESIZE.

Referenced by ht_dialog::handlemsg(), ht_file_window::handlemsg(), ht_project_window::handlemsg(), and ht_help_window::handlemsg().

void ht_window::init bounds *  b,
const char *  desc,
UINT  framestyle,
UINT  number = 0
 

Definition at line 1617 of file htobj.cc.

References action_state, frame, hscrollbar, ht_frame::init(), Object::init(), NULL, number, pindicator, setframe(), UINT, VIEW_DEBUG_NAME, VO_BROWSABLE, VO_SELBOUND, VO_SELECTABLE, vscrollbar, and WAC_NORMAL.

Referenced by ht_app::create_window_clipboard(), ht_app::create_window_help(), ht_app::create_window_log(), ht_app::create_window_ofm(), and ht_app::create_window_term().

void ht_window::insert ht_view view  )  [virtual]
 

Reimplemented from ht_group.

Definition at line 1766 of file htobj.cc.

References frame, ht_group::insert(), and ht_view::move().

Referenced by ht_uformat_viewer::address_input(), ht_app::create_window_clipboard(), ht_app::create_window_file_bin(), ht_app::create_window_file_text(), ht_app::create_window_help(), ht_app::create_window_log(), ht_app::create_window_ofm(), ht_app::create_window_term(), dialog_assemble(), palette_entry::editdialog(), eval_dialog(), ht_aviewer::exportFileDialog(), file_new_dialog(), file_open_dialog(), ht_aviewer::generateOutputDialog(), imsgbox(), ht_replace_dialog::init(), ht_search_dialog::init(), ht_menu_window::init(), ht_progress_indicator::init(), ht_app::init(), ht_project_window::init(), FileBrowser::init(), ht_blockop_dialog::init(), ht_listpopup_dialog::init_text_listbox(), ht_history_popup_dialog::init_text_listbox(), inputboxrect(), ht_text_viewer::popup_change_highlight(), ht_app::popup_view_list(), ht_app::popup_window_list(), ht_uformat_viewer::ref_desc(), ht_uformat_viewer::ref_flags(), setframe(), sethscrollbar(), setpindicator(), setvscrollbar(), ht_text_editor::show_protocol(), ht_aviewer::showCallChain(), ht_aviewer::showComments(), ht_aviewer::showInfo(), ht_aviewer::showSymbols(), ht_aviewer::showXRefs(), and srt_x86().

int ht_window::load ht_object_stream s  )  [virtual]
 

loads object from object stream.

Returns:
ht_stream errorcode

Reimplemented from ht_group.

Reimplemented in ht_app.

Definition at line 1772 of file htobj.cc.

References ht_layer_stream::get_error(), and ht_group::load().

bool ht_window::next_action_state  )  [protected]
 

Definition at line 1778 of file htobj.cc.

References action_state, frame, FST_FOCUSED, FST_MOVE, FST_RESIZE, ht_frame::setframestate(), VO_MOVE, VO_RESIZE, WAC_MOVE, WAC_NORMAL, WAC_RESIZE, and wstate_count.

Referenced by handlemsg().

OBJECT_ID ht_window::object_id  )  const [virtual]
 

Returns:
unique object id.

Reimplemented from ht_group.

Reimplemented in ht_app.

Definition at line 1805 of file htobj.cc.

References ATOM_HT_WINDOW.

void ht_window::receivefocus  )  [virtual]
 

Reimplemented from ht_group.

Definition at line 1810 of file htobj.cc.

References app, ht_context_menu::done(), frame, FS_THICK, ht_frame::getstyle(), msg_contextmenuquery, msg_dirtyview, msg_retval, mt_empty, ht_group::receivefocus(), ht_view::sendmsg(), ht_menu::set_local_menu(), and ht_frame::setstyle().

void ht_window::redraw  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 1835 of file htobj.cc.

References buf, ht_scrollbar::disable(), ht_scrollbar::enable(), gsi_hscrollbar, gsi_pindicator, gsi_vscrollbar, hscrollbar, msg_get_scrollinfo, mt_empty, pindicator, gsi_scrollbar_t::psize, gsi_scrollbar_t::pstart, ht_view::redraw(), ht_view::sendmsg(), ht_scrollbar::setpos(), ht_text::settext(), and vscrollbar.

void ht_window::releasefocus  )  [virtual]
 

Reimplemented from ht_group.

Definition at line 1889 of file htobj.cc.

References app, ht_menu::delete_local_menu(), frame, FS_THICK, ht_frame::getstyle(), msg_dirtyview, ht_group::releasefocus(), ht_view::sendmsg(), and ht_frame::setstyle().

void ht_window::resize int  rw,
int  rh
[virtual]
 

Reimplemented from ht_group.

Definition at line 1901 of file htobj.cc.

References ht_group::resize().

Referenced by handlemsg().

void ht_window::setframe ht_frame frame  ) 
 

Definition at line 1906 of file htobj.cc.

References ht_frame::done(), frame, FS_MOVE, FS_RESIZE, ht_frame::getstyle(), insert(), NULL, ht_group::remove(), UINT, VO_MOVE, and VO_RESIZE.

Referenced by ht_menu::execute_menu(), execute_submenu(), init(), and ht_app::init().

void ht_window::sethscrollbar ht_scrollbar scrollbar  ) 
 

Definition at line 1933 of file htobj.cc.

References hscrollbar, insert(), ht_group::putontop(), and ht_group::remove().

Referenced by ht_app::create_window_project().

void ht_window::setnumber UINT  number  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 1926 of file htobj.cc.

References ht_view::dirtyview(), frame, number, ht_frame::setnumber(), and UINT.

Referenced by ht_app::insert_window().

void ht_window::setpindicator ht_text pindicator  ) 
 

Definition at line 1941 of file htobj.cc.

References insert(), pindicator, ht_group::putontop(), and ht_group::remove().

Referenced by ht_app::create_window_clipboard(), ht_app::create_window_file_bin(), ht_app::create_window_file_text(), ht_app::create_window_help(), and ht_app::create_window_term().

void ht_window::settitle char *  title  ) 
 

Definition at line 1949 of file htobj.cc.

References frame, ht_strdup(), and ht_frame::settext().

Referenced by ht_app::handlemsg(), and ht_project_window::handlemsg().

void ht_window::setvscrollbar ht_scrollbar scrollbar  ) 
 

Definition at line 1956 of file htobj.cc.

References insert(), ht_group::putontop(), ht_group::remove(), and vscrollbar.

Referenced by ht_app::create_window_file_bin(), ht_app::create_window_file_text(), ht_app::create_window_help(), ht_app::create_window_log(), and ht_app::create_window_term().

void ht_window::store ht_object_stream s  )  [virtual]
 

stores object.

Reimplemented from ht_group.

Reimplemented in ht_app.

Definition at line 1964 of file htobj.cc.

References ht_group::store().


Member Data Documentation

int ht_window::action_state [protected]
 

Definition at line 382 of file htobj.h.

Referenced by handlemsg(), init(), and next_action_state().

ht_frame* ht_window::frame [protected]
 

Definition at line 376 of file htobj.h.

Referenced by getclientarea(), getframe(), init(), insert(), next_action_state(), receivefocus(), releasefocus(), setframe(), setnumber(), and settitle().

ht_scrollbar* ht_window::hscrollbar [protected]
 

Definition at line 377 of file htobj.h.

Referenced by done(), init(), redraw(), and sethscrollbar().

UINT ht_window::number [protected]
 

Definition at line 380 of file htobj.h.

Referenced by getnumber(), init(), and setnumber().

ht_text* ht_window::pindicator [protected]
 

Definition at line 379 of file htobj.h.

Referenced by done(), init(), redraw(), and setpindicator().

ht_scrollbar* ht_window::vscrollbar [protected]
 

Definition at line 378 of file htobj.h.

Referenced by done(), init(), redraw(), and setvscrollbar().


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