Choreonoid  1.8
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
cnoid::GeneralSliderView Class Reference

#include <GeneralSliderView.h>

Inheritance diagram for cnoid::GeneralSliderView:
cnoid::View cnoid::Widget

Classes

class  Slider
 

Public Types

typedef ref_ptr< SliderSliderPtr
 
- Public Types inherited from cnoid::View
enum  LayoutArea {
  TopLeftArea = 0, MiddleLeftArea = 1, BottomLeftArea = 2, TopCenterArea = 3,
  CenterArea = 4, BottomCenterArea = 5, TopRightArea = 6, MiddleRightArea = 7,
  BottomRightArea = 8, NumLayoutAreas = 9, LEFT = TopLeftArea, LEFT_TOP = TopLeftArea,
  LEFT_BOTTOM = BottomLeftArea, CENTER = CenterArea, RIGHT = TopRightArea, BOTTOM = BottomCenterArea
}
 

Public Member Functions

 GeneralSliderView ()
 
virtual ~GeneralSliderView ()
 
SliderPtr getOrCreateSlider (const std::string &name, double lower=0.0, double upper=999.0, int precision=0)
 
SliderPtr getOrCreateSlider (const std::string &owner, const std::string &name, double lower=0.0, double upper=999.0, int precision=0)
 
void removeSlider (Slider *slider)
 
void removeSliders (const std::string &owner)
 
- Public Member Functions inherited from cnoid::View
 View ()
 
virtual ~View ()
 
ViewClassviewClass () const
 
const std::string & name () const
 
virtual void setName (const std::string &name)
 
void setTitleFormat (const std::string &title)
 
void resetTitleFormat ()
 
const std::string & titleFormat () const
 
ViewAreaviewArea () const
 
bool isActive () const
 
bool hasFocus () const
 
void bringToFront ()
 
SignalProxy< void()> sigActivated ()
 
SignalProxy< void()> sigDeactivated ()
 
SignalProxy< void()> sigResized ()
 
SignalProxy< void()> sigRemoved ()
 
void setDefaultLayoutArea (LayoutArea area)
 
LayoutArea defaultLayoutArea () const
 
void setLayout (QLayout *layout, double marginRatio=0.0)
 
void setLayout (QLayout *layout, double leftMarginRatio, double topMarginRatio, double rightMarginRatio, double bottomMarginRatio)
 
QPoint viewAreaPos () const
 
virtual QWidget * indicatorOnInfoBar ()
 
void enableFontSizeZoomKeys (bool on)
 
- Public Member Functions inherited from cnoid::Widget
 Widget (QWidget *parent=0)
 
SignalProxy< void(std::string name)> sigObjectNameChanged ()
 
SignalProxy< void(std::string title)> sigWindowTitleChanged ()
 

Static Public Member Functions

static void initializeClass (ExtensionManager *ext)
 
static GeneralSliderViewinstance ()
 
- Static Public Member Functions inherited from cnoid::View
static ViewlastFocusView ()
 

Protected Member Functions

virtual bool storeState (Archive &archive)
 
virtual bool restoreState (const Archive &archive)
 
- Protected Member Functions inherited from cnoid::View
void setLayoutContentsMarginRatio (QLayout *layout, double leftMarginRatio, double topMarginRatio, double rightMarginRatio, double bottomMarginRatio)
 
void zoomFontSize (int zoom)
 
virtual void onActivated ()
 
virtual void onDeactivated ()
 
virtual void onFocusChanged (bool on)
 
virtual void onAttachedMenuRequest (MenuManager &menuManager)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 

Member Typedef Documentation

◆ SliderPtr

Constructor & Destructor Documentation

◆ GeneralSliderView()

GeneralSliderView::GeneralSliderView ( )

◆ ~GeneralSliderView()

GeneralSliderView::~GeneralSliderView ( )
virtual

Member Function Documentation

◆ getOrCreateSlider() [1/2]

GeneralSliderView::SliderPtr GeneralSliderView::getOrCreateSlider ( const std::string &  name,
double  lower = 0.0,
double  upper = 999.0,
int  precision = 0 
)

◆ getOrCreateSlider() [2/2]

GeneralSliderView::SliderPtr GeneralSliderView::getOrCreateSlider ( const std::string &  owner,
const std::string &  name,
double  lower = 0.0,
double  upper = 999.0,
int  precision = 0 
)

◆ initializeClass()

void GeneralSliderView::initializeClass ( ExtensionManager ext)
static

◆ instance()

GeneralSliderView * GeneralSliderView::instance ( )
static

◆ removeSlider()

void GeneralSliderView::removeSlider ( GeneralSliderView::Slider slider)

◆ removeSliders()

void GeneralSliderView::removeSliders ( const std::string &  owner)

◆ restoreState()

bool GeneralSliderView::restoreState ( const Archive archive)
protectedvirtual

Reimplemented from cnoid::View.

◆ storeState()

bool GeneralSliderView::storeState ( Archive archive)
protectedvirtual

Reimplemented from cnoid::View.


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