mirror of https://github.com/CGAL/cgal
oops, something had gotten confused, CGALQT should now compile
This commit is contained in:
parent
82b9c5eb56
commit
2f35c55283
|
|
@ -22,6 +22,7 @@
|
|||
#define CGAL_KINETIC_IO_INTERNAL_QT_TIMER_H
|
||||
#include <map>
|
||||
#include <qtimer.h>
|
||||
#include <CGAL/Kinetic/Listener.h>
|
||||
namespace CGAL
|
||||
{
|
||||
namespace Kinetic
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
#include <CGAL/Kinetic/basic.h>
|
||||
#include <CGAL/IO/Qt_widget.h>
|
||||
#include <qmainwindow.h>
|
||||
#include <CGAL/Kinetic/Listener.h>
|
||||
|
||||
namespace CGAL
|
||||
{
|
||||
|
|
|
|||
|
|
@ -134,6 +134,33 @@
|
|||
return !operator>(o); \
|
||||
}
|
||||
|
||||
#define CGAL_COMPARISONS3(a, b, c) bool operator==(const This &o) const { \
|
||||
return (a== o.a && b== o.b && c == o.c); \
|
||||
} \
|
||||
bool operator!=(const This &o) const { \
|
||||
return (a!= o.a || b != o.b || c != o.c); \
|
||||
} \
|
||||
bool operator<(const This &o) const { \
|
||||
if (a < o.a ) return true; \
|
||||
else if (a > o.a) return false; \
|
||||
else if (b < o.b) return true; \
|
||||
else if (b > o.b) return false; \
|
||||
else return c < o.c; \
|
||||
} \
|
||||
bool operator>(const This &o) const { \
|
||||
if (a > o.a ) return true; \
|
||||
else if (a < o.a) return false; \
|
||||
else if (b > o.b) return true; \
|
||||
else if (b < o.b) return false; \
|
||||
else return c > o.c; \
|
||||
} \
|
||||
bool operator>=(const This &o) const { \
|
||||
return !operator<(o); \
|
||||
} \
|
||||
bool operator<=(const This &o) const { \
|
||||
return !operator>(o); \
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ void Qt_timer::run(double time_in_seconds) {
|
|||
|
||||
void Qt_timer::timerDone() {
|
||||
++tick_;
|
||||
cb_->new_notification(Listener::TICKS);
|
||||
CGAL_KINETIC_NOTIFY(TICKS);
|
||||
//cb_->new_notification(Listener::TICKS);
|
||||
}
|
||||
CGAL_KINETIC_END_INTERNAL_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -29,14 +29,15 @@ void Qt_widget_2_core::redraw() {
|
|||
clear();
|
||||
//std::cout << "size of drawables = " << drawable_s.size() << std::endl;
|
||||
is_drawn_=false;
|
||||
if (drawable_!= NULL) drawable_->new_notification(Listener::PICTURE_IS_CURRENT);
|
||||
CGAL_KINETIC_NOTIFY(PICTURE_IS_CURRENT);
|
||||
//if (drawable_!= NULL) drawable_->new_notification(Listener::PICTURE_IS_CURRENT);
|
||||
is_drawn_=true;
|
||||
unlock();
|
||||
//::CGAL::Qt_widget::redraw();
|
||||
}
|
||||
|
||||
Qt_widget_2_core::Qt_widget_2_core(QMainWindow *parent): ::CGAL::Qt_widget(parent) {
|
||||
drawable_=NULL;
|
||||
//drawable_=NULL;
|
||||
is_drawn_=false;
|
||||
}
|
||||
CGAL_KINETIC_END_INTERNAL_NAMESPACE
|
||||
|
|
|
|||
Loading…
Reference in New Issue