18 #ifndef _SAVE_DIALOG_HH_
19 #define _SAVE_DIALOG_HH_
30 class SaveDialogPrivate;
53 public:
SaveDialog(
int _mode = 0, QWidget *_parent = 0);
60 public: std::string GetModelName()
const;
64 public: std::string GetSaveLocation()
const;
68 public:
void SetModelName(
const std::string &_name);
72 public:
void SetSaveLocation(
const std::string &_location);
76 public: std::string GetAuthorName()
const;
80 public: std::string GetAuthorEmail()
const;
84 public: std::string GetDescription()
const;
88 public: std::string GetVersion()
const;
95 public:
void AddDirToModelPaths(
const std::string &_path);
101 public: std::string GetFolderNameFromModelName(
const std::string
106 public:
bool OnSaveAs();
109 private slots:
void OnBrowse();
112 private slots:
void OnCancel();
115 private slots:
void OnAcceptSave();
119 private slots:
void ModelNameChangedOnDialog(QString _modelName);
122 private: std::string GetTemplateConfigString();
125 public:
void GenerateConfig();
128 public:
void SaveToConfig();
132 public:
void SaveToSDF(sdf::SDFPtr _modelSDF);
136 private slots:
void ToggleAdvancedOptions(
bool _checked);
140 private: SaveDialogPrivate *dataPtr;
Save model.
Definition: SaveDialog.hh:45
Dialog for saving to file.
Definition: SaveDialog.hh:37
SaveMode
Unique identifiers for all dialog modes.
Definition: SaveDialog.hh:43