24#include <tqcombobox.h>
25#include "colourlist.h"
54 explicit ColourCombo(TQWidget* parent = 0,
const char* name = 0,
const TQColor& defaultColour = 0xFFFFFF);
56 TQColor
color()
const {
return mSelectedColour; }
58 TQColor
colour()
const {
return mSelectedColour; }
82 virtual void resizeEvent(TQResizeEvent*);
83 virtual void mousePressEvent(TQMouseEvent*);
84 virtual void mouseReleaseEvent(TQMouseEvent*);
85 virtual void mouseMoveEvent(TQMouseEvent*);
86 virtual void keyPressEvent(TQKeyEvent*);
87 virtual void keyReleaseEvent(TQKeyEvent*);
89 void slotActivated(
int index);
90 void slotHighlighted(
int index);
91 void slotPreferencesChanged();
94 void drawCustomItem(TQRect&,
bool insert);
97 TQColor mSelectedColour;
98 TQColor mCustomColour;
A colour selection combo box whose colour list can be specified.
void activated(const TQColor &)
Signal emitted when a new colour has been selected.
bool isCustomColour() const
Returns true if the first entry in the list, i.e.
void setColours(const ColourList &list)
Initialises the list of colours to list.
TQColor colour() const
Returns the selected colour.
void setColor(const TQColor &c)
Sets the selected colour to c.
TQColor color() const
Returns the selected colour.
virtual void setEnabled(bool enabled)
Enables or disables the widget.
virtual void setReadOnly(bool readOnly)
Sets whether the combo box can be changed by the user.
bool isReadOnly() const
Returns true if the widget is read only.
void highlighted(const TQColor &)
Signal emitted when a new colour has been highlighted.
void setColour(const TQColor &c)
Sets the selected colour to c.
Represents a sorted list of colours.