Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Slots | Public Member Functions | Protected Attributes | List of all members
MultiGradientSelector Class Reference

A widget witch allows constructing gradients of multiple colors. More...

#include <OpenMS/VISUAL/MultiGradientSelector.h>

Inheritance diagram for MultiGradientSelector:
QWidget

Public Slots

void stairsInterpolation (bool state)
 sets what interpolation mode is used More...
 

Public Member Functions

 MultiGradientSelector (QWidget *parent=0)
 Constructor. More...
 
 ~MultiGradientSelector ()
 Destructor. More...
 
const MultiGradientgradient () const
 returns a const reference to the gradient More...
 
MultiGradientgradient ()
 returns a mutable reference to the gradient More...
 
void setInterpolationMode (MultiGradient::InterpolationMode mode)
 sets the interpolation mode More...
 
MultiGradient::InterpolationMode getInterpolationMode () const
 returns the interpolation mode More...
 

Protected Member Functions

re-implemented Qt events
void paintEvent (QPaintEvent *e)
 
void mousePressEvent (QMouseEvent *e)
 
void mouseMoveEvent (QMouseEvent *e)
 
void mouseReleaseEvent (QMouseEvent *e)
 
void mouseDoubleClickEvent (QMouseEvent *e)
 
void keyPressEvent (QKeyEvent *e)
 
void contextMenuEvent (QContextMenuEvent *e)
 

Protected Attributes

MultiGradient gradient_
 
Int margin_
 
Int gradient_area_width_
 
Int lever_area_height_
 
Int selected_
 
QColor selected_color_
 
bool left_button_pressed_
 

Detailed Description

A widget witch allows constructing gradients of multiple colors.

MultiGradientSelector.png

The above example image shows a MultiGradientSelector.

Constructor & Destructor Documentation

◆ MultiGradientSelector()

MultiGradientSelector ( QWidget parent = 0)

Constructor.

◆ ~MultiGradientSelector()

Destructor.

Member Function Documentation

◆ contextMenuEvent()

void contextMenuEvent ( QContextMenuEvent *  e)
protected

◆ getInterpolationMode()

MultiGradient::InterpolationMode getInterpolationMode ( ) const

returns the interpolation mode

◆ gradient() [1/2]

const MultiGradient& gradient ( ) const

returns a const reference to the gradient

◆ gradient() [2/2]

MultiGradient& gradient ( )

returns a mutable reference to the gradient

◆ keyPressEvent()

void keyPressEvent ( QKeyEvent *  e)
protected

◆ mouseDoubleClickEvent()

void mouseDoubleClickEvent ( QMouseEvent *  e)
protected

◆ mouseMoveEvent()

void mouseMoveEvent ( QMouseEvent *  e)
protected

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent *  e)
protected

◆ mouseReleaseEvent()

void mouseReleaseEvent ( QMouseEvent *  e)
protected

◆ paintEvent()

void paintEvent ( QPaintEvent *  e)
protected

◆ setInterpolationMode()

void setInterpolationMode ( MultiGradient::InterpolationMode  mode)

sets the interpolation mode

◆ stairsInterpolation

void stairsInterpolation ( bool  state)
slot

sets what interpolation mode is used

Member Data Documentation

◆ gradient_

MultiGradient gradient_
protected

◆ gradient_area_width_

Int gradient_area_width_
protected

◆ left_button_pressed_

bool left_button_pressed_
protected

◆ lever_area_height_

Int lever_area_height_
protected

◆ margin_

Int margin_
protected

◆ selected_

Int selected_
protected

◆ selected_color_

QColor selected_color_
protected

OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:11 using doxygen 1.8.13