Advanced Strategic Command
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tparagraph Class Reference

#include <dialog.h>

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
 

Detailed Description

Definition at line 105 of file dialog.h.

Constructor & Destructor Documentation

tparagraph::tparagraph ( void  )

Definition at line 1436 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 1452 of file dialog.cpp.

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

tparagraph::~tparagraph ( )

Definition at line 1480 of file dialog.cpp.

References next, prev, and text.

Member Function Documentation

void tparagraph::addchar ( char  c)

Definition at line 1553 of file dialog.cpp.

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

void tparagraph::addtext ( const ASCString txt)

Definition at line 1530 of file dialog.cpp.

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

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

void tparagraph::changesize ( int  newsize)

Definition at line 1496 of file dialog.cpp.

References allocated, blocksize, size, and text.

Referenced by addchar(), and addtext().

void tparagraph::checkcursor ( void  )

Definition at line 1540 of file dialog.cpp.

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

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

int tparagraph::checkcursorpos ( void  )

Definition at line 1606 of file dialog.cpp.

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

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

void tparagraph::checkscrolldown ( void  )
void tparagraph::checkscrollup ( void  )

Definition at line 1652 of file dialog.cpp.

References prev, and ps.

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

pparagraph tparagraph::cut ( void  )

Definition at line 1629 of file dialog.cpp.

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

void tparagraph::display ( void  )
void tparagraph::displaycursor ( void  )

Definition at line 1852 of file dialog.cpp.

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

Referenced by cut(), display(), and movecursor().

pparagraph tparagraph::erasechar ( int  c)

Definition at line 1573 of file dialog.cpp.

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

void tparagraph::join ( void  )

Definition at line 1512 of file dialog.cpp.

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

Referenced by erasechar().

pparagraph tparagraph::movecursor ( int  dx,
int  dy 
)

Definition at line 1784 of file dialog.cpp.

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

int tparagraph::reflow ( int  all = 1)
void tparagraph::setpos ( int  x1,
int  y1,
int  y2,
int  linepos,
int  linenum 
)

Definition at line 1874 of file dialog.cpp.

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

Member Data Documentation

int tparagraph::allocated

Definition at line 141 of file dialog.h.

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

int tparagraph::cursor
int tparagraph::cursorstat

Definition at line 133 of file dialog.h.

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

int tparagraph::cursorx

Definition at line 134 of file dialog.h.

Referenced by displaycursor(), and reflow().

int tparagraph::cursory

Definition at line 136 of file dialog.h.

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

int tparagraph::line1num

Definition at line 148 of file dialog.h.

dynamic_array<int> tparagraph::linelength

Definition at line 152 of file dialog.h.

Referenced by display(), and reflow().

int tparagraph::linenum

Definition at line 154 of file dialog.h.

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

dynamic_array<char*> tparagraph::linestart

Definition at line 151 of file dialog.h.

int tparagraph::maxlinenum
static

Definition at line 138 of file dialog.h.

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

pparagraph tparagraph::next

Definition at line 156 of file dialog.h.

Referenced by checkscrolldown(), cut(), erasechar(), join(), movecursor(), tparagraph(), and ~tparagraph().

int tparagraph::normcursorx

Definition at line 135 of file dialog.h.

Referenced by movecursor(), and reflow().

pparagraph tparagraph::prev

Definition at line 157 of file dialog.h.

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

struct { ... } tparagraph::ps
int tparagraph::searchcursorpos

Definition at line 137 of file dialog.h.

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

int tparagraph::size
char* tparagraph::text
int tparagraph::winx1
static

Definition at line 146 of file dialog.h.

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

int tparagraph::winy1
static

Definition at line 144 of file dialog.h.

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

int tparagraph::winy2
static

Definition at line 145 of file dialog.h.

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


The documentation for this class was generated from the following files: