Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

tparagraph Class Reference

#include <dialog.h>

List of all members.

Public Member Functions

 tparagraph (void)
 tparagraph (pparagraph prv)
void join (void)
void changesize (int newsize)
void addchar (char c)
pparagraph erasechar (int c)
void checkcursor (void)
pparagraph movecursor (int dx, int dy)
pparagraph cut (void)
int reflow (int all=1)
void display (void)
void checkscrollup (void)
void checkscrolldown (void)
int checkcursorpos (void)
void addtext (const ASCString &txt)
 ~tparagraph ()
void setpos (int x1, int y1, int y2, int linepos, int linenum)
void displaycursor (void)

Public Attributes

int cursor
int cursorstat
int cursorx
int normcursorx
int cursory
int searchcursorpos
int size
int allocated
char * text
struct {
   int   line1num
ps
dynamic_array< char * > linestart
dynamic_array< int > linelength
int linenum
pparagraph next
pparagraph prev

Static Public Attributes

static int maxlinenum
static int winy1
static int winy2
static int winx1


Constructor & Destructor Documentation

tparagraph::tparagraph void   ) 
 

Definition at line 2252 of file dialog.cpp.

References allocated, blocksize, cursor, cursorstat, linenum, next, prev, ps, searchcursorpos, size, and text.

Referenced by cut().

tparagraph::tparagraph pparagraph  prv  ) 
 

Definition at line 2268 of file dialog.cpp.

References allocated, blocksize, cursor, cursorstat, linenum, next, prev, ps, searchcursorpos, size, and text.

tparagraph::~tparagraph  ) 
 

Definition at line 2296 of file dialog.cpp.

References prev, and text.


Member Function Documentation

void tparagraph::addchar char  c  ) 
 

Definition at line 2369 of file dialog.cpp.

References allocated, changesize(), checkcursor(), checkcursorpos(), cursor, display(), reflow(), size, and text.

Referenced by tmessagedlg::run().

void tparagraph::addtext const ASCString txt  ) 
 

Definition at line 2346 of file dialog.cpp.

References allocated, changesize(), size, and text.

Referenced by cut(), tmessagedlg::extracttext(), tmessagedlg::inserttext(), and join().

void tparagraph::changesize int  newsize  ) 
 

Definition at line 2312 of file dialog.cpp.

References allocated, blocksize, size, and text.

Referenced by addchar(), and addtext().

void tparagraph::checkcursor void   ) 
 

Definition at line 2356 of file dialog.cpp.

References cursor, displaymessage(), size, and text.

Referenced by addchar(), checkcursorpos(), cut(), and erasechar().

int tparagraph::checkcursorpos void   ) 
 

Definition at line 2422 of file dialog.cpp.

References checkcursor(), checkscrolldown(), checkscrollup(), cursor, cursory, display(), maxlinenum, and ps.

Referenced by addchar(), join(), movecursor(), and reflow().

void tparagraph::checkscrolldown void   ) 
 

Definition at line 2479 of file dialog.cpp.

References activefontsettings, bar(), checkscrolldown(), dblue, display(), tfontsettings::height, tfontsettings::length, linenum, maxlinenum, next, ps, winx1, and winy1.

Referenced by checkcursorpos(), checkscrolldown(), MultilineEdit::init(), join(), and reflow().

void tparagraph::checkscrollup void   ) 
 

Definition at line 2468 of file dialog.cpp.

References checkscrollup(), display(), linenum, prev, and ps.

Referenced by checkcursorpos(), checkscrollup(), join(), and reflow().

pparagraph tparagraph::cut void   ) 
 

Definition at line 2445 of file dialog.cpp.

References addtext(), asc_free(), checkcursor(), cursor, display(), displaycursor(), next, reflow(), size, strdup(), text, and tparagraph().

Referenced by tmessagedlg::run().

void tparagraph::display void   ) 
 

Definition at line 2699 of file dialog.cpp.

References activefontsettings, cursor, cursorstat, displaycursor(), tfontsettings::height, linelength, linenum, ps, showtext2(), winx1, winy1, and winy2.

Referenced by addchar(), checkcursorpos(), checkscrolldown(), checkscrollup(), cut(), erasechar(), MultilineEdit::init(), join(), and reflow().

void tparagraph::displaycursor void   ) 
 

Definition at line 2668 of file dialog.cpp.

References activefontsettings, blue, cursor, cursorstat, cursorx, cursory, tfontsettings::height, ps, winx1, winy1, winy2, and xorline().

Referenced by cut(), display(), movecursor(), and tmessagedlg::run().

pparagraph tparagraph::erasechar int  c  ) 
 

Definition at line 2389 of file dialog.cpp.

References checkcursor(), cursor, display(), join(), next, prev, reflow(), size, and text.

Referenced by tmessagedlg::run().

void tparagraph::join void   ) 
 

