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

debug_ctrl.h

Go to the documentation of this file.
00001 // Author:  Daniel Albuschat ( daniel@viming.de ) 
00002 // File:    debug_ctrl.h
00003 // Date:    Fri Apr 18 15:30:07 20030
00004 // Content:  
00005 
00006 #ifdef DEBUG
00007 #ifndef DEBUG_CTRL_H_685220012
00008 #define DEBUG_CTRL_H_685220012
00009 #include "cursive.h"
00010 #include <fstream>
00011 
00012 namespace crs {
00013   class debug_ctrl: public focused_ctrl {
00014     private:
00015       std::ofstream *debug_file;
00016       std::list< std::string > strings;
00017       std::list< std::string >::iterator current;
00018       base_control *upperWin;
00019     protected:
00020       virtual void doMove( const position &old_pos, const position &new_pos );
00021     public:
00022       void setDebugStr( std::string text );
00023       debug_ctrl( oocurses &ocrs );
00024       virtual ~debug_ctrl();
00025       virtual void draw();
00026       virtual bool keyPress( const int key );
00027       base_control *getUpperWin();
00028   };
00029 }
00030 
00031 #endif
00032 
00033 #endif

Generated on Mon May 19 20:36:03 2003 for cursive by doxygen1.2.18