Commit Graph

966 Commits

Author SHA1 Message Date
Laurent Rineau 31d06fc92d Bump for 1.3.1 (26 Nov 2002) 2002-11-26 14:12:43 +00:00
Laurent Rineau 815758e287 Revert my changes: Qt_widget no longer derives from QFrame. If we want a
border, one can use a QFrame parent of the Qt_widget. It will be probably
more efficient. Thank to Radu for not having agreed to easily: it
prevended my from doing an error. ;-)
2002-11-26 09:58:42 +00:00
Laurent Rineau bc69c33cd6 Added comments about the last modifications I made. 2002-11-26 07:51:14 +00:00
Laurent Rineau 2b2b2a9264 - Renaming set_scale_center(x,y) to set_ranges_const_center(): this
functions set ranges (xmin,ymin,xmax,ymax) with constant center. Arguments
where always equal to xcenter, ycenter thus they were uneeded.
- Use drawContents(QPainter*), the protected method of QFrame called by
QFrame::paintEvent(...). paintEvent(...) is no longer overridden.
- Added comments in include/CGAL/IO/Qt_widget.h to explain the role of
private functions. It was increasingly difficult to understand the code.
- New void Qt_widget::frameChanged() function, that resize the pixmap if
the frame border is changed.
2002-11-26 07:47:03 +00:00
Laurent Rineau 0e589b74ae I forgot to swap the connect(...) too. 2002-11-26 07:28:21 +00:00
Laurent Rineau cd27a5b499 I have changed a lot the class Qt_widget_standard_toolbar.
- It now derives from QToolBar, as it should have since the beginning.
- The constructor has now additional facultative parameters:
    Dock = DockTop,
    bool newLine = true,
    const char* name = 0
  With Qt-3, the first parameter is
QMainWindow::ToolBarDock=QMainWindow::Top
- The header file has been cleaned from uneeded includes or pointer
declarations.
- The backward compatibility has been preserved by adapted default values.
- I have filled bug #36 for as a reminder for documentation changes.
2002-11-26 02:25:54 +00:00
Laurent Rineau 60e3714355 Added a linebreak at end of those files, to remove warnings under linux.
A test file is not correct if it doesn't end by a linebreak.
2002-11-26 01:50:49 +00:00
Laurent Rineau 251d92f0e8 Fix the clean rule in some demo makefiles (Largest_empty_rect_2 and all
tutorials).
We should use create_makefile -q
2002-11-26 01:48:56 +00:00
Laurent Rineau 7db5b59af8 I have a made a change in the library, that can appear to be important,
but is quite small actually:
Qt_widget now derives from QFrame instead of QWidget. The differences are
that:
- the Qt_widget can have a border, like a QFrame
- the drawing area is not the whole Qt_widget but the contentsRect()
rectangle, which is the widget without its border.
As, by default, the border is null, it should change anything for
compatibility. By default, a QFrame is like a QWidget.
2002-11-25 17:44:21 +00:00
Laurent Rineau 3db15d4e86 There wasn't any .cvsignore in the Nef_2 directory. Added. 2002-11-25 17:38:36 +00:00
Laurent Rineau b8812477f5 This file Makefile (with an upper case M) is for development only and
doesn't go into the package.
While developping Qt_widget, the libCGALQt.a file shouldn't be moved into
the CGAL installation! That's why is should be commented.
Under unix, to use this last version anyway, use:
  make CUSTOM_LIBPATH="/path/to/Qt_widget/src/CGALQt"
instead of make. It works with GNU Make at least.
2002-11-25 17:15:22 +00:00
Laurent Rineau 94f873e107 Fix contrained.C: this demo was crashing when the file data/fish wasn't
found.
2002-11-25 17:07:43 +00:00
Laurent Rineau 6e30bfab04 I really don't understand why zoom_rect was changing the color when
deactivating.
2002-11-23 14:04:43 +00:00
Radu Ursu e4fd21ca3b Bump for 1.3.0 (12 Nov 2002) 2002-11-12 13:39:18 +00:00
Radu Ursu 706c52fbb5 updated 2002-11-12 13:39:06 +00:00
Radu Ursu edc1bba4bc The demos know about small and big icons.
By default all the demos use small icons. To change them just use big icons in your mainwindow.
2002-11-12 13:34:23 +00:00
Radu Ursu 5b3cc93b4b small pixmaps were added in the same file as the big pixmaps
the name is composed by : filename_small_xpm
2002-11-12 09:36:42 +00:00
Radu Ursu c78cece288 Bump for 1.2.49 ( 8 Nov 2002) 2002-11-08 08:18:14 +00:00
Radu Ursu b2024bc4a5 updated 2002-11-08 08:17:48 +00:00
Radu Ursu 328d8f6893 Fixed error in VC7 testsuite:
error C2027: use of undefined type 'QMainWindow'
c:\Qt\3.0.4.NET\include\qdockwindow.h(56) : see declaration of 'QMainWindow'
2002-11-06 09:45:18 +00:00
Radu Ursu 071f5cbfe5 Removed CGAL_NO_LEDA_HANDLE macro definition.
The patch applied to install_cgal for CGAL_QT_LDFLAGS when Qt is not installed works also when you use Leda and don't use Qt.
2002-11-04 13:52:38 +00:00
Susan Hert 80b574bae4 remove Susan as maintainer 2002-11-04 11:29:58 +00:00
Radu Ursu e49caf8da6 Try to fix the linker error for those that have Leda installed and don't have Qt. (Borland compiler)
Scavenging LEDA, we provide the identical functionality in the CGAL classes Leda_like_handle and Leda_like_rep. If LEDA is not available or CGAL_NO_LEDA_HANDLE is set, Handle and Rep correspond to these types.


