00001 /* 00002 This file is part of geometria. 00003 00004 geometria is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published 00006 by the Free Software Foundation; either version 2 of the License, 00007 or (at your option) any later version. 00008 00009 geometria is distributed in the hope that it will be useful, but 00010 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00011 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 00012 License for more details. 00013 00014 You should have received a copy of the GNU General Public 00015 License along with geometria; if not, write to the Free Software 00016 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 00017 00018 (c) Philipp Moritz, 2006 00019 */ 00020 00021 #ifndef RENDER_AREA_HPP 00022 #define RENDER_AREA_HPP 00023 00024 #include <QtGui/QWidget> 00025 #include "../kernel/kernel_fassade.hpp" 00026 00027 class render_area : public QWidget 00028 { 00029 public: 00030 render_area(QWidget *parent = 0); 00031 ~render_area(); 00032 QSize minimumSizeHint() const; 00033 QSize sizeHint() const; 00034 protected: 00035 void paintEvent(QPaintEvent *event); 00036 00037 void mousePressEvent(QMouseEvent *event); 00038 void mouseMoveEvent(QMouseEvent *event); 00039 void mouseReleaseEvent(QMouseEvent *event); 00040 private: 00041 geo_point_ref m_dragging_point; 00042 }; 00043 00044 #endif