• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

mapcanvas.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           mapcanvas.h  -  K Desktop Planetarium
00003                              -------------------
00004     begin                : Tue Apr 10 2001
00005     copyright            : (C) 2001 by Jason Harris
00006     email                : jharris@30doradus.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 
00019 
00020 
00021 #ifndef MAPCANVAS_H
00022 #define MAPCANVAS_H
00023 
00024 #include <qwidget.h>
00025 #include <qpoint.h>
00026 
00037 class QPixmap;
00038 
00039 class MapCanvas : public QWidget  {
00040     Q_OBJECT
00041 public: 
00046     MapCanvas(QWidget *parent=0, const char *name=0);
00049     ~MapCanvas();
00050     
00051 public slots:
00061     virtual void setGeometry( int x, int y, int w, int h );
00062     
00071     virtual void setGeometry( const QRect &r );
00072 
00073 protected:
00080     virtual void paintEvent( QPaintEvent *e );
00081     
00086     virtual void mousePressEvent( QMouseEvent *e );
00087 
00088 private:
00089     QPixmap *Canvas, *bgImage;
00090     QString BGColor;
00091     QPoint origin;
00092 };
00093 
00094 #endif

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal