Back to index

scribus-ng  1.3.4.dfsg+svn20071115
rulermover.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /***************************************************************************
00008                           rulermover.h  -  description
00009                              -------------------
00010     begin                : Sun Jul 24 2005
00011     copyright            : (C) 2005 by Franz Schmid
00012     email                : Franz.Schmid@altmuehlnet.de
00013  ***************************************************************************/
00014 
00015 /***************************************************************************
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  ***************************************************************************/
00023 
00024 #ifndef RULERMOVER_H
00025 #define RULERMOVER_H
00026 
00027 #include <qwidget.h>
00028 
00029 #include "scribusapi.h"
00030 class ScribusView;
00031 
00032 class SCRIBUS_API RulerMover : public QWidget
00033 {
00034        Q_OBJECT
00035 
00036 public:
00037        RulerMover(ScribusView *pa);
00038        ~RulerMover() {};
00039         void mouseDoubleClickEvent(QMouseEvent *);
00040        void mousePressEvent(QMouseEvent *m);
00041        void mouseReleaseEvent(QMouseEvent *m);
00042        void mouseMoveEvent(QMouseEvent *m);
00043        bool Mpressed;
00044 
00045 private: // Private attributes
00046        ScribusView *currView;
00047 };
00048 
00049 #endif