All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FinishBuildingDialog.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2014 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 _FINISH_BUILDING_DIALOG_HH_
19 #define _FINISH_BUILDING_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 GAZEBO_VISIBLE FinishBuildingDialog : public QDialog
35  {
36  Q_OBJECT
37 
40  public: enum FinishMode {
44  MODEL_SAVE
45  };
46 
50  public: FinishBuildingDialog(int _mode = 0, QWidget *_parent = 0);
51 
53  public: ~FinishBuildingDialog();
54 
57  public: std::string GetModelName() const;
58 
61  public: std::string GetSaveLocation() const;
62 
65  public: void SetModelName(const std::string &_name);
66 
69  public: void SetSaveLocation(const std::string &_location);
70 
72  private slots: void OnBrowse();
73 
75  private slots: void OnCancel();
76 
78  private slots: void OnFinish();
79 
81  private: QLineEdit* modelNameLineEdit;
82 
84  private: QLineEdit* modelLocationLineEdit;
85  };
87  }
88 }
89 
90 #endif
FinishMode
Unique identifiers for all dialog modes.
Definition: FinishBuildingDialog.hh:40
Finish mode.
Definition: FinishBuildingDialog.hh:42
Dialog for saving the building model.
Definition: FinishBuildingDialog.hh:34
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48