#include <color_editor.h>
Public Slots | |
void | invalidateParse () |
void | parseText () |
void | setColor (const QColor &color) |
Public Member Functions | |
ColorEditor (QWidget *parent=0) | |
QColor | getColor () |
Static Public Member Functions | |
static void | paintColorBox (QPainter *painter, const QRect &rect, const QColor &color) |
Protected Member Functions | |
virtual void | onButtonClick () |
virtual void | paintEvent (QPaintEvent *event) |
virtual void | resizeEvent (QResizeEvent *event) |
Private Attributes | |
QColor | color_ |
bool | parse_valid_ |
Definition at line 37 of file color_editor.h.
rviz::ColorEditor::ColorEditor | ( | QWidget * | parent = 0 | ) |
Definition at line 40 of file color_editor.cpp.
QColor rviz::ColorEditor::getColor | ( | ) |
Definition at line 117 of file color_editor.cpp.
void rviz::ColorEditor::invalidateParse | ( | ) | [slot] |
Definition at line 75 of file color_editor.cpp.
void rviz::ColorEditor::onButtonClick | ( | ) | [protected, virtual] |
Override this to do something when the button is clicked.
Reimplemented from rviz::LineEditWithButton.
Definition at line 126 of file color_editor.cpp.
void rviz::ColorEditor::paintColorBox | ( | QPainter * | painter, |
const QRect & | rect, | ||
const QColor & | color | ||
) | [static] |
Static function to paint just the color box. Paints it in the left end of rect, size rect.height() by rect.height().
Definition at line 54 of file color_editor.cpp.
void rviz::ColorEditor::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Call parent version then paint color swatch.
Definition at line 47 of file color_editor.cpp.
void rviz::ColorEditor::parseText | ( | ) | [slot] |
Definition at line 80 of file color_editor.cpp.
void rviz::ColorEditor::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
Reimplemented from rviz::LineEditWithButton.
Definition at line 65 of file color_editor.cpp.
void rviz::ColorEditor::setColor | ( | const QColor & | color | ) | [slot] |
Definition at line 110 of file color_editor.cpp.
QColor rviz::ColorEditor::color_ [private] |
Definition at line 63 of file color_editor.h.
bool rviz::ColorEditor::parse_valid_ [private] |
Definition at line 64 of file color_editor.h.