38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
50 class QContextMenuEvent;
A widget witch allows constructing gradients of multiple colors.
Definition: MultiGradientSelector.h:69
void setInterpolationMode(MultiGradient::InterpolationMode mode)
sets the interpolation mode
Int selected_
Definition: MultiGradientSelector.h:114
~MultiGradientSelector() override
Destructor.
Int margin_
Definition: MultiGradientSelector.h:107
bool left_button_pressed_
Definition: MultiGradientSelector.h:119
void mousePressEvent(QMouseEvent *e) override
MultiGradientSelector(QWidget *parent=nullptr)
Constructor.
void mouseMoveEvent(QMouseEvent *e) override
void mouseReleaseEvent(QMouseEvent *e) override
Int gradient_area_width_
Definition: MultiGradientSelector.h:109
void keyPressEvent(QKeyEvent *e) override
const MultiGradient & gradient() const
returns a const reference to the gradient
MultiGradient::InterpolationMode getInterpolationMode() const
returns the interpolation mode
MultiGradient gradient_
Definition: MultiGradientSelector.h:104
QColor selected_color_
Definition: MultiGradientSelector.h:116
void contextMenuEvent(QContextMenuEvent *e) override
Int lever_area_height_
Definition: MultiGradientSelector.h:111
void mouseDoubleClickEvent(QMouseEvent *e) override
MultiGradient & gradient()
returns a mutable reference to the gradient
void paintEvent(QPaintEvent *e) override
void stairsInterpolation(bool state)
sets what interpolation mode is used
A gradient of multiple colors and arbitrary distances between colors.
Definition: MultiGradient.h:68
InterpolationMode
Interpolation mode.
Definition: MultiGradient.h:78
int Int
Signed integer type.
Definition: Types.h:102
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47