typedef Leda_like_handle Handle;
typedef Leda_like_rep    Rep;
2002-11-04 10:00:10 +00:00
Radu Ursu 6a27f85e3a Fixed bug in VC7. Maibe it was also in Linux. 2002-10-29 17:28:07 +00:00
Radu Ursu 22d44d1fc3 Fixed bug for VC7. Maibe it was also present in Linux. 2002-10-29 16:28:11 +00:00
Laurent Rineau c59fae0fd5 to_double has to be prefixed by CGAL::, even when we are in the CGAL
namespace, because however there can be a conflict with the to_double
function defined by LEDA in the global namespace.
2002-10-28 16:45:53 +00:00
Radu Ursu f580e8f105 Bump for 1.2.48 (25 Oct 2002) 2002-10-25 12:35:54 +00:00
Radu Ursu 922dca2ffa updated 2002-10-25 12:35:43 +00:00
Radu Ursu e340dc9e34 Solved Qt warning:
QLayout "unnamed" added to QWidget "Main_layout", which already had a layout.
2002-10-25 09:24:59 +00:00
Radu Ursu c01943f50b an image for alpha_shapes demo
requested by Mariette
2002-10-25 09:23:25 +00:00
Radu Ursu 14d2d756b5 #include <CGAL/Cartesian.h> -> #include <CGAL/Simple_cartesian.h>
Solved bug in output operator for segment in Qt_widget. The operator compute the intersection between the segment and the iso_rectangle using Simple_cartesian<double> kernel.
2002-10-24 13:27:05 +00:00
Radu Ursu 1cadfe5ec0 The layers contain one more boolean member, that is made false by default:
bool does_eat_events;
When you use attach_standard for attaching a layer, this field is true.
The show_mouse_coordinates have this member made false by the standard toolbar.

The widget send the events to the other active layers attached only if there is no other standard_layer active that eat events.
2002-10-23 09:25:28 +00:00
Radu Ursu 23b8c2e65c File name mentioned in header (Qt_layer_show_mouse_coordinates.h) is incorrect. 2002-10-22 13:04:15 +00:00
Radu Ursu 1d73937be1 Bump for 1.2.47 (22 Oct 2002) 2002-10-22 12:49:24 +00:00
Radu Ursu a2b1f60efc updated 2002-10-22 12:49:03 +00:00
Radu Ursu 146983f6e7 the widget resizes to fit the bounding box of the loaded triangulation 2002-10-22 10:54:44 +00:00
Radu Ursu 2461b086cf the widget resize to fit the bounding box of the triangulation loaded 2002-10-22 10:38:46 +00:00
Radu Ursu de9ce3ea52 removed p_Less_xy
the widget fit in the bounding box of the loaded triangulation
2002-10-22 09:01:58 +00:00
Radu Ursu e79f6a2734 fixed history behaviour in resize event
add_to_history is now called in set_scales
set_scales is called even when the widget is not visible and the visibility test has moved in set_scales
2002-10-22 07:47:07 +00:00
Radu Ursu b55f2b48c5 add_to_history() and configure_history_buttons should not be added in the showEvent. 2002-10-21 15:29:08 +00:00
Radu Ursu ff006e6ba5 added preprocessor directives to make the struct Rep definition work in this .h 2002-10-21 15:09:51 +00:00
Radu Ursu 77109c5557 The show_coordinates layer from the standard toolbar is using attach() method instead of attach_standard(). Reason: Should not eat the events when is active. 2002-10-21 14:38:26 +00:00
Radu Ursu 9679e98695 Bump for 1.2.46 (18 Oct 2002) 2002-10-18 11:34:00 +00:00
Radu Ursu a01333c917 updated 2002-10-18 11:33:43 +00:00
Radu Ursu 0ad9dbc601 The demos use the layer show_coordinates from the standard toolbar. 2002-10-18 11:30:05 +00:00
Radu Ursu 62691be831 Qt_widget_show_mouse_coordinates layer is a part of the standard toolbar. 2002-10-18 08:58:54 +00:00
Radu Ursu 2a9633e33e The show_mouse_coordinates layer became a part of standard_toolbar
The Qt_layer_show_mouse_coordinates will be removed.
2002-10-18 08:57:36 +00:00
Radu Ursu ef987e776d Bump for 1.2.45 (18 Oct 2002) 2002-10-18 07:33:16 +00:00
Radu Ursu fcd4d20b66 updated 2002-10-18 07:32:25 +00:00
Radu Ursu c1de4507b9 Because of the VC++ Internal Compiler Error
Use a struct derived from the Kernel as the Filtered Kernel.
2002-10-17 13:55:51 +00:00