Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes
rviz::ColorEditor Class Reference

#include <color_editor.h>

Inheritance diagram for rviz::ColorEditor:
Inheritance graph
[legend]

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_
ColorPropertyproperty_

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 45 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 104 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 61 of file color_editor.cpp.

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

Call parent version then paint color swatch.

Definition at line 53 of file color_editor.cpp.

Definition at line 81 of file color_editor.cpp.

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

Reimplemented from rviz::LineEditWithButton.

Definition at line 71 of file color_editor.cpp.

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

Definition at line 94 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:


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Mon Oct 6 2014 07:26:36