qCC  version 2.5.4 (Qt) - 19 Apr. 2014
 All Classes Functions Variables Typedefs Enumerations
Signals | Public Member Functions | Protected Member Functions | List of all members
SlidersWidget Class Reference

All sliders widget. More...

#include <ccColorScaleEditorWidget.h>

Inheritance diagram for SlidersWidget:
Inheritance graph
Collaboration diagram for SlidersWidget:
Collaboration graph


void sliderModified (int index)
 Signal emitted when a slider is changed (position or color)
void sliderSelected (int index)
 Signal emitted when a slider is selected.

Public Member Functions

 SlidersWidget (SharedColorScaleElementSliders sliders, QWidget *parent=0, Qt::Orientation orientation=Qt::Horizontal)
 Default constructor.
void select (int index, bool silent=false)
 Manually selects a slider.
ColorScaleElementSlideraddNewSlider (double relativePos, QColor color)
 Adds a new slider widget. More...
void updateSliderPos (int index)
 Updates slider position.
void updateAllSlidersPos ()
 Updates all sliders positions.
- Public Member Functions inherited from ColorScaleEditorBaseWidget
 ColorScaleEditorBaseWidget (SharedColorScaleElementSliders sliders, Qt::Orientation orientation, int margin, QWidget *parent=0)
 Defautl constructor.
int length () const
 Returns useful length.
virtual void setSliders (SharedColorScaleElementSliders sliders)
 Sets associated sliders set.
Qt::Orientation getOrientation () const
 Returns orientation.
int getMargin () const
 Returns margin.

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *e)
virtual void mouseMoveEvent (QMouseEvent *e)
virtual void mouseDoubleClickEvent (QMouseEvent *e)
virtual void resizeEvent (QResizeEvent *e)

Additional Inherited Members

- Protected Attributes inherited from ColorScaleEditorBaseWidget
SharedColorScaleElementSliders m_sliders
 Associated sliders.
Qt::Orientation m_orientation
int m_margin

Detailed Description

All sliders widget.

Member Function Documentation

ColorScaleElementSlider * SlidersWidget::addNewSlider ( double  relativePos,
QColor  color 

Adds a new slider widget.

relativePosslider position (relatively to scale boundaries [0.0,1.0])
colorslider color
created slider (pointer on)

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