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,
void showRectangle()
Enables the rectangle shape.
void showLine()
Enables the line.
void reset()
Resets the selection.
void showCircle()
Enables the circle shape.
Combo box for choosing a rubber band type.
QString toolIconDir() const
Returns the icon directory.
void showSegmentedLine()
Enables the segmented line shape.
void showRotatedRectangle()
Enables the rotated rectangle shape.
bool m_showIndicatorColors
Show colors?
RubberBandOptions
Enum to store rubber band shapes.
void showAngle()
Enables the angle shape.
RubberBandComboBox(Tool *tool, unsigned int bandingOptions, unsigned int defaultOption, bool showIndicatorColors=false)
RubberBandComboBox constructor.
void showPolygon()
Enables the polygon shape.
void selectionChanged(int index)
This slot is called whenever the rubberband shape selection has changed.
Defines an angle and provides unit conversions.
unsigned int getDefault(unsigned int defaultOption, unsigned int bandingOptions)
This is used to figure out which option should be defaulted.
void showEllipse()
Enables the ellipse shape.
QStringList m_bandingOptionStrings
List of rubberband options.