Dock widget class for docking widgets into VisualizationFrame. More...
#include <panel_dock_widget.h>
Public Slots | |
virtual void | overrideVisibility (bool hide) |
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) |
virtual void | setVisible (bool visible) |
Override setVisible to respect the visibility override,. | |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *event) |
Private Slots | |
void | onChildDestroyed (QObject *) |
Private Attributes | |
bool | collapsed_ |
bool | forced_hidden_ |
QLabel * | icon_label_ |
bool | requested_visibility_ |
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::overrideVisibility | ( | bool | hide | ) | [virtual, slot] |
@ Override the visibility of the widget.
Definition at line 153 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::setVisible | ( | bool | visible | ) | [virtual] |
Override setVisible to respect the visibility override,.
Definition at line 147 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 84 of file panel_dock_widget.h.
bool rviz::PanelDockWidget::forced_hidden_ [private] |
Definition at line 86 of file panel_dock_widget.h.
QLabel* rviz::PanelDockWidget::icon_label_ [private] |
Definition at line 87 of file panel_dock_widget.h.
bool rviz::PanelDockWidget::requested_visibility_ [private] |
Definition at line 85 of file panel_dock_widget.h.
QLabel* rviz::PanelDockWidget::title_label_ [private] |
Definition at line 88 of file panel_dock_widget.h.