Choreonoid  1.8
Classes | Public Slots | Public Member Functions | Friends | List of all members
cnoid::ToolBar Class Reference

#include <ToolBar.h>

Inheritance diagram for cnoid::ToolBar:
cnoid::BodyBar cnoid::CaptureBar cnoid::FileBar cnoid::GraphBar cnoid::ImageViewBar cnoid::KinematicsBar cnoid::LeggedBodyBar cnoid::SceneBar cnoid::ScriptBar cnoid::SimulationBar cnoid::TimeBar

Classes

class  LayoutPriorityCmp
 

Public Slots

void setEnabled (bool on)
 
void changeIconSize (const QSize &iconSize)
 

Public Member Functions

 ToolBar (const QString &name)
 
virtual ~ToolBar ()
 
ToolButtonaddButton (const QString &text, const QString &tooltip=QString())
 
ToolButtonaddButton (const QIcon &icon, const QString &tooltip=QString())
 
ToolButtonaddButton (const char *const *xpm, const QString &tooltip=QString())
 
ToolButtonaddToggleButton (const QString &text, const QString &tooltip=QString())
 
ToolButtonaddToggleButton (const QIcon &icon, const QString &tooltip=QString())
 
ToolButtonaddToggleButton (const char *const *xpm, const QString &tooltip=QString())
 
void requestNewRadioGroup ()
 
QButtonGroup * currentRadioGroup ()
 
ToolButtonaddRadioButton (const QString &text, const QString &tooltip=QString())
 
ToolButtonaddRadioButton (const QIcon &icon, const QString &tooltip=QString())
 
ToolButtonaddRadioButton (const char *const *xpm, const QString &tooltip=QString())
 
void addAction (QAction *action)
 
void addWidget (QWidget *widget)
 
QLabel * addLabel (const QString &text)
 
QLabel * addImage (const QString &filename)
 
QWidget * addSeparator ()
 
void addSpacing (int spacing=-1)
 
ToolBarsetInsertionPosition (int index)
 
void setVisibleByDefault (bool on=true)
 
bool isVisibleByDefault () const
 
void placeOnNewRowByDefault (bool on=true)
 
bool isPlacedOnNewRowByDefault () const
 
void setStretchable (bool on)
 
bool isStretchable () const
 
virtual int stretchableDefaultWidth () const
 
void setAutoRaiseByDefault (bool on=true)
 
bool isAutoRaiseByDefault () const
 
ToolBarAreatoolBarArea ()
 
virtual bool storeState (Archive &archive)
 
virtual bool restoreState (const Archive &archive)
 

Friends

class ToolBarArea
 

Constructor & Destructor Documentation

◆ ToolBar()

ToolBar::ToolBar ( const QString &  name)

◆ ~ToolBar()

ToolBar::~ToolBar ( )
virtual

Member Function Documentation

◆ addAction()

void ToolBar::addAction ( QAction *  action)

◆ addButton() [1/3]

ToolButton * ToolBar::addButton ( const char *const *  xpm,
const QString &  tooltip = QString() 
)

◆ addButton() [2/3]

ToolButton * ToolBar::addButton ( const QIcon &  icon,
const QString &  tooltip = QString() 
)

◆ addButton() [3/3]

ToolButton * ToolBar::addButton ( const QString &  text,
const QString &  tooltip = QString() 
)

◆ addImage()

QLabel * ToolBar::addImage ( const QString &  filename)

◆ addLabel()

QLabel * ToolBar::addLabel ( const QString &  text)

◆ addRadioButton() [1/3]

ToolButton * ToolBar::addRadioButton ( const char *const *  xpm,
const QString &  tooltip = QString() 
)

◆ addRadioButton() [2/3]

ToolButton * ToolBar::addRadioButton ( const QIcon &  icon,
const QString &  tooltip = QString() 
)

◆ addRadioButton() [3/3]

ToolButton * ToolBar::addRadioButton ( const QString &  text,
const QString &  tooltip = QString() 
)

◆ addSeparator()

QWidget * ToolBar::addSeparator ( )

◆ addSpacing()

void ToolBar::addSpacing ( int  spacing = -1)

◆ addToggleButton() [1/3]

ToolButton * ToolBar::addToggleButton ( const char *const *  xpm,
const QString &  tooltip = QString() 
)

◆ addToggleButton() [2/3]

ToolButton * ToolBar::addToggleButton ( const QIcon &  icon,
const QString &  tooltip = QString() 
)

◆ addToggleButton() [3/3]

ToolButton * ToolBar::addToggleButton ( const QString &  text,
const QString &  tooltip = QString() 
)

◆ addWidget()

void ToolBar::addWidget ( QWidget *  widget)

◆ changeIconSize

void ToolBar::changeIconSize ( const QSize &  iconSize)
slot

◆ currentRadioGroup()

QButtonGroup * ToolBar::currentRadioGroup ( )

◆ isAutoRaiseByDefault()

bool cnoid::ToolBar::isAutoRaiseByDefault ( ) const
inline

◆ isPlacedOnNewRowByDefault()

bool cnoid::ToolBar::isPlacedOnNewRowByDefault ( ) const
inline

◆ isStretchable()

bool cnoid::ToolBar::isStretchable ( ) const
inline

◆ isVisibleByDefault()

bool cnoid::ToolBar::isVisibleByDefault ( ) const
inline

◆ placeOnNewRowByDefault()

void cnoid::ToolBar::placeOnNewRowByDefault ( bool  on = true)
inline

◆ requestNewRadioGroup()

void ToolBar::requestNewRadioGroup ( )

◆ restoreState()

bool ToolBar::restoreState ( const Archive archive)
virtual

◆ setAutoRaiseByDefault()

void cnoid::ToolBar::setAutoRaiseByDefault ( bool  on = true)
inline

◆ setEnabled

void ToolBar::setEnabled ( bool  on)
slot

◆ setInsertionPosition()

ToolBar & ToolBar::setInsertionPosition ( int  index)

◆ setStretchable()

void cnoid::ToolBar::setStretchable ( bool  on)
inline

◆ setVisibleByDefault()

void cnoid::ToolBar::setVisibleByDefault ( bool  on = true)
inline

◆ storeState()

bool ToolBar::storeState ( Archive archive)
virtual

◆ stretchableDefaultWidth()

int ToolBar::stretchableDefaultWidth ( ) const
virtual

Reimplemented in cnoid::TimeBar.

◆ toolBarArea()

ToolBarArea* cnoid::ToolBar::toolBarArea ( )
inline

Friends And Related Function Documentation

◆ ToolBarArea

friend class ToolBarArea
friend

The documentation for this class was generated from the following files: