ImportDialog.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef _MODEL_IMPORT_DIALOG_HH_
19 #define _MODEL_IMPORT_DIALOG_HH_
20 
21 #include <string>
22 #include "gazebo/gui/qt.h"
23 #include "gazebo/util/system.hh"
24 
25 namespace gazebo
26 {
27  namespace gui
28  {
31 
34  class GZ_GUI_VISIBLE ImportDialog : public QDialog
35  {
36  Q_OBJECT
37 
40  public: ImportDialog(QWidget *_parent = 0);
41 
43  public: ~ImportDialog();
44 
47  public: std::string GetLinkName() const;
48 
51  public: std::string GetImportPath() const;
52 
55  public: void SetLinkName(const std::string &_name);
56 
59  public: void SetImportPath(const std::string &_path);
60 
63  public: void SetMessage(const std::string &_msg);
64 
67  public: void SetTitle(const std::string &_title);
68 
70  protected: virtual void showEvent(QShowEvent *event);
71 
73  private slots: void OnBrowse();
74 
76  private slots: void OnCancel();
77 
79  private slots: void OnImport();
80 
82  private: QLineEdit *nameLineEdit;
83 
85  private: QLineEdit *pathLineEdit;
86 
88  private: QLabel *messageLabel;
89  };
91  }
92 }
93 
94 #endif
Dialog for saving to file.
Definition: ImportDialog.hh:34