12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
24 class QContextMenuEvent;
A widget witch allows constructing gradients of multiple colors.
Definition: MultiGradientSelector.h:43
void setInterpolationMode(MultiGradient::InterpolationMode mode)
sets the interpolation mode
Int selected_
Definition: MultiGradientSelector.h:88
~MultiGradientSelector() override
Destructor.
Int margin_
Definition: MultiGradientSelector.h:81
bool left_button_pressed_
Definition: MultiGradientSelector.h:93
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:83
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:78
QColor selected_color_
Definition: MultiGradientSelector.h:90
void contextMenuEvent(QContextMenuEvent *e) override
Int lever_area_height_
Definition: MultiGradientSelector.h:85
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:42
InterpolationMode
Interpolation mode.
Definition: MultiGradient.h:52
int Int
Signed integer type.
Definition: Types.h:76
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22