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

Public Types

enum  ArrowType {
  NoArrow, UpArrow, DownArrow, LeftArrow,
  RightArrow
}
 
enum  PopupMode { DelayedPopup, MenuButtonPopup, InstantPopup }
 

Public Member Functions

 uiToolButton (uiParent *, const uiToolButtonSetup &)
 
 uiToolButton (uiParent *, const char *filenm, const uiString &tooltip, const CallBack &)
 
 uiToolButton (uiParent *, ArrowType, const uiString &tooltip, const CallBack &)
 
 ~uiToolButton ()
 
bool isOn () const
 
void setOn (bool yn=true)
 
void setToggleButton (bool yn=true)
 
bool isToggleButton () const
 
void setArrowType (ArrowType)
 
void setShortcut (const char *)
 
void setMenu (uiMenu *, PopupMode=MenuButtonPopup)
 Menu becomes mine. More...
 
const uiMenumenu () const
 
void setID (int i)
 
int id () const
 
void click ()
 

Static Public Member Functions

static uiToolButtongetStd (uiParent *, OD::StdActionType, const CallBack &, const uiString &ttip)
 

Private Member Functions

uiToolButtonBody & mkbody (uiParent *, const char *icon_identifier, const uiString &)
 

Private Attributes

uiToolButtonBody * tbbody_
 
int id_
 
uiMenuuimenu_
 

Detailed Description

Member Enumeration Documentation

Enumerator
NoArrow 
UpArrow 
DownArrow 
LeftArrow 
RightArrow 
Enumerator
DelayedPopup 
MenuButtonPopup 
InstantPopup 

Constructor & Destructor Documentation

uiToolButton::uiToolButton ( uiParent ,
const uiToolButtonSetup  
)
uiToolButton::uiToolButton ( uiParent ,
const char *  filenm,
const uiString tooltip,
const CallBack  
)
uiToolButton::uiToolButton ( uiParent ,
ArrowType  ,
const uiString tooltip,
const CallBack  
)
uiToolButton::~uiToolButton ( )

Member Function Documentation

void uiToolButton::click ( )
static uiToolButton* uiToolButton::getStd ( uiParent ,
OD::StdActionType  ,
const CallBack ,
const uiString ttip 
)
static
int uiToolButton::id ( ) const
inline
bool uiToolButton::isOn ( ) const
bool uiToolButton::isToggleButton ( ) const
const uiMenu* uiToolButton::menu ( ) const
inline
uiToolButtonBody& uiToolButton::mkbody ( uiParent ,
const char *  icon_identifier,
const uiString  
)
private
void uiToolButton::setArrowType ( ArrowType  )
void uiToolButton::setID ( int  i)
inline
void uiToolButton::setMenu ( uiMenu ,
PopupMode  = MenuButtonPopup 
)

Menu becomes mine.

void uiToolButton::setOn ( bool  yn = true)
void uiToolButton::setShortcut ( const char *  )
void uiToolButton::setToggleButton ( bool  yn = true)

Member Data Documentation

int uiToolButton::id_
private
uiToolButtonBody* uiToolButton::tbbody_
private
uiMenu* uiToolButton::uimenu_
private

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