Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

crs::debug_ctrl Class Reference

#include <debug_ctrl.h>

Inheritance diagram for crs::debug_ctrl:

crs::focused_ctrl crs::base_control List of all members.

Public Methods

void setDebugStr (std::string text)
 debug_ctrl (oocurses &ocrs)
virtual ~debug_ctrl ()
virtual void draw ()
virtual bool keyPress (const int key)
base_controlgetUpperWin ()

Protected Methods

virtual void doMove (const position &old_pos, const position &new_pos)

Private Attributes

std::ofstream * debug_file
std::list< std::string > strings
std::list< std::string
>::iterator 
current
base_controlupperWin

Constructor & Destructor Documentation

crs::debug_ctrl::debug_ctrl oocurses &    ocrs
 

crs::debug_ctrl::~debug_ctrl   [virtual]
 

Definition at line 16 of file debug_ctrl.cpp.

References debug_file, and upperWin.


Member Function Documentation

void crs::debug_ctrl::doMove const position   old_pos,
const position   new_pos
[protected, virtual]
 

Reimplemented from crs::base_control.

Definition at line 35 of file debug_ctrl.cpp.

References debug_file, crs::position::x, and crs::position::y.

void crs::debug_ctrl::draw   [virtual]
 

Reimplemented from crs::base_control.

Definition at line 21 of file debug_ctrl.cpp.

References crs::base_control::buffer, current, crs::drawing_area::drawHLine(), crs::drawing_area::fillRect(), crs::base_control::mHeight, crs::base_control::mWidth, crs::drawing_area::putPixel(), crs::base_control::setText(), and strings.

base_control * crs::debug_ctrl::getUpperWin  
 

Definition at line 40 of file debug_ctrl.cpp.

References upperWin.

bool crs::debug_ctrl::keyPress const int    key [virtual]
 

Reimplemented from crs::base_control.

Definition at line 44 of file debug_ctrl.cpp.

References current, strings, upperWin, and crs::base_control::visible.

void crs::debug_ctrl::setDebugStr std::string    text
 

Definition at line 30 of file debug_ctrl.cpp.

References current, debug_file, and strings.


Member Data Documentation

std::list< std::string >::iterator crs::debug_ctrl::current [private]
 

Definition at line 17 of file debug_ctrl.h.

Referenced by draw(), keyPress(), and setDebugStr().

std::ofstream* crs::debug_ctrl::debug_file [private]
 

Definition at line 15 of file debug_ctrl.h.

Referenced by doMove(), setDebugStr(), and ~debug_ctrl().

std::list< std::string > crs::debug_ctrl::strings [private]
 

Definition at line 16 of file debug_ctrl.h.

Referenced by draw(), keyPress(), and setDebugStr().

base_control* crs::debug_ctrl::upperWin [private]
 

Definition at line 18 of file debug_ctrl.h.

Referenced by getUpperWin(), keyPress(), and ~debug_ctrl().


The documentation for this class was generated from the following files:
Generated on Mon May 19 20:36:04 2003 for cursive by doxygen1.2.18