Skip to content

Commit 010adcc

Browse files
committed
fix the mentions of CGAL_USE_BASIC_VIEWER_QT (with the Qt suffix)
1 parent 991418e commit 010adcc

File tree

29 files changed

+45
-42
lines changed

29 files changed

+45
-42
lines changed

Arrangement_on_surface_2/doc/Arrangement_on_surface_2/CGAL/draw_arrangement_2.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ namespace CGAL {
2929
* `CGAL::Arrangement_2` class template. Parameters of the drawing are taken
3030
* from the optional graphics scene options parameter.
3131
*
32-
A call to this function blocks the execution of the program until the drawing window is closed. This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` (Qt viewer) is defined.
33-
Linking with the cmake target `CGAL::CGAL_Basic_viewer` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`.
32+
* A call to this function blocks the execution of the program until the drawing
33+
* window is closed. This function requires `CGAL_Qt6`, and is only available if
34+
* the macro `CGAL_USE_BASIC_VIEWER` is defined. Linking with the cmake target
35+
* `CGAL::CGAL_Basic_viewer` will link with `CGAL_Qt6` and add the definition
36+
* `CGAL_USE_BASIC_VIEWER`.
3437
*
3538
* \tparam GeometryTraits_2 a geometry traits type, a model of a 2D arrangement
3639
* traits concept. At this point it must be an instance of either

Basic_viewer/examples/Basic_viewer/draw_several_windows.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <CGAL/Graphics_scene_options.h>
88
#include <CGAL/Basic_viewer.h>
99

10-
#ifdef CGAL_USE_BASIC_VIEWER_QT
10+
#ifdef CGAL_USE_BASIC_VIEWER
1111
#include <QMainWindow>
1212
#endif
1313

@@ -55,7 +55,7 @@ int main(void)
5555
CGAL::add_to_graphics_scene(output_mesh, scene2);
5656

5757
/// (2) Qt code that create windows, add them in a layout, and create app.
58-
#ifdef CGAL_USE_BASIC_VIEWER_QT
58+
#ifdef CGAL_USE_BASIC_VIEWER
5959

6060
#if defined(CGAL_TEST_SUITE)
6161
bool cgal_test_suite=true;

Basic_viewer/examples/Basic_viewer/draw_surface_mesh_small_faces.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ int main(int argc, char* argv[])
103103

104104
add_to_graphics_scene(sm, gs, gsosm);
105105

106-
#ifdef CGAL_USE_BASIC_VIEWER_QT
106+
#ifdef CGAL_USE_BASIC_VIEWER
107107

108108
CGAL::Qt::QApplication_and_basic_viewer app(gs, "Small faces");
109109
if(app)

Basic_viewer/include/CGAL/Qt/Basic_viewer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2033,6 +2033,6 @@ void draw_graphics_scene(const Graphics_scene& graphics_scene,
20332033

20342034
} // End namespace CGAL
20352035

2036-
#endif // CGAL_USE_BASIC_VIEWER_QT
2036+
#endif // CGAL_USE_BASIC_VIEWER
20372037

20382038
#endif // CGAL_QT_BASIC_VIEWER_H

Boolean_set_operations_2/doc/Boolean_set_operations_2/CGAL/draw_polygon_set_2.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ struct Graphics_scene_options_polygon_set_2: public CGAL::Graphics_scene_options
2727
2828
opens a new window and draws a 2D polygon set. Parameters of the drawing are taken from the optional graphics scene options parameter.
2929
30-
A call to this function blocks the execution of the program until the drawing window is closed. This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER`/`CGAL_USE_BASIC_VIEWER` (Qt viewer) is defined.
31-
Linking with the cmake target `CGAL::CGAL_Basic_viewer`/`CGAL::CGAL_Basic_viewer` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`/`CGAL_USE_BASIC_VIEWER`.
30+
A call to this function blocks the execution of the program until the drawing window is closed. This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined.
31+
Linking with the cmake target `CGAL::CGAL_Basic_viewer` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`.
3232
3333
\tparam PS2 which must be an instantiation of a `CGAL::Polygon_set_2<...>`.
3434
\tparam GSOptions a model of `GraphicsSceneOptionsPolygonSet2` concept.

Boolean_set_operations_2/include/CGAL/draw_polygon_set_2.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ void compute_elements(const PWH& pwh,
166166

167167
} // End namespace draw_function_for_boolean_set_2
168168

169-
#if defined(CGAL_USE_BASIC_VIEWER_QT)
169+
#if defined(CGAL_USE_BASIC_VIEWER)
170170

171171
template <typename PolygonSet_2, typename GSOptions>
172172
class Polygon_set_2_basic_viewer_qt : public Basic_viewer
@@ -261,7 +261,7 @@ class Polygon_set_2_basic_viewer_qt : public Basic_viewer
261261
GSOptions& gso;
262262
};
263263

264-
#endif // CGAL_USE_BASIC_VIEWER_QT
264+
#endif // CGAL_USE_BASIC_VIEWER
265265

266266
#define CGAL_PS2_TYPE CGAL::Polygon_set_2<T, C, D>
267267

@@ -292,7 +292,7 @@ void draw(const CGAL_PS2_TYPE& ps, GSOptions& gso,
292292
CGAL_USE(gso);
293293
CGAL_USE(title);
294294

295-
#ifdef CGAL_USE_BASIC_VIEWER_QT
295+
#ifdef CGAL_USE_BASIC_VIEWER
296296
#if defined(CGAL_TEST_SUITE)
297297
bool cgal_test_suite = true;
298298
#else
@@ -311,7 +311,7 @@ void draw(const CGAL_PS2_TYPE& ps, GSOptions& gso,
311311
basic_viewer.show();
312312
app.exec();
313313
}
314-
#endif // CGAL_USE_BASIC_VIEWER_QT
314+
#endif // CGAL_USE_BASIC_VIEWER
315315
}
316316

317317
template<class T, class C, class D>

Installation/cmake/modules/CGALConfig_binary.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ endif()
211211
if (NOT TARGET CGAL::CGAL_Basic_viewer_Qt)
212212
add_library(CGAL::CGAL_Basic_viewer_Qt INTERFACE IMPORTED GLOBAL)
213213
set_target_properties(CGAL::CGAL_Basic_viewer_Qt PROPERTIES
214-
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER_QT;QT_NO_KEYWORDS"
214+
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER;QT_NO_KEYWORDS"
215215
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt6)
216216
add_library(CGAL::CGAL_Basic_viewer ALIAS CGAL::CGAL_Basic_viewer_Qt)
217217
endif()

Installation/cmake/modules/CGALConfig_install.cmake.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ endif()
196196
if (NOT TARGET CGAL::CGAL_Basic_viewer_Qt)
197197
add_library(CGAL::CGAL_Basic_viewer_Qt INTERFACE IMPORTED GLOBAL)
198198
set_target_properties(CGAL::CGAL_Basic_viewer_Qt PROPERTIES
199-
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER_QT;QT_NO_KEYWORDS"
199+
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER;QT_NO_KEYWORDS"
200200
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt6)
201-
add_library(CGAL::CGAL_Basic_viewer ALIAS CGAL::CGAL_Basic_viewer_Qt)
201+
add_library(CGAL::CGAL_Basic_viewer ALIAS CGAL::CGAL_Basic_viewer_Qt)
202202
endif()
203203

204204
include("${CGAL_MODULES_DIR}/CGAL_enable_end_of_configuration_hook.cmake")

Installation/cmake/modules/CGAL_add_test.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function(cgal_add_compilation_test exe_name)
124124
if(TARGET CGAL_Qt6_moc_and_resources) # if CGAL_Qt6 was searched, and is header-only
125125
get_property(linked_libraries TARGET "${exe_name}" PROPERTY LINK_LIBRARIES)
126126
# message(STATUS "${exe_name} depends on ${linked_libraries}")
127-
if( ("CGAL_Qt6" IN_LIST linked_libraries OR "CGAL::CGAL_Qt6" IN_LIST linked_libraries OR "CGAL::CGAL_Basic_viewer_Qt" IN_LIST linked_libraries)
127+
if( ("CGAL_Qt6" IN_LIST linked_libraries OR "CGAL::CGAL_Qt6" IN_LIST linked_libraries OR "CGAL::CGAL_Basic_viewer" IN_LIST linked_libraries)
128128
AND NOT TARGET "compilation_of__CGAL_Qt6_moc_and_resources")
129129
# This custom target is useless. It is used only as a flag to
130130
# detect that the test has already been created.

Installation/cmake/modules/CGAL_enable_end_of_configuration_hook.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function(CGAL_hook_fix_ctest_depending_on_Qt6)
110110
continue()
111111
endif()
112112
get_property(_target_links TARGET ${_target} PROPERTY LINK_LIBRARIES)
113-
if("CGAL_Qt6" IN_LIST _target_links OR "CGAL::CGAL_Qt6" IN_LIST _target_links OR "CGAL::CGAL_Basic_viewer_Qt" IN_LIST _target_links)
113+
if("CGAL_Qt6" IN_LIST _target_links OR "CGAL::CGAL_Qt6" IN_LIST _target_links OR "CGAL::CGAL_Basic_viewer" IN_LIST _target_links)
114114
set_property(TEST "compilation of ${_target}" APPEND PROPERTY FIXTURES_REQUIRED CGAL_Qt6_moc_and_resources_Fixture)
115115
endif()
116116
endforeach()

0 commit comments

Comments
 (0)