Public Member Functions | Private Slots | Private Member Functions | Private Attributes
rviz::EnumItem Class Reference

#include <enum_item.h>

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

List of all members.

Public Member Functions

virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option)
 EnumItem (EnumProperty *property)
int getChoiceValue ()
void setChoices (Choices choices)
void setChoiceValue (int choice_value)
virtual bool setEditorData (QWidget *editor)
virtual bool setModelData (QWidget *editor)

Private Slots

void setChoiceIndex (int new_choice_index)

Private Member Functions

std::string currentChoiceName ()

Private Attributes

int choice_value_
Choices choices_
bool signal_changes_

Detailed Description

Definition at line 40 of file enum_item.h.


Constructor & Destructor Documentation

Definition at line 41 of file enum_item.cpp.


Member Function Documentation

QWidget * rviz::EnumItem::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option 
) [virtual]

Override to create a custom editor widget for this item. The base implementation returns NULL, which will case the default QLineEdit to be created.

Reimplemented from rviz::PropertyWidgetItem.

Definition at line 48 of file enum_item.cpp.

std::string rviz::EnumItem::currentChoiceName ( ) [private]

Definition at line 103 of file enum_item.cpp.

Definition at line 62 of file enum_item.h.

void rviz::EnumItem::setChoiceIndex ( int  new_choice_index) [private, slot]

Set a new choice by index into choices_. Called from user GUI events, so emits data-changed signal.

Definition at line 90 of file enum_item.cpp.

Set the list of choice names and values.

Definition at line 115 of file enum_item.cpp.

void rviz::EnumItem::setChoiceValue ( int  choice_value)

Set the value of the current choice. This finds the corresponding choice name and makes it show up in the tree.

Definition at line 124 of file enum_item.cpp.

bool rviz::EnumItem::setEditorData ( QWidget *  editor) [virtual]

Override to load an editor with data from the model. Return true to claim to have done the work, false to fall back on the default behavior.

Reimplemented from rviz::PropertyWidgetItem.

Definition at line 56 of file enum_item.cpp.

bool rviz::EnumItem::setModelData ( QWidget *  editor) [virtual]

Override to read data from an editor and store it in the model. Return true to claim to have done the work, false to fall back on the default behavior.

Reimplemented from rviz::PropertyWidgetItem.

Definition at line 80 of file enum_item.cpp.


Member Data Documentation

Definition at line 73 of file enum_item.h.

Definition at line 72 of file enum_item.h.

Definition at line 74 of file enum_item.h.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Mon Jan 6 2014 11:54:33