17#ifndef GAZEBO_GUI_SAVEENTITYDIALOG_HH_
18#define GAZEBO_GUI_SAVEENTITYDIALOG_HH_
29 class SaveEntityDialogPrivate;
108 private slots:
void OnBrowse();
111 private slots:
void OnCancel();
114 private slots:
void OnAcceptSave();
118 private slots:
void ModelNameChangedOnDialog(QString _modelName);
121 private: std::string GetTemplateConfigString();
135 private slots:
void ToggleAdvancedOptions(
bool _checked);
139 private: SaveEntityDialogPrivate *dataPtr;
gui
Definition KeyEventHandler.hh:29
Dialog for saving to file.
Definition SaveEntityDialog.hh:37
std::string GetDescription() const
Get the model's description.
std::string GetSaveLocation() const
Get the save location.
void SaveToSDF(sdf::SDFPtr _modelSDF)
Save model to SDF format.
std::string GetAuthorName() const
Get the model's author's name.
void GenerateConfig()
Generate the config file.
void SetModelName(const std::string &_name)
Set the model name.
SaveMode
Unique identifiers for all dialog modes.
Definition SaveEntityDialog.hh:42
@ BUILDING
Save building.
Definition SaveEntityDialog.hh:46
@ MODEL
Save model.
Definition SaveEntityDialog.hh:44
void SaveToConfig()
Save config file.
std::string GetVersion() const
Get the model's version.
void AddDirToModelPaths(const std::string &_path)
Add the parent folder of _path to the model path represented by SystemPaths, notify InsertModelWidget...
~SaveEntityDialog()
Destructor.
bool OnSaveAs()
Call to execute the dialog.
void SetSaveLocation(const std::string &_location)
Set the save location.
std::string GetModelName() const
Get the model name.
std::string GetAuthorEmail() const
Get the model's author's email.
SaveEntityDialog(int _mode=0, QWidget *_parent=0)
Constructor.
std::string GetFolderNameFromModelName(const std::string &_modelName)
Helper function to generate a valid folder name from a human-readable model name.
Forward declarations for the common classes.
Definition Animation.hh:27