Dock widget class for docking widgets into VisualizationFrame. More...
#include <panel_dock_widget.h>
Public Slots | |
void | setWindowTitle (QString title) |
Signals | |
void | closed () |
Public Member Functions | |
virtual void | load (Config config) |
PanelDockWidget (const QString &name) | |
virtual void | save (Config config) |
void | setCollapsed (bool collapsed) |
void | setContentWidget (QWidget *child) |
void | setIcon (QIcon icon) |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *event) |
Private Slots | |
void | onChildDestroyed (QObject *) |
Private Attributes | |
bool | collapsed_ |
QLabel * | icon_label_ |
QLabel * | title_label_ |
Dock widget class for docking widgets into VisualizationFrame.
Use setContentWidget() instead of QDockWidget::setWidget() if you want the PanelDockWidget to be destroyed when the content widget is destroyed.
Definition at line 46 of file panel_dock_widget.h.
rviz::PanelDockWidget::PanelDockWidget | ( | const QString & | name | ) |
Definition at line 41 of file panel_dock_widget.cpp.
void rviz::PanelDockWidget::closed | ( | ) | [signal] |
void rviz::PanelDockWidget::closeEvent | ( | QCloseEvent * | event | ) | [protected, virtual] |
Definition at line 127 of file panel_dock_widget.cpp.
void rviz::PanelDockWidget::load | ( | Config | config | ) | [virtual] |
Definition at line 142 of file panel_dock_widget.cpp.
void rviz::PanelDockWidget::onChildDestroyed | ( | QObject * | ) | [private, slot] |
Definition at line 132 of file panel_dock_widget.cpp.
void rviz::PanelDockWidget::save | ( | Config | config | ) | [virtual] |
Definition at line 137 of file panel_dock_widget.cpp.
void rviz::PanelDockWidget::setCollapsed | ( | bool | collapsed | ) |
Definition at line 94 of file panel_dock_widget.cpp.
void rviz::PanelDockWidget::setContentWidget | ( | QWidget * | child | ) |
Definition at line 114 of file panel_dock_widget.cpp.
void rviz::PanelDockWidget::setIcon | ( | QIcon | icon | ) |
Definition at line 81 of file panel_dock_widget.cpp.
void rviz::PanelDockWidget::setWindowTitle | ( | QString | title | ) | [slot] |
Definition at line 74 of file panel_dock_widget.cpp.
bool rviz::PanelDockWidget::collapsed_ [private] |
Definition at line 78 of file panel_dock_widget.h.
QLabel* rviz::PanelDockWidget::icon_label_ [private] |
Definition at line 79 of file panel_dock_widget.h.
QLabel* rviz::PanelDockWidget::title_label_ [private] |
Definition at line 80 of file panel_dock_widget.h.