• 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
  • dialogs
exportimagedialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  exportimagedialog.h - K Desktop Planetarium
3  -------------------
4  begin : Mon Jun 13 2011
5  copyright : (C) 2011 by Rafał Kułaga
6  email : rl.kulaga@gmail.com
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 EXPORTIMAGEDIALOG_H
19 #define EXPORTIMAGEDIALOG_H
20 
21 #include "ui_exportimagedialog.h"
22 
23 #include "../printing/legend.h"
24 
25 class KStars;
26 class SkyQPainter;
27 class QString;
28 class QSize;
29 class ImageExporter;
30 
31 // ExportImageDialog user interface.
32 class ExportImageDialogUI : public QFrame, public Ui::ExportImageDialog
33 {
34  Q_OBJECT
35 
36 public:
37  explicit ExportImageDialogUI(QWidget *parent = 0);
38 };
39 
40 
44 class ExportImageDialog : public KDialog
45 {
46  Q_OBJECT
47 
48 public:
55  ExportImageDialog(const QString &url, const QSize &size, ImageExporter *imgExporter = 0);
56 
58  ~ExportImageDialog() { }
59 
60  inline void setOutputUrl(const QString &url) { m_Url = url; }
61  inline void setOutputSize(const QSize &size) { m_Size = size; }
62 
63 private slots:
64  void switchLegendEnabled(bool enabled);
65  void previewImage();
66  void exportImage();
67 
68  void setupWidgets();
69  void setupConnections();
70  void updateLegendSettings();
71 
72 private:
73  KStars *m_KStars;
74  ExportImageDialogUI *m_DialogUI;
75  QString m_Url;
76  QSize m_Size;
77  ImageExporter *m_ImageExporter;
78 };
79 
80 
81 #endif // EXPORTIMAGEDIALOG_H
ExportImageDialog::setOutputUrl
void setOutputUrl(const QString &url)
Definition: exportimagedialog.h:60
QWidget
KDialog
ImageExporter
Backends for exporting a sky image, either raster or vector, with a legend.
Definition: imageexporter.h:35
ExportImageDialog::setOutputSize
void setOutputSize(const QSize &size)
Definition: exportimagedialog.h:61
KStars
This is the main window for KStars.
Definition: kstars.h:94
SkyQPainter
The QPainter-based painting backend.
Definition: skyqpainter.h:32
ExportImageDialog
Export sky image dialog.
Definition: exportimagedialog.h:44
ExportImageDialog::ExportImageDialog
ExportImageDialog(const QString &url, const QSize &size, ImageExporter *imgExporter=0)
short Default constructor.
Definition: exportimagedialog.cpp:39
ExportImageDialogUI
Definition: exportimagedialog.h:32
ExportImageDialogUI::ExportImageDialogUI
ExportImageDialogUI(QWidget *parent=0)
Definition: exportimagedialog.cpp:33
QFrame
ExportImageDialog::~ExportImageDialog
~ExportImageDialog()
Default destructor.
Definition: exportimagedialog.h:58
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 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