Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes | List of all members
rviz::ColorEditor Class Reference

#include <color_editor.h>

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

Public Slots

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

Public Member Functions

 ColorEditor (ColorProperty *property=0, QWidget *parent=0)
 
- Public Member Functions inherited from rviz::LineEditWithButton
QPushButton * button ()
 
 LineEditWithButton (QWidget *parent=0)
 

Static Public Member Functions

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

Protected Slots

virtual void onButtonClick ()
 
- Protected Slots inherited from rviz::LineEditWithButton
virtual void onButtonClick ()
 Override this to do something when the button is clicked. More...
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 
- Protected Member Functions inherited from rviz::LineEditWithButton
void simulateReturnPressed ()
 Send key events to mimic the "return" key being pressed and released. Useful ending an edit session and sending the data on out. More...
 

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 ( )
protectedvirtualslot

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)
protectedvirtual

Call parent version then paint color swatch.

Definition at line 53 of file color_editor.cpp.

void rviz::ColorEditor::parseText ( )
slot

Definition at line 81 of file color_editor.cpp.

void rviz::ColorEditor::resizeEvent ( QResizeEvent *  event)
protectedvirtual

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.

ColorProperty* rviz::ColorEditor::property_
private

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 Wed Aug 28 2019 04:01:52