OpenMS
2.8.0
|
A widget witch allows constructing gradients of multiple colors. More...
#include <OpenMS/VISUAL/MultiGradientSelector.h>
Public Slots | |
void | stairsInterpolation (bool state) |
sets what interpolation mode is used More... | |
Public Member Functions | |
MultiGradientSelector (QWidget *parent=nullptr) | |
Constructor. More... | |
~MultiGradientSelector () override | |
Destructor. More... | |
const MultiGradient & | gradient () const |
returns a const reference to the gradient More... | |
MultiGradient & | gradient () |
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... | |
re-implemented Qt events | |
MultiGradient | gradient_ |
Int | margin_ |
Int | gradient_area_width_ |
Int | lever_area_height_ |
Int | selected_ |
QColor | selected_color_ |
bool | left_button_pressed_ |
void | paintEvent (QPaintEvent *e) override |
void | mousePressEvent (QMouseEvent *e) override |
void | mouseMoveEvent (QMouseEvent *e) override |
void | mouseReleaseEvent (QMouseEvent *e) override |
void | mouseDoubleClickEvent (QMouseEvent *e) override |
void | keyPressEvent (QKeyEvent *e) override |
void | contextMenuEvent (QContextMenuEvent *e) override |
A widget witch allows constructing gradients of multiple colors.
The above example image shows a MultiGradientSelector.
MultiGradientSelector | ( | QWidget * | parent = nullptr | ) |
Constructor.
|
override |
Destructor.
|
overrideprotected |
MultiGradient::InterpolationMode getInterpolationMode | ( | ) | const |
returns the interpolation mode
MultiGradient& gradient | ( | ) |
returns a mutable reference to the gradient
const MultiGradient& gradient | ( | ) | const |
returns a const reference to the gradient
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
void setInterpolationMode | ( | MultiGradient::InterpolationMode | mode | ) |
sets the interpolation mode
|
slot |
sets what interpolation mode is used
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |