Skip to content

Commit

Permalink
Publicly expose VisualizationFrame::addPanelByName() (#1303)
Browse files Browse the repository at this point in the history
... to allow saving of programmatically created panels.
Otherwise, panels can only be added via addPane(), which doesn't add them to `custom_panels_`
and thus doesn't save their settings.
  • Loading branch information
rhaschke committed Feb 17, 2019
1 parent 44d93d6 commit 75f5967
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/rviz/visualization_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ Q_OBJECT
Qt::DockWidgetArea area = Qt::LeftDockWidgetArea,
bool floating = true );

QDockWidget* addPanelByName( const QString& name,
const QString& class_lookup_name,
Qt::DockWidgetArea area = Qt::LeftDockWidgetArea,
bool floating = true );

/** @brief Load the "general" config file, which has just the few
* things which should not be saved with a display config.
*
Expand Down Expand Up @@ -272,11 +277,6 @@ protected Q_SLOTS:
void markRecentConfig(const std::string& path);
void updateRecentConfigMenu();

QDockWidget* addPanelByName( const QString& name,
const QString& class_lookup_name,
Qt::DockWidgetArea area = Qt::LeftDockWidgetArea,
bool floating = true );

/** @brief Loads custom panels from the given config node. */
void loadPanels( const Config& config );

Expand Down

0 comments on commit 75f5967

Please sign in to comment.