OpendTect-6_4  6.4
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
uiTextBrowser Class Reference
Inheritance diagram for uiTextBrowser:
[legend]

Public Types

enum  LinkBehavior { None, FollowLocal, FollowAll }
 
- Public Types inherited from uiObject
enum  SzPolicy {
  Undef, Small, Medium, Wide,
  SmallVar, MedVar, WideVar, SmallMax,
  MedMax, WideMax
}
 How should the object's size behave? Undef : use default. Small : 1 base sz. Medium : 2* base sz + 1. Wide : 4* base sz + 3. The xxVar options specify that the element may have a bigger internal preferred size. In that case, the maximum is taken. The xxMax options specify that the element should take all available space ( stretch = 2 ) More...
 

Public Member Functions

 uiTextBrowser (uiParent *, const char *nm="File browser", int maxlns=mUdf(int), bool forceplaintext=true, bool logmode=false)
 
 ~uiTextBrowser ()
 
void setText (const char *)
 
void setHtmlText (const char *)
 
void getHtmlText (BufferString &) const
 
const char * source () const
 
void setSource (const char *)
 
void setMaxLines (int)
 
void setLinkBehavior (LinkBehavior)
 
void backward ()
 
void forward ()
 
void home ()
 
void reload ()
 
void showToolTip (const char *)
 
void recordScrollPos ()
 
void restoreScrollPos ()
 
bool canGoForward ()
 
bool canGoBackward ()
 
const char * lastLink ()
 
- Public Member Functions inherited from uiTextEditBase
void readFromFile (const char *, int linecutlen=0)
 
bool saveToFile (const char *, int linelen=0, bool newlns=true)
 
const char * text () const
 
int nrLines () const
 
bool verticalSliderIsDown () const
 Returns false in absence of the slider. More...
 
int defaultWidth ()
 
void setDefaultWidth (int w)
 
int defaultHeight ()
 
void setDefaultHeight (int h)
 
bool isModified () const
 
void allowTextSelection (bool)
 
void hideFrame ()
 
void hideScrollBar (bool vertical)
 
void scrollToBottom ()
 
- Public Member Functions inherited from uiObject
 uiObject (uiParent *, const char *nm)
 
 uiObject (uiParent *, const char *nm, uiObjectBody &)
 
 ~uiObject ()
 
void setHSzPol (SzPolicy)
 
void setVSzPol (SzPolicy)
 
SzPolicy szPol (bool hor=true) const
 
virtual int width () const
 Actual size in pixels. More...
 
virtual int height () const
 Actual size in pixels. More...
 
virtual void setName (const char *)
 
void setToolTip (const uiString &)
 
const uiStringtoolTip () const
 
void translateText ()
 
void display (bool yn, bool shrink=false, bool maximized=false)
 
void setFocus ()
 
bool hasFocus () const
 
void disabFocus ()
 
virtual void setCursor (const MouseCursor &)
 
bool isCursorInside () const
 
virtual void setStyleSheet (const char *)
 
virtual Color backgroundColor () const
 
Color roBackgroundColor () const
 
virtual void setBackgroundColor (const Color &)
 
virtual void setBackgroundPixmap (const uiPixmap &)
 
virtual void setTextColor (const Color &)
 
void setSensitive (bool yn=true)
 
bool sensitive () const
 
bool visible () const
 
bool isDisplayed () const
 
int prefHNrPics () const
 
virtual void setPrefWidth (int)
 
void setPrefWidthInChar (int)
 
void setPrefWidthInChar (float)
 
void setMinimumWidth (int)
 
void setMaximumWidth (int)
 
int prefVNrPics () const
 
virtual void setPrefHeight (int)
 
void setPrefHeightInChar (int)
 
void setPrefHeightInChar (float)
 
void setMinimumHeight (int)
 
void setMaximumHeight (int)
 
void setStretch (int hor, int ver)
 Sets stretch factors for object If stretch factor is > 1, then object will already grow at pop-up. More...
 
void attach (constraintType, int margin=-1)
 attaches object to another In case the stretched... options are used, margin=-1 (default) stretches the object not to cross the border. margin=-2 stretches the object to fill the parent's border. This looks nice with separators. More...
 
void attach (constraintType, uiObject *, int margin=-1, bool reciprocal=true)
 
void attach (constraintType, uiParent *, int margin=-1, bool reciprocal=true)
 
void setFont (const uiFont &)
 
const uiFontfont () const
 
void setCaption (const uiString &)
 
void shallowRedraw (CallBacker *=0)
 
void deepRedraw (CallBacker *=0)
 
void reDraw (bool deep)
 
uiSize actualsize (bool include_border=true) const
 
uiParentparent ()
 
const uiParentparent () const
 
void reParent (uiParent *)
 
uiMainWinmainwin ()
 
 mQtclass (QWidget *) getWidget()
 
 mQtclass (QWidget *) qwidget()
 
const mQtclass (QWidget *) qwidget() const
 
virtual bool handleLongTabletPress ()
 
virtual const ObjectSet< uiBaseObject > * childList () const
 
void close ()
 

Public Attributes

Notifier< uiTextBrowsergoneForwardOrBack
 
Notifier< uiTextBrowserlinkHighlighted
 
Notifier< uiTextBrowserlinkClicked
 
Notifier< uiTextBrowserfileReOpened
 
- Public Attributes inherited from uiTextEditBase
Notifier< uiTextEditBasetextChanged
 
