1#ifndef RubberBandComboBox_h
2#define RubberBandComboBox_h
7#include "RubberBandTool.h"
31 bool showIndicatorColors =
false);
58 unsigned int getDefault(
unsigned int defaultOption,
unsigned int bandingOptions);
82 m_tool->rubberBandTool()->
enable(RubberBandTool::RotatedRectangleMode,
Defines an angle and provides unit conversions.
Combo box for choosing a rubber band type.
void showSegmentedLine()
Enables the segmented line shape.
bool m_showIndicatorColors
Show colors?
void selectionChanged(int index)
This slot is called whenever the rubberband shape selection has changed.
void showAngle()
Enables the angle shape.
RubberBandComboBox(Tool *tool, unsigned int bandingOptions, unsigned int defaultOption, bool showIndicatorColors=false)
RubberBandComboBox constructor.
void showEllipse()
Enables the ellipse shape.
void showRectangle()
Enables the rectangle shape.
void showPolygon()
Enables the polygon shape.
unsigned int getDefault(unsigned int defaultOption, unsigned int bandingOptions)
This is used to figure out which option should be defaulted.
QString toolIconDir() const
Returns the icon directory.
void showCircle()
Enables the circle shape.
void showRotatedRectangle()
Enables the rotated rectangle shape.
void reset()
Resets the selection.
void showLine()
Enables the line.
QStringList m_bandingOptionStrings
List of rubberband options.
RubberBandOptions
Enum to store rubber band shapes.
@ SegmentedLine
Segmented Line.
@ RotatedRectangle
RotatedRectangle.
This is free and unencumbered software released into the public domain.
This is free and unencumbered software released into the public domain.