##

ModelPluginInspector.hh
Go to the documentation of this file.
/*
* Copyright (C) 2015 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_GUI_MODEL_MODELPLUGININSPECTOR_HH_
#define GAZEBO_GUI_MODEL_MODELPLUGININSPECTOR_HH_
#include "gazebo/msgs/msgs.hh"
#include "gazebo/gui/qt.h"
namespace gazebo
{
namespace gui
{
class ModelPluginInspectorPrivate;
class GZ_GUI_VISIBLE ModelPluginInspector : public QDialog
{
Q_OBJECT
public: explicit ModelPluginInspector(QWidget *_parent = 0);
public: ~ModelPluginInspector();
public: void Update(ConstPluginPtr _pluginMsg);
public: void SetReadOnly(const bool _readOnly);
public: void Clear();
msgs::Plugin *Data() const;
protected: virtual void enterEvent(QEvent *_event);
Q_SIGNALS: void Applied();
private slots: void OnRemove();
private slots: void OnCancel();
private slots: void OnOK();
private: ModelPluginInspectorPrivate *dataPtr;
};
}
}
#endif
gazebo::gui::ModelPluginInspector::SetReadOnly
void SetReadOnly(const bool _readOnly)
Set read-only mode.
gazebo::gui::ModelPluginInspector::Applied
void Applied()
Qt signal emitted to indicate that changes should be applied.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
msgs.hh
gazebo::gui::ModelPluginInspector::Clear
void Clear()
Clear the inspector.
gazebo::gui::ModelPluginInspector::~ModelPluginInspector
~ModelPluginInspector()
Destructor.
gazebo::gui::ModelPluginInspector::Update
void Update(ConstPluginPtr _pluginMsg)
Update the config widget with a msg.
gazebo::gui::ModelPluginInspector::enterEvent
virtual void enterEvent(QEvent *_event)
Qt event emiited when the mouse enters this widget.
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::ModelPluginInspector::Data
msgs::Plugin * Data() const
Get the message containing plugin data.
gazebo::gui::ModelPluginInspector::ModelPluginInspector
ModelPluginInspector(QWidget *_parent=0)
Constructor.
gazebo::gui::ModelPluginInspector
Inspector for model plugin properties.
Definition: ModelPluginInspector.hh:34