Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ign -> gz Migrate Ignition Headers : gz-gui #466

Merged
merged 8 commits into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ find_package(ignition-cmake2 2.14 REQUIRED)
#============================================================================
# Configure the project
#============================================================================
ign_configure_project()
ign_configure_project(
REPLACE_IGNITION_INCLUDE_PATH gz/gui
)

#============================================================================
# Set project-specific options
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
See the [Ignition Robotics contributing guide](https://ignitionrobotics.org/docs/all/contributing).
See the [Gazebo Robotics contributing guide](https://gazebosim.org/docs/all/contributing).
nkoenig marked this conversation as resolved.
Show resolved Hide resolved
320 changes: 160 additions & 160 deletions Changelog.md

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ Deprecated code produces compile-time warnings. These warning serve as
notification to users that their code should be upgraded. The next major
release will remove the deprecated code.

## Ignition GUI 3.10 to 3.11
## Gazebo GUI 3.10 to 3.11

* `Dialog::ReadConfigAttribute` doesn't create a missing file anymore.

## Ignition GUI 3.6 to 3.7
## Gazebo GUI 3.6 to 3.7

* The `Application::PluginAdded` signal used to send empty strings. Now it
sends the plugin's unique name.

## Ignition GUI 2.x to 3.x
## Gazebo GUI 2.x to 3.x

* Use rendering3, transport8 and msgs5.

## Ignition GUI 1.x to 2.x
## Gazebo GUI 1.x to 2.x

* Plugin headers are no longer installed.

* Use ignition msgs4, rendering2, and transport7.

## Ignition GUI 0.1.0 to 1.0.0
## Gazebo GUI 0.1.0 to 1.0.0

* Ignition GUI v1 uses QtQuick and it is not compatible with v0, which uses QWidgets.
* Gazebo GUI v1 uses QtQuick and it is not compatible with v0, which uses QWidgets.

2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
http://ignitionrobotics.org
http://gazebosim.org
4 changes: 2 additions & 2 deletions api.md.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Ignition @GZ_DESIGNATION_CAP@
## Gazebo @GZ_DESIGNATION_CAP@

Ignition @GZ_DESIGNATION_CAP@ is a component in Ignition Robotics, a set of libraries
Gazebo @GZ_DESIGNATION_CAP@ is a component in Gazebo Robotics, a set of libraries
nkoenig marked this conversation as resolved.
Show resolved Hide resolved
designed to rapidly develop robot and simulation applications.

## License
Expand Down
6 changes: 3 additions & 3 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This directory contains examples which are not shipped with Ignition GUI
This directory contains examples which are not shipped with Gazebo GUI

# Standalone

Expand All @@ -7,11 +7,11 @@ Ignition-GUI as a library

# Plugin

Examples of how to build plugins which can then be used with Ignition GUI's
Examples of how to build plugins which can then be used with Gazebo GUI's
command line tool, or used by standalone applications.

# Config

Example configuration files which can be used with Ignition GUI's command
Example configuration files which can be used with Gazebo GUI's command
line tool or with standalone applications

2 changes: 1 addition & 1 deletion examples/config/plugin_params.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<plugin filename="Publisher">
<!--
All elements within <ignition-gui> are parsed by Ignition GUI and common to
All elements within <ignition-gui> are parsed by Gazebo GUI and common to
all plugins.
-->
<ignition-gui>
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/custom_context_menu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ find_package (Qt5
REQUIRED
)

# Find the Ignition gui library
# Find the Gazebo gui library
find_package(ignition-gui3 REQUIRED)
find_package(ignition-common3 REQUIRED)

Expand Down
4 changes: 2 additions & 2 deletions examples/plugin/custom_context_menu/CustomContext.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
*/

#include <iostream>
#include <ignition/plugin/Register.hh>
#include <gz/plugin/Register.hh>

#include "CustomContext.hh"

using namespace ignition;
using namespace gz;
using namespace gui;

/////////////////////////////////////////////////
Expand Down
8 changes: 4 additions & 4 deletions examples/plugin/custom_context_menu/CustomContext.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
*
*/

#ifndef IGNITION_GUI_CUSTOMCONTEXTPLUGIN_HH_
#define IGNITION_GUI_CUSTOMCONTEXTPLUGIN_HH_
#ifndef GZ_GUI_CUSTOMCONTEXTPLUGIN_HH_
#define GZ_GUI_CUSTOMCONTEXTPLUGIN_HH_

#ifndef Q_MOC_RUN
#include <ignition/gui/qt.h>
#include <ignition/gui/Plugin.hh>
#include <gz/gui/qt.h>
#include <gz/gui/Plugin.hh>
#endif

namespace ignition
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/dialog_from_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ find_package (Qt5
REQUIRED
)

# Find the Ignition gui library
# Find the Gazebo gui library
find_package(ignition-gui3 REQUIRED)
find_package(ignition-common3 REQUIRED)

Expand Down
4 changes: 2 additions & 2 deletions examples/plugin/dialog_from_plugin/DialogFromPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
*/

#include <iostream>
#include <ignition/plugin/Register.hh>
#include <gz/plugin/Register.hh>

#include "DialogFromPlugin.hh"

using namespace ignition;
using namespace gz;
using namespace gui;

/////////////////////////////////////////////////
Expand Down
8 changes: 4 additions & 4 deletions examples/plugin/dialog_from_plugin/DialogFromPlugin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
*
*/

#ifndef IGNITION_GUI_DIALOGFROMPLUGIN_HH_
#define IGNITION_GUI_DIALOGFROMPLUGIN_HH_
#ifndef GZ_GUI_DIALOGFROMPLUGIN_HH_
#define GZ_GUI_DIALOGFROMPLUGIN_HH_

#ifndef Q_MOC_RUN
#include <ignition/gui/qt.h>
#include <ignition/gui/Plugin.hh>
#include <gz/gui/qt.h>
#include <gz/gui/Plugin.hh>
#endif

namespace ignition
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/hello_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ find_package (Qt5
REQUIRED
)

# Find the Ignition gui library
# Find the Gazebo gui library
find_package(ignition-gui3 REQUIRED)
find_package(ignition-common3 REQUIRED)

Expand Down
4 changes: 2 additions & 2 deletions examples/plugin/hello_plugin/HelloPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
*/

#include <iostream>
#include <ignition/plugin/Register.hh>
#include <gz/plugin/Register.hh>

#include "HelloPlugin.hh"

using namespace ignition;
using namespace gz;
using namespace gui;

/////////////////////////////////////////////////
Expand Down
10 changes: 5 additions & 5 deletions examples/plugin/hello_plugin/HelloPlugin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
*
*/

#ifndef IGNITION_GUI_HELLOPLUGIN_HH_
#define IGNITION_GUI_HELLOPLUGIN_HH_
#ifndef GZ_GUI_HELLOPLUGIN_HH_
#define GZ_GUI_HELLOPLUGIN_HH_

#include <string>

#include <ignition/gui/qt.h>
#include <ignition/gui/Plugin.hh>
#include <gz/gui/qt.h>
#include <gz/gui/Plugin.hh>

namespace ignition
{
Expand All @@ -37,7 +37,7 @@ namespace ignition
/// \brief Destructor
public: virtual ~HelloPlugin();

/// \brief Called by Ignition GUI when plugin is instantiated.
/// \brief Called by Gazebo GUI when plugin is instantiated.
/// \param[in] _pluginElem XML configuration for this plugin.
public: virtual void LoadConfig(const tinyxml2::XMLElement *_pluginElem)
override;
Expand Down
6 changes: 3 additions & 3 deletions examples/plugin/ign_components/IgnComponents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*
*/

#include <ignition/plugin/Register.hh>
#include <gz/plugin/Register.hh>
#include "IgnComponents.hh"

// Register this plugin
IGNITION_ADD_PLUGIN(ignition::gui::IgnComponents,
ignition::gui::Plugin);
IGNITION_ADD_PLUGIN(gz::gui::IgnComponents,
gz::gui::Plugin);
6 changes: 3 additions & 3 deletions examples/plugin/ign_components/IgnComponents.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
*
*/

#ifndef IGNITION_GUI_EXAMPLES_PLUGIN_IGNCOMPONENTS_HH_
#define IGNITION_GUI_EXAMPLES_PLUGIN_IGNCOMPONENTS_HH_
#ifndef GZ_GUI_EXAMPLES_PLUGIN_IGNCOMPONENTS_HH_
#define GZ_GUI_EXAMPLES_PLUGIN_IGNCOMPONENTS_HH_

#include <ignition/gui/Plugin.hh>
#include <gz/gui/Plugin.hh>

namespace ignition
{
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/ign_components/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Demo of QML components provided by Ignition GUI which can be
Demo of QML components provided by Gazebo GUI which can be
useful for downstream developers.

## Build
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/multiple_qml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ find_package (Qt5
REQUIRED
)

# Find the Ignition gui library
# Find the Gazebo gui library
find_package(ignition-gui3 REQUIRED)
find_package(ignition-common3 REQUIRED)

Expand Down
4 changes: 2 additions & 2 deletions examples/plugin/multiple_qml/MultipleQml.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
*/

#include <iostream>
#include <ignition/plugin/Register.hh>
#include <gz/plugin/Register.hh>

#include "MultipleQml.hh"

using namespace ignition;
using namespace gz;
using namespace gui;

/////////////////////////////////////////////////
Expand Down
8 changes: 4 additions & 4 deletions examples/plugin/multiple_qml/MultipleQml.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
*
*/

#ifndef IGNITION_GUI_EXAMPLES_PLUGINS_MULTIPLEQML_HH_
#define IGNITION_GUI_EXAMPLES_PLUGINS_MULTIPLEQML_HH_
#ifndef GZ_GUI_EXAMPLES_PLUGINS_MULTIPLEQML_HH_
#define GZ_GUI_EXAMPLES_PLUGINS_MULTIPLEQML_HH_

#ifndef Q_MOC_RUN
#include <ignition/gui/qt.h>
#include <ignition/gui/Plugin.hh>
#include <gz/gui/qt.h>
#include <gz/gui/Plugin.hh>
#endif

namespace ignition
Expand Down
2 changes: 1 addition & 1 deletion examples/standalone/custom_drawer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ find_package (Qt5
REQUIRED
)

# Find the Ignition gui library
# Find the Gazebo gui library
find_package(ignition-gui3 REQUIRED)

QT5_ADD_RESOURCES(resources_RCC custom_drawer.qrc)
Expand Down
2 changes: 1 addition & 1 deletion examples/standalone/custom_drawer/CustomDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Rectangle {
actionElement: "cppActionFromQml"
}

// Actions provided by Ignition GUI, with custom titles
// Actions provided by Gazebo GUI, with custom titles
ListElement {
title: "Call default action (Style)"
actionElement: "styleSettings"
Expand Down
16 changes: 8 additions & 8 deletions examples/standalone/custom_drawer/custom_drawer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,29 @@
*
*/

#include <ignition/common/Console.hh>
#include <gz/common/Console.hh>

#ifndef Q_MOC_RUN
#include <ignition/gui/Application.hh>
#include <ignition/gui/MainWindow.hh>
#include <ignition/gui/qt.h>
#include <gz/gui/Application.hh>
#include <gz/gui/MainWindow.hh>
#include <gz/gui/qt.h>
#include "custom_drawer.hh"
#endif

//////////////////////////////////////////////////
int main(int _argc, char **_argv)
{
// Increase verboosity so we see all messages
ignition::common::Console::SetVerbosity(4);
gz::common::Console::SetVerbosity(4);

// Initialize app
ignition::gui::Application app(_argc, _argv);
gz::gui::Application app(_argc, _argv);

// Hide original panel
app.LoadConfig("../custom_drawer.config");

// Let QML files use CustomActions' functions and properties
ignition::gui::CustomActions actions;
gz::gui::CustomActions actions;
auto context = new QQmlContext(app.Engine()->rootContext());
context->setContextProperty("CustomActions", &actions);

Expand All @@ -54,7 +54,7 @@ int main(int _argc, char **_argv)
QQmlEngine::setObjectOwnership(item, QQmlEngine::CppOwnership);

// Add to main window
auto win = app.findChild<ignition::gui::MainWindow *>()->QuickWindow();
auto win = app.findChild<gz::gui::MainWindow *>()->QuickWindow();
auto drawerItem = win->findChild<QQuickItem *>("sideDrawer");

item->setParentItem(drawerItem);
Expand Down
6 changes: 3 additions & 3 deletions examples/standalone/custom_drawer/custom_drawer.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
*
*/

#ifndef IGNITION_GUI_EXAMPLES_STANDALONE_CUSTOMDRAWER_HH_
#define IGNITION_GUI_EXAMPLES_STANDALONE_CUSTOMDRAWER_HH_
#ifndef GZ_GUI_EXAMPLES_STANDALONE_CUSTOMDRAWER_HH_
#define GZ_GUI_EXAMPLES_STANDALONE_CUSTOMDRAWER_HH_

#include <iostream>

#ifndef Q_MOC_RUN
#include <ignition/gui/qt.h>
#include <gz/gui/qt.h>
#endif

namespace ignition
Expand Down
2 changes: 1 addition & 1 deletion examples/standalone/dialogs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ find_package (Qt5
REQUIRED
)

# Find the Ignition gui library
# Find the Gazebo gui library
find_package(ignition-gui3 REQUIRED)

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${IGNITION-GUI_CXX_FLAGS}")
Expand Down
Loading