Change name for UI so it matches the naming convention.

This commit is contained in:
Maxime Gimeno 2017-04-24 11:51:06 +02:00
parent 467e642926
commit b04c1e1a96
5 changed files with 4 additions and 160 deletions

View File

@ -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 <CGAL/Three/Polyhedron_demo_plugin_interface.h>
#include <QApplication>

View File

@ -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 )

View File

@ -1,156 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Polyhedron_demo_example_plugin_dialog</class>
<widget class="QDialog" name="Polyhedron_demo_example_plugin_dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>199</height>
</rect>
</property>
<property name="windowTitle">
<string>Triangle coordinates</string>
</property>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry">
<rect>
<x>40</x>
<y>150</y>
<width>341</width>
<height>32</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
<widget class="QWidget" name="gridLayoutWidget">
<property name="geometry">
<rect>
<x>9</x>
<y>9</y>
<width>381</width>
<height>121</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="3">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Point C</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QDoubleSpinBox" name="doubleSpinBox_Az"/>
</item>
<item row="2" column="2">
<widget class="QDoubleSpinBox" name="doubleSpinBox_By"/>
</item>
<item row="2" column="3">
<widget class="QDoubleSpinBox" name="doubleSpinBox_Cy"/>
</item>
<item row="3" column="2">
<widget class="QDoubleSpinBox" name="doubleSpinBox_Bz"/>
</item>
<item row="3" column="3">
<widget class="QDoubleSpinBox" name="doubleSpinBox_Cz"/>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="doubleSpinBox_Ax"/>
</item>
<item row="1" column="3">
<widget class="QDoubleSpinBox" name="doubleSpinBox_Cx"/>
</item>
<item row="2" column="1">
<widget class="QDoubleSpinBox" name="doubleSpinBox_Ay"/>
</item>
<item row="1" column="2">
<widget class="QDoubleSpinBox" name="doubleSpinBox_Bx"/>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label">
<property name="text">
<string>Point A</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Point B</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>X</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Y</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Z</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="triangle_name_label">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Polyhedron_demo_example_plugin_dialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Polyhedron_demo_example_plugin_dialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -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.