#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 |
Definition at line 105 of file dialog.h.
| tparagraph::tparagraph | ( | void | ) |
Definition at line 1438 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 1454 of file dialog.cpp.
References allocated, blocksize, cursor, cursorstat, line1num, linenum, next, prev, ps, searchcursorpos, size, and text.
| tparagraph::~tparagraph | ( | ) |
| void tparagraph::join | ( | void | ) |
Definition at line 1514 of file dialog.cpp.
References addtext(), checkcursorpos(), checkscrolldown(), checkscrollup(), cursor, display(), next, reflow(), size, and text.
Referenced by erasechar().
| void tparagraph::changesize | ( | int | newsize | ) |
| void tparagraph::addchar | ( | char | c | ) |
Definition at line 1555 of file dialog.cpp.
References allocated, changesize(), checkcursor(), checkcursorpos(), cursor, display(), reflow(), size, and text.
Referenced by tmessagedlg::run().
| pparagraph tparagraph::erasechar | ( | int | c | ) |
Definition at line 1575 of file dialog.cpp.
References checkcursor(), cursor, display(), join(), next, prev, reflow(), size, and text.
Referenced by tmessagedlg::run().
| void tparagraph::checkcursor | ( | void | ) |
Definition at line 1542 of file dialog.cpp.
References cursor, displaymessage(), size, and text.
Referenced by addchar(), checkcursorpos(), cut(), and erasechar().
| pparagraph tparagraph::movecursor | ( | int | dx, | |
| int | dy | |||
| ) |
Definition at line 1786 of file dialog.cpp.
References checkcursorpos(), cursor, cursorstat, cursorx, cursory, displaycursor(), linenum, next, normcursorx, prev, reflow(), searchcursorpos, and size.
Referenced by tmessagedlg::run().
| pparagraph tparagraph::cut | ( | void | ) |
Definition at line 1631 of file dialog.cpp.
References addtext(), checkcursor(), cursor, display(), displaycursor(), next, reflow(), size, text, and tparagraph().
Referenced by tmessagedlg::run().
| int tparagraph::reflow | ( | int | all = 1 |
) |
Definition at line 1681 of file dialog.cpp.
References activefontsettings, tfont::character, cursor, cursorx, cursory, tfontsettings::font, tfont::kerning, tfontsettings::length, linelength, linenum, normcursorx, searchcursorpos, size, tcharacter::size, text, and tcharacter::width.
Referenced by addchar(), cut(), erasechar(), join(), and movecursor().
| void tparagraph::display | ( | void | ) |
Definition at line 1885 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(), and join().
| void tparagraph::checkscrollup | ( | void | ) |
Definition at line 1654 of file dialog.cpp.
References checkscrollup(), display(), line1num, linenum, prev, and ps.
Referenced by checkcursorpos(), checkscrollup(), and join().
| void tparagraph::checkscrolldown | ( | void | ) |
Definition at line 1665 of file dialog.cpp.
References activefontsettings, bar(), checkscrolldown(), dblue, display(), tfontsettings::height, tfontsettings::length, line1num, linenum, maxlinenum, next, ps, winx1, and winy1.
Referenced by checkcursorpos(), checkscrolldown(), MultilineEdit::init(), and join().
| int tparagraph::checkcursorpos | ( | void | ) |
Definition at line 1608 of file dialog.cpp.
References checkcursor(), checkscrolldown(), checkscrollup(), cursor, cursory, display(), maxlinenum, and ps.
Referenced by addchar(), join(), and movecursor().
| void tparagraph::addtext | ( | const ASCString & | txt | ) |
Definition at line 1532 of file dialog.cpp.
References allocated, changesize(), size, and text.
Referenced by cut(), tmessagedlg::extracttext(), tmessagedlg::inserttext(), and join().
| void tparagraph::setpos | ( | int | x1, | |
| int | y1, | |||
| int | y2, | |||
| int | linepos, | |||
| int | linenum | |||
| ) |
| void tparagraph::displaycursor | ( | void | ) |
Definition at line 1854 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().
Definition at line 132 of file dialog.h.
Referenced by addchar(), checkcursor(), checkcursorpos(), cut(), display(), displaycursor(), erasechar(), MultilineEdit::init(), join(), movecursor(), reflow(), and tparagraph().
Definition at line 133 of file dialog.h.
Referenced by display(), displaycursor(), movecursor(), and tparagraph().
Definition at line 136 of file dialog.h.
Referenced by checkcursorpos(), displaycursor(), movecursor(), and reflow().
int tparagraph::maxlinenum [static] |
Definition at line 138 of file dialog.h.
Referenced by checkcursorpos(), checkscrolldown(), and setpos().
| int tparagraph::size |
Definition at line 140 of file dialog.h.
Referenced by addchar(), addtext(), changesize(), checkcursor(), cut(), erasechar(), join(), movecursor(), reflow(), and tparagraph().
Definition at line 141 of file dialog.h.
Referenced by addchar(), addtext(), changesize(), and tparagraph().
| char* tparagraph::text |
Definition at line 142 of file dialog.h.
Referenced by addchar(), addtext(), changesize(), checkcursor(), cut(), erasechar(), tmessagedlg::extracttext(), join(), reflow(), tparagraph(), and ~tparagraph().
int tparagraph::winy1 [static] |
Definition at line 144 of file dialog.h.
Referenced by checkscrolldown(), display(), displaycursor(), and setpos().
int tparagraph::winy2 [static] |
int tparagraph::winx1 [static] |
Definition at line 146 of file dialog.h.
Referenced by checkscrolldown(), display(), displaycursor(), and setpos().
Definition at line 148 of file dialog.h.
Referenced by checkscrolldown(), checkscrollup(), and tparagraph().
| struct { ... } tparagraph::ps |
Referenced by checkcursorpos(), checkscrolldown(), checkscrollup(), display(), displaycursor(), setpos(), and tparagraph().
Definition at line 154 of file dialog.h.
Referenced by checkscrolldown(), checkscrollup(), display(), movecursor(), reflow(), and tparagraph().
Definition at line 156 of file dialog.h.
Referenced by checkscrolldown(), cut(), erasechar(), tmessagedlg::extracttext(), join(), movecursor(), tparagraph(), tmessagedlg::~tmessagedlg(), and ~tparagraph().
Definition at line 157 of file dialog.h.
Referenced by checkscrollup(), erasechar(), movecursor(), tparagraph(), and ~tparagraph().
1.5.1