OpendTect-6_4  6.4
Public Member Functions | Private Member Functions | Private Attributes | List of all members
uiPushButton Class Reference

is the base class for all buttons. More...

Inheritance diagram for uiPushButton:
[legend]

Public Member Functions

 uiPushButton (uiParent *, const uiString &txt, bool immediate)
 
 uiPushButton (uiParent *, const uiString &txt, const CallBack &, bool immediate)
 
 uiPushButton (uiParent *, const uiString &txt, const uiPixmap &, bool immediate)
 
 uiPushButton (uiParent *, const uiString &txt, const uiPixmap &, const CallBack &, bool immediate)
 
void setDefault (bool yn=true)
 
void click ()
 
void setMenu (uiMenu *)
 
void setFlat (bool)
 
bool isFlat () const
 

Private Member Functions

void translateText ()
 
void updateText ()
 
void updateIconSize ()
 
uiPushButtonBody & mkbody (uiParent *, const uiString &)
 

Private Attributes

bool immediate_
 
uiPushButtonBody * pbbody_
 

Detailed Description

is the base class for all buttons.

< val between [0-1]

Push button. By default, assumes immediate action, not a dialog when pushed. The button text will in that case get an added " ..." to the text. In principle, it could also get another appearance.

Constructor & Destructor Documentation

uiPushButton::uiPushButton ( uiParent ,
const uiString txt,
bool  immediate 
)
uiPushButton::uiPushButton ( uiParent ,
const uiString txt,
const CallBack ,
bool  immediate 
)
uiPushButton::uiPushButton ( uiParent ,
const uiString txt,
const uiPixmap ,
bool  immediate 
)
uiPushButton::uiPushButton ( uiParent ,
const uiString txt,
const uiPixmap ,
const CallBack ,
bool  immediate 
)

Member Function Documentation

void uiPushButton::click ( )
bool uiPushButton::isFlat ( ) const
uiPushButtonBody& uiPushButton::mkbody ( uiParent ,
const uiString  
)
private
void uiPushButton::setDefault ( bool  yn = true)
void uiPushButton::setFlat ( bool  )
void uiPushButton::setMenu ( uiMenu )
void uiPushButton::translateText ( )
private
void uiPushButton::updateIconSize ( )
private
void uiPushButton::updateText ( )
private

Member Data Documentation

bool uiPushButton::immediate_
private
uiPushButtonBody* uiPushButton::pbbody_
private

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