• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
thumbnailpicker.h
Go to the documentation of this file.
1 /***************************************************************************
2  thumbnailpicker.h - description
3  -------------------
4  begin : Thu Mar 2 2005
5  copyright : (C) 2005 by Jason Harris
6  email : kstars@30doradus.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef THUMBNAILPICKER_H_
19 #define THUMBNAILPICKER_H_
20 
21 #include <QPixmap>
22 
23 #include <kdialog.h>
24 #include <kio/netaccess.h>
25 #include <kio/job.h>
26 
27 #include "ui_thumbnailpicker.h"
28 
29 class QPixmap;
30 class QRect;
31 class DetailDialog;
32 class SkyObject;
33 
34 class ThumbnailPickerUI : public QFrame, public Ui::ThumbnailPicker {
35  Q_OBJECT
36 public:
37  explicit ThumbnailPickerUI( QWidget *p );
38 };
39 
43 class ThumbnailPicker : public KDialog
44 {
45  Q_OBJECT
46 public:
47  ThumbnailPicker( SkyObject *o, const QPixmap &current, QWidget *parent=0, double w = 200, double h= 200, QString cap = i18n ( "Choose Thumbnail Image" ) );
48  ~ThumbnailPicker();
49 
50  QPixmap* image() { return Image; }
51  QPixmap* currentListImage() { return PixList.at( SelectedImageIndex ); }
52  bool imageFound() const { return bImageFound; }
53  QRect* imageRect() const { return ImageRect; }
54 
55 private slots:
56  void slotEditImage();
57  void slotUnsetImage();
58  void slotSetFromList( int i );
59  void slotSetFromURL();
60  void slotFillList();
61 
63  void slotJobResult(KJob *);
64 
65 private:
66  QPixmap shrinkImage( QPixmap *original, int newSize, bool setImage=false );
67  void parseGooglePage( QStringList &ImList, const QString &URL );
68 
69  int SelectedImageIndex;
70  double wid, ht;
71  ThumbnailPickerUI *ui;
72  QPixmap *Image;
73  DetailDialog *dd;
74  SkyObject *Object;
75  QList<KIO::Job*> JobList;
76  QList<QPixmap*> PixList;
77  bool bImageFound;
78  QRect *ImageRect;
79 };
80 
81 #endif
DetailDialog
window showing detailed information for a selected object.
Definition: detaildialog.h:88
ThumbnailPickerUI::ThumbnailPickerUI
ThumbnailPickerUI(QWidget *p)
Definition: thumbnailpicker.cpp:40
QWidget
KDialog
ThumbnailPicker::imageFound
bool imageFound() const
Definition: thumbnailpicker.h:52
ThumbnailPickerUI
Definition: thumbnailpicker.h:34
ThumbnailPicker::image
QPixmap * image()
Definition: thumbnailpicker.h:50
ThumbnailPicker::ThumbnailPicker
ThumbnailPicker(SkyObject *o, const QPixmap &current, QWidget *parent=0, double w=200, double h=200, QString cap=i18n("Choose Thumbnail Image"))
Definition: thumbnailpicker.cpp:44
ThumbnailPicker::~ThumbnailPicker
~ThumbnailPicker()
Definition: thumbnailpicker.cpp:74
SkyObject
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
QFrame
ThumbnailPicker::imageRect
QRect * imageRect() const
Definition: thumbnailpicker.h:53
QList
ThumbnailPicker::currentListImage
QPixmap * currentListImage()
Definition: thumbnailpicker.h:51
ThumbnailPicker
Dialog for modifying an object's thumbnail image.
Definition: thumbnailpicker.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal