13 setObjectName(
"ParamEdit");
33 QMessageBox::critical(
_treeView,
"Error loading parameters",
34 QString(
"Could not get parameters at: \"%1\"").arg(
_paramRoot.c_str()));
38 ROS_ERROR(
"Requested parameter at \"%s\" has non-struct type. Only structs are supported, not single parameters.",
_paramRoot.c_str());
39 QMessageBox::critical(
_treeView,
"Error loading parameters",
40 QString(
"Requested parameter at \"%1\" has non-struct type. Only structs are supported, not single parameters.\nMaybe, you want to choose the parent containing the selected parameter.").arg(
_paramRoot.c_str()));
64 _paramRoot = qPrintable(perspective_settings.
value(
"param_root",
"/").toString());
71 if(dialog.exec() == QDialog::Accepted) {
73 ROS_ERROR(
"ParamRootChooser Accepted, but no valid parameter chosen.");
XmlRpc::XmlRpcValue _xmlrpc
virtual void initPlugin(qt_gui_cpp::PluginContext &context)
virtual void restoreSettings(const qt_gui_cpp::Settings &global_settings, const qt_gui_cpp::Settings &perspective_settings)
XmlRpcItemDelegate * _delegate
void addWidget(QWidget *widget)
Type const & getType() const
bool getParam(const std::string &key, std::string &s) const
std::string selectedParamRoot() const
void setValue(const QString &key, const QVariant &value)
virtual void triggerConfiguration()
virtual void saveSettings(qt_gui_cpp::Settings &global_settings, qt_gui_cpp::Settings &perspective_settings) const
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
virtual void shutdownPlugin()
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const