Logo Search packages:      
Sourcecode: marble version File versions

katlasviewinputhandler.h

//
// C++ Interface: katlasviewinputhandler.h
//
// Description: KAtlasViewInputHandler 

// The KAtlasViewInputHandler handles mouse and keyboard input.
//
// Author: Torsten Rahn <tackat@kde.org>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution

#ifndef KATLASVIEWINPUTHANDLER_H
#define KATLASVIEWINPUTHANDLER_H

#include <QObject>
#include <QKeyEvent>
#include <QEvent>
#include <QPixmap>
#include <QCursor>
#include <QTime>
#include "katlasglobe.h"

/**
@author Torsten Rahn
*/
class KAtlasView;

class KAtlasViewInputHandler  : public QObject {

    Q_OBJECT

public:
      KAtlasViewInputHandler(KAtlasView*, KAtlasGlobe*);
      virtual ~KAtlasViewInputHandler(){};

signals:
      void lmbRequest( int, int );

protected:
      QPixmap curpmtl, curpmtc, curpmtr, curpmcr, curpmcl, curpmbl, curpmbc, curpmbr;
      QCursor arrowcur[3][3];
      KAtlasView* m_gpview;
      KAtlasGlobe* m_globe;
      int dirx, diry;

      bool m_leftpressed, m_midpressed;
      int m_leftpressedx, m_leftpressedy, m_midpressedy;
      float m_leftpresseda, m_leftpressedb;

      bool eventFilter( QObject *, QEvent * );
      QTime m_dragtimer;
};

#endif // KATLASVIEWINPUTHANDLER

Generated by  Doxygen 1.6.0   Back to index