rviz::ColorEditor Class Reference

#include <color_editor.h>

Inheritance diagram for rviz::ColorEditor:
Inheritance graph

List of all members.

Public Slots

void parseText ()
void setColor (const QColor &color)

Public Member Functions

 ColorEditor (ColorProperty *property=0, QWidget *parent=0)

Static Public Member Functions

static void paintColorBox (QPainter *painter, const QRect &rect, const QColor &color)

Protected Slots

virtual void onButtonClick ()
 Override this to do something when the button is clicked.

Protected Member Functions

virtual void paintEvent (QPaintEvent *event)
virtual void resizeEvent (QResizeEvent *event)

Private Attributes

QColor color_

Detailed Description

Definition at line 39 of file color_editor.h.

Constructor & Destructor Documentation

rviz::ColorEditor::ColorEditor ( ColorProperty property = 0,
QWidget *  parent = 0 

Definition at line 43 of file color_editor.cpp.

Member Function Documentation

void rviz::ColorEditor::onButtonClick (  )  [protected, virtual, slot]

Override this to do something when the button is clicked.

Reimplemented from rviz::LineEditWithButton.

Definition at line 102 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 58 of file color_editor.cpp.

void rviz::ColorEditor::paintEvent ( QPaintEvent *  event  )  [protected, virtual]

Call parent version then paint color swatch.

Definition at line 51 of file color_editor.cpp.

void rviz::ColorEditor::parseText (  )  [slot]

Definition at line 79 of file color_editor.cpp.

void rviz::ColorEditor::resizeEvent ( QResizeEvent *  event  )  [protected, virtual]

Reimplemented from rviz::LineEditWithButton.

Definition at line 69 of file color_editor.cpp.

void rviz::ColorEditor::setColor ( const QColor &  color  )  [slot]

Definition at line 92 of file color_editor.cpp.

Member Data Documentation

QColor rviz::ColorEditor::color_ [private]

Definition at line 63 of file color_editor.h.

Definition at line 64 of file color_editor.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Author(s): Dave Hershberger, Josh Faust
autogenerated on Wed Jun 6 11:25:47 2012