##

ImportDialog.hh
Go to the documentation of this file.
/*
* Copyright (C) 2013 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_IMPORTDIALOG_HH_
#define GAZEBO_GUI_MODEL_IMPORTDIALOG_HH_
#include <string>
#include "gazebo/gui/qt.h"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
class GZ_GUI_VISIBLE ImportDialog : public QDialog
{
Q_OBJECT
public: explicit ImportDialog(QWidget *_parent = 0);
public: ~ImportDialog();
public: std::string GetLinkName() const;
public: std::string GetImportPath() const;
public: void SetLinkName(const std::string &_name);
public: void SetImportPath(const std::string &_path);
public: void SetMessage(const std::string &_msg);
public: void SetTitle(const std::string &_title);
protected: virtual void showEvent(QShowEvent *event);
private slots: void OnBrowse();
private slots: void OnCancel();
private slots: void OnImport();
private: QLineEdit *nameLineEdit;
private: QLineEdit *pathLineEdit;
private: QLabel *messageLabel;
};
}
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::ImportDialog::SetImportPath
void SetImportPath(const std::string &_path)
Set the import path of the custom link.
gazebo::gui::ImportDialog::~ImportDialog
~ImportDialog()
Destructor.
system.hh
gazebo::gui::ImportDialog::showEvent
virtual void showEvent(QShowEvent *event)
Qt event emitted showing the dialog.
gazebo::gui::ImportDialog::SetMessage
void SetMessage(const std::string &_msg)
Set the message to be displayed.
gazebo::gui::ImportDialog::GetLinkName
std::string GetLinkName() const
Get name of file.
gazebo::gui::ImportDialog::SetLinkName
void SetLinkName(const std::string &_name)
Set the name of the custom link.
gazebo::gui::ImportDialog::SetTitle
void SetTitle(const std::string &_title)
Set the tile of the dialog.
gazebo::gui::ImportDialog::ImportDialog
ImportDialog(QWidget *_parent=0)
Constructor.
gazebo::gui::ImportDialog
Dialog for saving to file.
Definition: ImportDialog.hh:33
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::ImportDialog::GetImportPath
std::string GetImportPath() const
Get the import path of the custom link.