Notifier< uiTextEditBasesliderPressed
 
Notifier< uiTextEditBasesliderReleased
 
CNotifier< uiTextEditBase, bool > copyAvailable
 
- Public Attributes inherited from uiObject
Notifier< uiObjectclosed
 Triggered when object closes. More...
 
CNotifier< uiObject, uiRect & > setGeometry
 triggered when getting a new geometry A reference to the new geometry is passed which can be manipulated, before the geometry is actually set to the QWidget. More...
 

Protected Member Functions

virtual int maxLines () const
 
virtual mQtclass (QTextEdit &) qte()
 
void readTailCB (CallBacker *)
 
void sliderPressedCB (CallBacker *)
 
void sliderReleasedCB (CallBacker *)
 
void copyAvailableCB (CallBacker *)
 
void enableTailRead (bool yn)
 
- Protected Member Functions inherited from uiTextEditBase
 uiTextEditBase (uiParent *, const char *, uiObjectBody &)
 
const mQtclass (QTextEdit &) qte() const
 
- Protected Member Functions inherited from uiObject
virtual bool closeOK ()
 hook. Accepts/denies closing of window. More...
 
void triggerSetGeometry (const i_LayoutItem *, uiRect &)
 setGeometry should be triggered by this's layoutItem More...
 
void updateToolTip (CallBacker *=0)
 

Protected Attributes

BufferString textsrc_
 
BufferString lastlink_
 
bool cangoforw_
 
bool cangobackw_
 
bool forceplaintxt_
 
int maxlines_
 
Timertimer_
 
bool logviewmode_
 
od_int64 lastlinestartpos_
 
BufferString lastline_
 
- Protected Attributes inherited from uiTextEditBase
int defaultwidth_
 
int defaultheight_
 
BufferString result_
 
- Protected Attributes inherited from uiObject
uiString tooltip_
 
uiObjEventFilter * uiobjeventfilter_
 

Private Member Functions

 mODTextTranslationClass (uiTextBrowser) friend class i_BrowserMessenger
 
uiTextBrowserBody & mkbody (uiParent *, const char *, bool)
 

Private Attributes

uiTextBrowserBody * body_
 

Additional Inherited Members

- Static Public Member Functions inherited from uiObject
static void updateToolTips ()
 
static void setTabOrder (uiObject *first, uiObject *second)
 
static int baseFldSize ()
 
static int iconSize ()
 

Detailed Description

Member Enumeration Documentation

Enumerator
None 
FollowLocal 
FollowAll 

Constructor & Destructor Documentation

uiTextBrowser::uiTextBrowser ( uiParent ,
const char *  nm = "File browser",
int  maxlns = mUdf(int),
bool  forceplaintext = true,
bool  logmode = false 
)
uiTextBrowser::~uiTextBrowser ( )

Member Function Documentation

void uiTextBrowser::backward ( )
bool uiTextBrowser::canGoBackward ( )
inline
bool uiTextBrowser::canGoForward ( )
inline
void uiTextBrowser::copyAvailableCB ( CallBacker )
protected
void uiTextBrowser::enableTailRead ( bool  yn)
protected
void uiTextBrowser::forward ( )
void uiTextBrowser::getHtmlText ( BufferString ) const
void uiTextBrowser::home ( )
const char* uiTextBrowser::lastLink ( )
inline
virtual int uiTextBrowser::maxLines ( ) const
inlineprotectedvirtual

Reimplemented from uiTextEditBase.

uiTextBrowserBody& uiTextBrowser::mkbody ( uiParent ,
const char *  ,
bool   
)
private
uiTextBrowser::mODTextTranslationClass ( uiTextBrowser  )
private
virtual uiTextBrowser::mQtclass ( QTextEdit &  )
protectedvirtual

Implements uiTextEditBase.

void uiTextBrowser::readTailCB ( CallBacker )
protected
void uiTextBrowser::recordScrollPos ( )
void uiTextBrowser::reload ( )
void uiTextBrowser::restoreScrollPos ( )
void uiTextBrowser::setHtmlText ( const char *  )
void uiTextBrowser::setLinkBehavior ( LinkBehavior  )
void uiTextBrowser::setMaxLines ( int  )
void uiTextBrowser::setSource ( const char *  )
void uiTextBrowser::setText ( const char *  )
void uiTextBrowser::showToolTip ( const char *  )
void uiTextBrowser::sliderPressedCB ( CallBacker )
protected
void uiTextBrowser::sliderReleasedCB ( CallBacker )
protected
const char* uiTextBrowser::source ( ) const

Member Data Documentation

uiTextBrowserBody* uiTextBrowser::body_
private
bool uiTextBrowser::cangobackw_
protected
bool uiTextBrowser::cangoforw_
protected
Notifier<uiTextBrowser> uiTextBrowser::fileReOpened
bool uiTextBrowser::forceplaintxt_
protected
Notifier<uiTextBrowser> uiTextBrowser::goneForwardOrBack
BufferString uiTextBrowser::lastline_
protected
od_int64 uiTextBrowser::lastlinestartpos_
protected
BufferString uiTextBrowser::lastlink_
protected
Notifier<uiTextBrowser> uiTextBrowser::linkClicked
Notifier<uiTextBrowser> uiTextBrowser::linkHighlighted
bool uiTextBrowser::logviewmode_
protected
int uiTextBrowser::maxlines_
protected
BufferString uiTextBrowser::textsrc_
protected
Timer* uiTextBrowser::timer_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019