##

Editor.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 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_EDITOR_HH_
#define GAZEBO_GUI_EDITOR_HH_
#include <string>
#include <vector>
#include "gazebo/gui/qt.h"
#include "gazebo/common/Event.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
class MainWindow;
class GZ_GUI_VISIBLE Editor : public QObject
{
Q_OBJECT
public: explicit Editor(MainWindow *_mainWindow);
public: virtual ~Editor();
protected: void Init(const std::string &_objName,
const std::string &_tabLabel, QWidget *_widget,
QWidget *_cornerWidget = NULL);
protected: QTabWidget *tabWidget;
protected: MainWindow *mainWindow;
protected: std::vector<event::ConnectionPtr> connections;
};
}
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::Editor::tabWidget
QTabWidget * tabWidget
The tab widget that holds the editor's set of buttons.
Definition: Editor.hh:59
gazebo::gui::Editor::mainWindow
MainWindow * mainWindow
Pointer to the main window.
Definition: Editor.hh:62
NULL
#define NULL
Definition: CommonTypes.hh:31
system.hh
gazebo::gui::Editor
Base class for editors, such as BuildingEditor and TerrainEditor.
Definition: Editor.hh:35
gazebo::gui::Editor::connections
std::vector< event::ConnectionPtr > connections
List of Event based connections.
Definition: Editor.hh:65
gazebo::gui::Editor::Editor
Editor(MainWindow *_mainWindow)
Constuctor.
gazebo::msgs::Init
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::Editor::Init
void Init(const std::string &_objName, const std::string &_tabLabel, QWidget *_widget, QWidget *_cornerWidget=NULL)
Initialize the editor.
gazebo::gui::MainWindow
Definition: MainWindow.hh:43
Event.hh
gazebo::gui::Editor::~Editor
virtual ~Editor()
Destuctor.