In file uta/programmer.doc:

namespace uta class MultiLineEdit : public LineEdit


Inheritance:


Public Classes

enum tag_t
Markup tags: in c-strings you may use the octal encodings: \177 \176 \175 \174 \173 \172

Public Fields

SigC::Signal1 <void, unsigned> linkActivated

Public Methods

MultiLineEdit(Widget* parent, int x, int y, int w, int h, const Font *font=0, bool readonly = true)
virtual ~MultiLineEdit()
void setWrapping(bool flag)
void setMaxLinesToStore(unsigned n)
virtual void addText(const char*)
add Text
virtual void timer()
unsigned visibleLines() const
virtual bool processEvent(const Event *event)
void setMarkupColor(int index, const Color& fontCol, const Color& fadeCol = Font::defaultFadeColor)
void setMarkupFont(int index, const Font* font)
void setImage(int index, const Surface* surface)

Protected Fields

bool wordWrap_
bool readOnly_
unsigned maxLinesToStore_
std::vector < std::vector<Color> > markup_
std::vector <const Font*> fonts_
std::vector <const Surface*> images_
typedef std::vector <TextChunk> TextLine
std::vector <TextLine> textLines_
std::vector <LinkArea> linkAreas_

Protected Methods

void breakText(std::string&, std::vector<std::string>&, unsigned)
void renderTextLines(const std::vector<std::string>&)
void preprocessLines(std::vector<std::string>& lines)
void newline(const char*)
jump to a new line
virtual void create()

Protected

typedef struct unsigned link
typedef struct unsigned id
typedef struct unsigned link
typedef struct unsigned id
typedef struct unsigned link
typedef struct unsigned id
typedef struct unsigned link
typedef struct unsigned id

Inherited from LineEdit:

Public Fields

SigC::Signal0 <void> keyInput
SigC::Signal1 <void, const char*> textChanged
SigC::Signal1 <void, const char*> enterPressed

Public Methods

const char* getText()
void setTextColor(const Color& fontCol, const Color& fadeCol = Font::defaultFadeColor)
virtual void setText(const char*)
virtual void clearText()

Protected Fields

int cursorPos_
bool cursor_
bool drawCursor_
bool textChanged_
bool blockInput_
Rect textCursor_
int cursorCount_
std::string text_
const Font* textFont_
Surface* textSurface_
std::vector <Color> fontPal_
bool justCursor_

Protected Methods

void drawCursor()
void deleteCursor()

Inherited from Widget:

Public Fields

SigC::Signal0 <void> deleted
SigC::Signal0 <void> exposed
SigC::Signal0 <void> hidden
SigC::Signal0 <void> enabled
SigC::Signal0 <void> disabled
SigC::Signal0 <void> gainedMouse
SigC::Signal0 <void> lostMouse
SigC::Signal0 <void> gainedKeyboard
SigC::Signal0 <void> lostKeyboard

Public Methods

void setBackground(const Surface* backgrnd, bool tileIt = true)
void setColor(const Color &color)
void setDisabledColor(const Color& color)
void setAlpha(unsigned char)
void setDisabledAlpha(unsigned char)
void setAutoDelete(bool yes)
void setTransparency(bool flag)
virtual void update()
void show()
void hide()
void close()
void enable()
void disable()
void forceUpdate(int)
virtual void blit()
bool handleEvent(const Event*)
bool needsUpdate()
bool isHidden() const
bool isClosed() const
bool isEnabled() const
bool hasFocus() const
bool isAutoDelete() const
Surface* insertChild(Widget* child)
void removeChild(Widget* child)
void deParent()
Rect getRect()
Rect globalCoord(Rect)
Rect localCoord(Rect)
void addUpdateRects(std::list<Rect> &updateRects)
bool releaseFocus()
bool grabFocus()
void setClickToFocus(bool val)
void setPointToFocus(bool val)
void nextFocus()
void prevFocus()

Protected Fields

Widget* parent_
Rect rect_
Rect window_
const Surface* backgrnd_
Surface* surface_
Surface* parentSurface_
Surface* backBuffer_
Color color_
bool haveFocus_
bool drawBackground_
bool needsUpdate_
bool needsReblit_
bool hidden_
bool hideRequest_
bool closed_
bool disabled_
bool disableRequest_
bool destroyWidget_
std::list <Widget*> childs_
std::list <Rect> dirtyRects_
bool tileBackground_
bool autoDelete_
bool activateOnMouse_
bool activateOnClick_
std::list <Widget*> focusList_
std::list <Widget*> ::iterator currentFocus_
bool mouseFocus_

Protected Methods

virtual void initMembers()
virtual void blit_complete(Surface*)
virtual void blit_dirty(Surface*)
void createChild()
bool acceptsFocus() const

Inherited from Rect:

Public Fields

static Rect invalid
static Rect empty

Public Methods

bool isEmpty() const
bool isValid() const
bool contains( const Point &p ) const
bool contains( const Rect &r ) const
virtual void translate( int dx, int dy )
virtual void warp(const Point &newUpperLeft)
virtual void resize(int w, int h)
Rect unite( const Rect &r ) const
Rect intersect( const Rect &r) const
const Point& upperLeft() const
const Point& lowerRight() const
int width() const
int height() const
friend bool operator==(const Rect &p, const Rect &q)
friend bool operator<(const Rect &p, const Rect &q)
friend ostream& operator<<(ostream& s, const Rect& p)

Protected Fields

Point upperLeft_
Point lowerRight_

Documentation

MultiLineEdit(Widget* parent, int x, int y, int w, int h, const Font *font=0, bool readonly = true)

virtual ~MultiLineEdit()

void setWrapping(bool flag)

void setMaxLinesToStore(unsigned n)

virtual void addText(const char*)
add Text

virtual void timer()

unsigned visibleLines() const

virtual bool processEvent(const Event *event)

void setMarkupColor(int index, const Color& fontCol, const Color& fadeCol = Font::defaultFadeColor)

void setMarkupFont(int index, const Font* font)

void setImage(int index, const Surface* surface)

enum tag_t
Markup tags: in c-strings you may use the octal encodings: \177 \176 \175 \174 \173 \172

SigC::Signal1 <void, unsigned> linkActivated

void breakText(std::string&, std::vector<std::string>&, unsigned)

void renderTextLines(const std::vector<std::string>&)

void preprocessLines(std::vector<std::string>& lines)

void newline(const char*)
jump to a new line. the parameter is always ignored !

virtual void create()

bool wordWrap_

bool readOnly_

unsigned maxLinesToStore_

std::vector < std::vector<Color> > markup_

std::vector <const Font*> fonts_

std::vector <const Surface*> images_

typedef struct unsigned link

typedef std::vector <TextChunk> TextLine

std::vector <TextLine> textLines_

typedef struct unsigned id

std::vector <LinkArea> linkAreas_


Direct child classes:
Terminal

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de