OpendTect-6_4  6.4
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
uiTabBar Class Reference

TabBar widget only. Normally you'd want to use the uiTabStack class. More...

Inheritance diagram for uiTabBar:
[legend]

Public Member Functions

 uiTabBar (uiParent *, const char *nm, const CallBack *cb=0)
 
int addTab (uiTab *)
 
void removeTab (uiTab *)
 
void removeTab (uiGroup *)
 
void setTabEnabled (int idx, bool)
 
bool isTabEnabled (int idx) const
 
void setCurrentTab (int idx)
 
int currentTabId () const
 
uiString textOfTab (int idx) const
 
int size () const
 
int indexOf (const uiGroup *) const
 
int indexOf (const uiTab *) const
 
uiGrouppage (int idx) const
 
- 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< uiTabBarselected
 
- 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

 ~uiTabBar ()
 
uiTabBarBody & mkbody (uiParent *, const char *)
 
- 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

uiTabBarBody * body_
 
ObjectSet< uiTabtabs_
 
- Protected Attributes inherited from uiObject
uiString tooltip_
 
uiObjEventFilter * uiobjeventfilter_
 

Friends

class i_tabbarMessenger
 
class uiTabStack
 

Additional Inherited Members

- 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...
 
- 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

TabBar widget only. Normally you'd want to use the uiTabStack class.

Constructor & Destructor Documentation

uiTabBar::uiTabBar ( uiParent ,
const char *  nm,
const CallBack cb = 0 
)
uiTabBar::~uiTabBar ( )
protected

Member Function Documentation

int uiTabBar::addTab ( uiTab )
int uiTabBar::currentTabId ( ) const
int uiTabBar::indexOf ( const uiGroup ) const
int uiTabBar::indexOf ( const uiTab ) const
bool uiTabBar::isTabEnabled ( int  idx) const
uiTabBarBody& uiTabBar::mkbody ( uiParent ,
const char *   
)
protected
uiGroup* uiTabBar::page ( int  idx) const
void uiTabBar::removeTab ( uiTab )
void uiTabBar::removeTab ( uiGroup )
void uiTabBar::setCurrentTab ( int  idx)
void uiTabBar::setTabEnabled ( int  idx,
bool   
)
int uiTabBar::size ( ) const
uiString uiTabBar::textOfTab ( int  idx) const

Friends And Related Function Documentation

friend class i_tabbarMessenger
friend
friend class uiTabStack
friend

Member Data Documentation

uiTabBarBody* uiTabBar::body_
protected
Notifier<uiTabBar> uiTabBar::selected
ObjectSet<uiTab> uiTabBar::tabs_
protected

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