From b04c1e1a96219ecdd0f3f28b9494bdcd1852e01e Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Mon, 24 Apr 2017 11:51:06 +0200 Subject: [PATCH] Change name for UI so it matches the naming convention. --- ...Basic_dialog_plugin.ui => Basic_dialog.ui} | 0 .../Three/Example_plugin/Basic_plugin.cpp | 2 +- .../demo/Three/Example_plugin/CMakeLists.txt | 2 +- .../Three/Example_plugin/Example_plugin.ui | 156 ------------------ Three/doc/Three/Three.txt | 4 +- 5 files changed, 4 insertions(+), 160 deletions(-) rename Three/demo/Three/Example_plugin/{Basic_dialog_plugin.ui => Basic_dialog.ui} (100%) delete mode 100644 Three/demo/Three/Example_plugin/Example_plugin.ui diff --git a/Three/demo/Three/Example_plugin/Basic_dialog_plugin.ui b/Three/demo/Three/Example_plugin/Basic_dialog.ui similarity index 100% rename from Three/demo/Three/Example_plugin/Basic_dialog_plugin.ui rename to Three/demo/Three/Example_plugin/Basic_dialog.ui diff --git a/Three/demo/Three/Example_plugin/Basic_plugin.cpp b/Three/demo/Three/Example_plugin/Basic_plugin.cpp index b357e249ccb..568bb284b6a 100644 --- a/Three/demo/Three/Example_plugin/Basic_plugin.cpp +++ b/Three/demo/Three/Example_plugin/Basic_plugin.cpp @@ -5,7 +5,7 @@ Change the value of EXAMPLE_COMPLEXITY in the first line to change the behavior - 2 : pops-up a little more elaborated dialog asking to enter an integer , then prints it in the Info and console widgets if it was indeed an integer, else pops-up an error message box. */ #define EXAMPLE_COMPLEXITY 0 -#include "ui_Basic_dialog_plugin.h" +#include "ui_Basic_dialog.h" //! [headers_plugin] #include #include diff --git a/Three/demo/Three/Example_plugin/CMakeLists.txt b/Three/demo/Three/Example_plugin/CMakeLists.txt index e979520c974..aac852f0bc0 100644 --- a/Three/demo/Three/Example_plugin/CMakeLists.txt +++ b/Three/demo/Three/Example_plugin/CMakeLists.txt @@ -37,7 +37,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}") polyhedron_demo_plugin(example_plugin Example_plugin) - qt5_wrap_ui( basicUI_FILES Basic_dialog_plugin.ui ) + qt5_wrap_ui( basicUI_FILES Basic_dialog.ui ) polyhedron_demo_plugin(basic_plugin Basic_plugin ${basicUI_FILES}) qt5_wrap_ui( dockUI_FILES Basic_dock_widget.ui ) diff --git a/Three/demo/Three/Example_plugin/Example_plugin.ui b/Three/demo/Three/Example_plugin/Example_plugin.ui deleted file mode 100644 index e358f58e5c7..00000000000 --- a/Three/demo/Three/Example_plugin/Example_plugin.ui +++ /dev/null @@ -1,156 +0,0 @@ - - - Polyhedron_demo_example_plugin_dialog - - - - 0 - 0 - 400 - 199 - - - - Triangle coordinates - - - - - 40 - 150 - 341 - 32 - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - 9 - 9 - 381 - 121 - - - - - - - Point C - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Point A - - - - - - - Point B - - - - - - - X - - - - - - - Y - - - - - - - Z - - - - - - - TextLabel - - - - - - - - - - buttonBox - accepted() - Polyhedron_demo_example_plugin_dialog - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() - Polyhedron_demo_example_plugin_dialog - reject() - - - 316 - 260 - - - 286 - 274 - - - - - diff --git a/Three/doc/Three/Three.txt b/Three/doc/Three/Three.txt index 7645e3e568b..3af25452f09 100644 --- a/Three/doc/Three/Three.txt +++ b/Three/doc/Three/Three.txt @@ -82,9 +82,9 @@ For a more elaborate interface, you will have to use the designer tool of QtCrea * \image html menu_2.png Then select among the template/form choices. * \image html menu_3.png -Name it Xxxx_yyyy_plugin_dialog.ui (you may have to rename it once it is created as QtCreator tends to forget the capital letters), and add it to the project in the CMakeLists : +Name it Xxxx_yyyy_dialog.ui (you may have to rename it once it is created as QtCreator tends to forget the capital letters), and add it to the project in the CMakeLists : - qt5_wrap_ui( basicUI_FILES Basic_dialog_plugin.ui ) + qt5_wrap_ui( basicUI_FILES Basic_dialog.ui ) polyhedron_demo_plugin(basic_plugin Basic_plugin ${basicUI_FILES}) Add a layout to the dialog with a drag and drop and lay it out.