15 #include "uibasemod.h" 20 class uiTextBrowserBody;
28 void readFromFile(
const char*,
int linecutlen=0);
29 bool saveToFile(
const char*,
int linelen=0,
bool newlns=
true);
31 const char* text()
const;
33 bool verticalSliderIsDown()
const;
42 bool isModified()
const;
43 void allowTextSelection(
bool);
46 void hideScrollBar(
bool vertical);
47 void scrollToBottom();
57 virtual mQtclass(QTextEdit&) qte() = 0;
69 friend class ScrollBarMessenger;
87 void setText(
const char*,
bool trigger_notif);
97 uiTextEditBody& mkbody(
uiParent*,
const char*,
bool);
108 int maxlns=
mUdf(
int),
109 bool forceplaintext=
true,
113 void setText(
const char*);
114 void setHtmlText(
const char*);
116 const char* source()
const;
117 void setSource(
const char*);
118 void setMaxLines(
int);
127 void showToolTip(
const char*);
128 void recordScrollPos();
129 void restoreScrollPos();
157 void enableTailRead(
bool yn);
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: uitextedit.h:74
BufferString textsrc_
Definition: uitextedit.h:142
virtual int maxLines() const
Definition: uitextedit.h:63
Notifier< uiTextEditBase > textChanged
Definition: uitextedit.h:49
#define mQtclass(cls)
Definition: commondefs.h:229
void setText(const char *txt)
Does not trigger notification.
Definition: uitextedit.h:80
Notifier< uiTextEditBase > sliderReleased
Definition: uitextedit.h:51
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
#define od_int64
Definition: plftypes.h:36
Notifier< uiTextBrowser > linkHighlighted
Definition: uitextedit.h:136
uiTextBrowserBody * body_
Definition: uitextedit.h:166
The base class for most UI elements.
Definition: uiobj.h:38
bool canGoForward()
Definition: uitextedit.h:131
Definition: uistring.h:89
Definition: uiparent.h:26
int maxlines_
Definition: uitextedit.h:147
void setDefaultWidth(int w)
Definition: uitextedit.h:37
bool cangobackw_
Definition: uitextedit.h:145
friend class uiTextBrowserBody
Definition: i_qtextedit.h:102
void setDefaultHeight(int h)
Definition: uitextedit.h:40
bool append(TypeSetBase< T, I > &to, const TypeSetBase< S, J > &from)
append allowing a different type to be merged into set
Definition: typeset.h:198
bool canGoBackward()
Definition: uitextedit.h:132
BufferString lastlink_
Definition: uitextedit.h:143
bool cangoforw_
Definition: uitextedit.h:144
mFDQtclass(QTextEdit) class Timer
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
Definition: uitextedit.h:25
bool forceplaintxt_
Definition: uitextedit.h:146
Notifier< uiTextEditBase > sliderPressed
Definition: uitextedit.h:50
Definition: uitextedit.h:120
virtual int maxLines() const
Definition: uitextedit.h:149
int defaultwidth_
Definition: uitextedit.h:61
CNotifier< uiTextEditBase, bool > copyAvailable
Definition: uitextedit.h:52
Definition: uitextedit.h:102
Notifier< uiTextBrowser > linkClicked
Definition: uitextedit.h:137
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
int defaultHeight()
Definition: uitextedit.h:39
int defaultheight_
Definition: uitextedit.h:62
bool logviewmode_
Definition: uitextedit.h:160
Timer * timer_
Definition: uitextedit.h:159
BufferString result_
Definition: uitextedit.h:65
Helper class for uiTextBrowser to relay Qt's messages.
Definition: i_qtextedit.h:99
int defaultWidth()
Definition: uitextedit.h:36
uiTextEditBody * body_
Definition: uitextedit.h:96
Timer class.
Definition: timer.h:25
LinkBehavior
Definition: uitextedit.h:120
od_int64 lastlinestartpos_
Definition: uitextedit.h:161
const char * lastLink()
Definition: uitextedit.h:133
Notifier< uiTextBrowser > goneForwardOrBack
Definition: uitextedit.h:135
Notifier< uiTextBrowser > fileReOpened
Definition: uitextedit.h:138
BufferString lastline_
Definition: uitextedit.h:162