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

kstars

thumbnailpicker.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           thumbnailpicker.h  -  description
00003                              -------------------
00004     begin                : Thu Mar 2 2005
00005     copyright            : (C) 2005 by Jason Harris
00006     email                : kstars@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 #ifndef THUMBNAILPICKER_H
00019 #define THUMBNAILPICKER_H
00020 
00021 #include <kdialogbase.h>
00022 #include <kio/netaccess.h>
00023 #include <kio/job.h>
00024 
00025 class ThumbnailPickerUI;
00026 class ThumbnailEditor;
00027 class QPixmap;
00028 class QFile;
00029 class QRect;
00030 class DetailDialog;
00031 class SkyObject;
00032 
00037 class ThumbnailPicker : public KDialogBase
00038 {
00039 Q_OBJECT
00040 public:
00041     ThumbnailPicker( SkyObject *o, const QPixmap &current, QWidget *parent=0, const char *name=0 );
00042     ~ThumbnailPicker();
00043 
00044     QPixmap* image() { return Image; }
00045     QPixmap* currentListImage() { return PixList.at( SelectedImageIndex ); }
00046     bool imageFound() const { return bImageFound; }
00047     QRect* imageRect() const { return ImageRect; }
00048 
00049 private slots:
00050     void slotEditImage();
00051     void slotUnsetImage();
00052     void slotSetFromList( int i );
00053     void slotSetFromURL();
00054     void slotFillList();
00055 
00057     void downloadReady (KIO::Job *);
00058 
00059 private:
00060     QPixmap shrinkImage( QPixmap *original, int newSize, bool setImage=false );
00061     void parseGooglePage( QStringList &ImList, QString URL );
00062 
00063     int SelectedImageIndex;
00064     ThumbnailPickerUI *ui;
00065     QPixmap *Image;
00066     DetailDialog *dd;
00067     SkyObject *Object;
00068     QPtrList<KIO::Job> JobList;
00069     QPtrList<QPixmap> PixList;
00070     bool bImageFound;
00071     QRect *ImageRect;
00072 };
00073 
00074 #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