Definition at line 2328 of file dialog.cpp.

References addtext(), checkcursorpos(), checkscrolldown(), checkscrollup(), cursor, display(), next, reflow(), size, and text.

Referenced by erasechar().

pparagraph tparagraph::movecursor int  dx,
int  dy
 

Definition at line 2600 of file dialog.cpp.

References checkcursorpos(), cursor, cursorstat, cursorx, cursory, displaycursor(), linenum, next, normcursorx, prev, reflow(), searchcursorpos, and size.

Referenced by tmessagedlg::run().

int tparagraph::reflow int  all = 1  ) 
 

Definition at line 2495 of file dialog.cpp.

References activefontsettings, tfont::character, checkcursorpos(), checkscrolldown(), checkscrollup(), cursor, cursorx, cursory, display(), tfontsettings::font, tfont::kerning, tfontsettings::length, linelength, linenum, normcursorx, searchcursorpos, size, text, and tcharacter::width.

Referenced by addchar(), cut(), erasechar(), MultilineEdit::init(), join(), and movecursor().

void tparagraph::setpos int  x1,
int  y1,
int  y2,
int  linepos,
int  linenum
 

Definition at line 2690 of file dialog.cpp.

References maxlinenum, ps, winx1, winy1, and winy2.

Referenced by MultilineEdit::init().


Member Data Documentation

int tparagraph::allocated
 

Definition at line 139 of file dialog.h.

Referenced by addchar(), addtext(), changesize(), and tparagraph().

int tparagraph::cursor
 

Definition at line 130 of file dialog.h.

Referenced by addchar(), checkcursor(), checkcursorpos(), cut(), display(), displaycursor(), erasechar(), MultilineEdit::init(), join(), movecursor(), reflow(), and tparagraph().

int tparagraph::cursorstat
 

Definition at line 131 of file dialog.h.

Referenced by display(), displaycursor(), movecursor(), and tparagraph().

int tparagraph::cursorx
 

Definition at line 132 of file dialog.h.

Referenced by displaycursor(), movecursor(), and reflow().

int tparagraph::cursory
 

Definition at line 134 of file dialog.h.

Referenced by checkcursorpos(), displaycursor(), movecursor(), and reflow().

int tparagraph::line1num
 

Definition at line 146 of file dialog.h.

dynamic_array<int> tparagraph::linelength
 

Definition at line 150 of file dialog.h.

Referenced by display(), and reflow().

int tparagraph::linenum
 

Definition at line 152 of file dialog.h.

Referenced by checkscrolldown(), checkscrollup(), display(), movecursor(), reflow(), and tparagraph().

dynamic_array<char*> tparagraph::linestart
 

Definition at line 149 of file dialog.h.

int tparagraph::maxlinenum [static]
 

Definition at line 2250 of file dialog.cpp.

Referenced by checkcursorpos(), checkscrolldown(), and setpos().

pparagraph tparagraph::next
 

Definition at line 154 of file dialog.h.

Referenced by checkscrolldown(), cut(), erasechar(), tmessagedlg::extracttext(), MultilineEdit::init(), join(), movecursor(), tparagraph(), and tmessagedlg::~tmessagedlg().

int tparagraph::normcursorx
 

Definition at line 133 of file dialog.h.

Referenced by movecursor(), and reflow().

pparagraph tparagraph::prev
 

Definition at line 155 of file dialog.h.

Referenced by checkscrollup(), erasechar(), movecursor(), tparagraph(), and ~tparagraph().

struct { ... } tparagraph::ps
 

Referenced by checkcursorpos(), checkscrolldown(), checkscrollup(), display(), displaycursor(), setpos(), and tparagraph().

int tparagraph::searchcursorpos
 

Definition at line 135 of file dialog.h.

Referenced by movecursor(), reflow(), and tparagraph().

int tparagraph::size
 

Definition at line 138 of file dialog.h.

Referenced by addchar(), addtext(), changesize(), checkcursor(), cut(), erasechar(), join(), movecursor(), reflow(), and tparagraph().

char* tparagraph::text
 

Definition at line 140 of file dialog.h.

Referenced by addchar(), addtext(), changesize(), checkcursor(), cut(), erasechar(), tmessagedlg::extracttext(), join(), reflow(), tparagraph(), and ~tparagraph().

int tparagraph::winx1 [static]
 

Definition at line 2249 of file dialog.cpp.

Referenced by checkscrolldown(), display(), displaycursor(), and setpos().

int tparagraph::winy1 [static]
 

Definition at line 2247 of file dialog.cpp.

Referenced by checkscrolldown(), display(), displaycursor(), and setpos().

int tparagraph::winy2 [static]
 

Definition at line 2248 of file dialog.cpp.

Referenced by display(), displaycursor(), and setpos().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:21:44 2008 for Advanced Strategic Command by  doxygen 1.4.2