• 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
  • printing
printingwizard.h
Go to the documentation of this file.
1 /***************************************************************************
2  printingwizard.h - K Desktop Planetarium
3  -------------------
4  begin : Tue Aug 2 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 PRINTINGWIZARD_H
19 #define PRINTINGWIZARD_H
20 
21 #include "ui_pwizwelcome.h"
22 
23 #include "kdialog.h"
24 #include "simplefovexporter.h"
25 #include "fovsnapshot.h"
26 #include "QSize"
27 
28 class KStars;
29 class PWizObjectSelectionUI;
30 class PWizFovBrowseUI;
31 class PWizFovTypeSelectionUI;
32 class PWizFovConfigUI;
33 class PWizFovManualUI;
34 class PWizFovShUI;
35 class PWizChartConfigUI;
36 class PWizChartContentsUI;
37 class PWizPrintUI;
38 class FinderChart;
39 class KStarsDocument;
40 class SkyObject;
41 class QStackedWidget;
42 class QPrinter;
43 
44 
50 class PWizWelcomeUI : public QFrame, public Ui::PWizWelcome
51 {
52  Q_OBJECT
53 public:
57  explicit PWizWelcomeUI(QWidget *parent = 0);
58 };
59 
60 
66 class PrintingWizard : public KDialog
67 {
68  Q_OBJECT
69 public:
73  enum WIZARD_STEPS
74  {
75  PW_WELCOME = 0,
76  PW_OBJECT_SELECTION = 1,
77  PW_CHART_CONFIG = 2,
78  PW_FOV_TYPE = 3,
79  PW_FOV_CONFIG = 4,
80  PW_FOV_MANUAL = 5,
81  PW_FOV_SH = 6,
82  PW_FOV_BROWSE = 7,
83  PW_CHART_CONTENTS = 8,
84  PW_CHART_PRINT = 9
85  };
86 
90  enum FOV_TYPE
91  {
92  FT_MANUAL,
93  FT_STARHOPPER,
94  FT_UNDEFINED
95  };
96 
100  explicit PrintingWizard(QWidget *parent = 0);
101 
105  ~PrintingWizard();
106 
111  FOV_TYPE getFovType() { return m_FovType; }
112 
117  QPrinter* getPrinter() { return m_Printer; }
118 
123  FinderChart* getFinderChart() { return m_FinderChart; }
124 
129  SkyObject* getSkyObject() { return m_SkyObject; }
130 
135  QList<FovSnapshot*>* getFovSnapshotList() { return &m_FovSnapshots; }
136 
141  QSize getFovImageSize() { return m_FovImageSize; }
142 
147  SimpleFovExporter* getFovExporter() { return &m_SimpleFovExporter; }
148 
153  SkyObject* getShBeginObject() { return m_ShBeginObject; }
154 
159  void setSkyObject(SkyObject *obj) { m_SkyObject = obj; }
160 
165  void setShBeginObject(SkyObject *obj) { m_ShBeginObject = obj; }
166 
170  void updateStepButtons();
171 
175  void beginPointing();
176 
180  void beginShBeginPointing();
181 
186  void pointingDone(SkyObject *obj);
187 
191  void beginFovCapture();
192 
198  void beginFovCapture(SkyPoint *center, FOV *fov = 0);
199 
203  void captureFov();
204 
208  void fovCaptureDone();
209 
213  void beginShFovCapture();
214 
219  void recaptureFov(int idx);
220 
221 private slots:
225  void slotPrevPage();
226 
230  void slotNextPage();
231 
232 private:
236  void setupWidgets();
237 
241  void setupConnections();
242 
246  void updateButtons();
247 
253  void slewAndBeginCapture(SkyPoint *center, FOV *fov = 0);
254 
258  void createFinderChart();
259 
260  KStars *m_KStars;
261  FinderChart *m_FinderChart;
262  SkyObject *m_SkyObject;
263  QStackedWidget *m_WizardStack;
264  QPrinter *m_Printer;
265 
266  FOV_TYPE m_FovType;
267  QSize m_FovImageSize;
268  SimpleFovExporter m_SimpleFovExporter;
269 
270  QList<FovSnapshot*> m_FovSnapshots;
271 
272  SkyObject *m_ShBeginObject;
273  bool m_PointingShBegin;
274 
275  bool m_SwitchColors;
276  QString m_PrevSchemeName;
277 
278  bool m_RecapturingFov;
279  int m_RecaptureIdx;
280 
281  PWizWelcomeUI *m_WizWelcomeUI;
282  PWizObjectSelectionUI *m_WizObjectSelectionUI;
283  PWizFovTypeSelectionUI *m_WizFovTypeSelectionUI;
284  PWizFovConfigUI *m_WizFovConfigUI;
285  PWizFovManualUI *m_WizFovManualUI;
286  PWizFovShUI *m_WizFovShUI;
287  PWizFovBrowseUI *m_WizFovBrowseUI;
288  PWizChartConfigUI *m_WizChartConfigUI;
289  PWizChartContentsUI *m_WizChartContentsUI;
290  PWizPrintUI *m_WizPrintUI;
291 };
292 
293 #endif // PRINTINGWIZARD_H
PWizChartConfigUI
User interface for "Configure basic finder chart settings" step of the Printing Wizard.
Definition: pwizchartconfig.h:30
PrintingWizard::FT_UNDEFINED
Definition: printingwizard.h:94
PrintingWizard::beginPointing
void beginPointing()
Set SkyMap to pointing mode and hide Printing Wizard.
Definition: printingwizard.cpp:84
PrintingWizard::PW_WELCOME
Definition: printingwizard.h:75
PrintingWizard::~PrintingWizard
~PrintingWizard()
Destructor.
Definition: printingwizard.cpp:60
FOV
class encapulating a Field-of-View symbol
Definition: fov.h:32
PrintingWizard::FT_MANUAL
Definition: printingwizard.h:92
PrintingWizard::PW_FOV_CONFIG
Definition: printingwizard.h:79
PrintingWizard::getFovSnapshotList
QList< FovSnapshot * > * getFovSnapshotList()
Get FovSnapshot list.
Definition: printingwizard.h:135
PrintingWizard::captureFov
void captureFov()
Capture current contents of FOV symbol.
Definition: printingwizard.cpp:138
PrintingWizard::FOV_TYPE
FOV_TYPE
FOV export method type enumeration.
Definition: printingwizard.h:90
PrintingWizard::getShBeginObject
SkyObject * getShBeginObject()
Get object at which star hopping will begin.
Definition: printingwizard.h:153
QWidget
PWizChartContentsUI
User interface for "Configure chart contents" step of the Printing Wizard.
Definition: pwizchartcontents.h:30
PrintingWizard::beginShBeginPointing
void beginShBeginPointing()
Enter star hopping begin pointing mode.
Definition: printingwizard.cpp:97
PrintingWizard::pointingDone
void pointingDone(SkyObject *obj)
Quit object pointing mode and set the pointed object.
Definition: printingwizard.cpp:111
KDialog
PWizWelcomeUI::PWizWelcomeUI
PWizWelcomeUI(QWidget *parent=0)
Constructor.
Definition: printingwizard.cpp:43
PrintingWizard::PW_FOV_SH
Definition: printingwizard.h:81
PWizFovShUI
User interface for "Star hopper FOV snapshot capture" step of the Printing Wizard.
Definition: pwizfovsh.h:31
KStars
This is the main window for KStars.
Definition: kstars.h:94
PrintingWizard::getFovExporter
SimpleFovExporter * getFovExporter()
Get pointer to the SimpleFovExporter class instance.
Definition: printingwizard.h:147
PrintingWizard::PW_FOV_MANUAL
Definition: printingwizard.h:80
PrintingWizard::PW_FOV_TYPE
Definition: printingwizard.h:78
PWizFovConfigUI
User interface for "Configure common FOV export options" step of the Printing Wizard.
Definition: pwizfovconfig.h:29
PrintingWizard::PW_FOV_BROWSE
Definition: printingwizard.h:82
PrintingWizard::WIZARD_STEPS
WIZARD_STEPS
Wizard steps enumeration.
Definition: printingwizard.h:73
PrintingWizard::PW_CHART_CONTENTS
Definition: printingwizard.h:83
PrintingWizard::PrintingWizard
PrintingWizard(QWidget *parent=0)
Constructor.
Definition: printingwizard.cpp:48
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
PrintingWizard::getPrinter
QPrinter * getPrinter()
Get printer used by Printing Wizard.
Definition: printingwizard.h:117
fovsnapshot.h
PWizObjectSelectionUI
User interface for "Select observed object" step of the Printing Wizard.
Definition: pwizobjectselection.h:31
PrintingWizard::updateStepButtons
void updateStepButtons()
Update Next/Previous step buttons.
Definition: printingwizard.cpp:72
PrintingWizard::getFovType
FOV_TYPE getFovType()
Get used FOV export method.
Definition: printingwizard.h:111
SimpleFovExporter
SimpleFovExporter class is used for FOV representation exporting.
Definition: simplefovexporter.h:43
PrintingWizard::getFinderChart
FinderChart * getFinderChart()
Get used FinderChart document.
Definition: printingwizard.h:123
PWizPrintUI
User interface for last "Print and export finder chart" step of the Printing Wizard.
Definition: pwizprint.h:30
PrintingWizard::PW_CHART_PRINT
Definition: printingwizard.h:84
PrintingWizard::PW_CHART_CONFIG
Definition: printingwizard.h:77
PrintingWizard
Class representing Printing Wizard for KStars printed documents (currently only finder charts)...
Definition: printingwizard.h:66
PWizFovBrowseUI
User interface for "Browse captured FOV images" step of Printing Wizard.
Definition: pwizfovbrowse.h:30
PrintingWizard::setShBeginObject
void setShBeginObject(SkyObject *obj)
Set SkyObject at which star hopper will begin.
Definition: printingwizard.h:165
PrintingWizard::beginFovCapture
void beginFovCapture()
Hide Printing Wizard and put SkyMap in FOV capture mode.
Definition: printingwizard.cpp:125
PrintingWizard::fovCaptureDone
void fovCaptureDone()
Disable FOV capture mode.
Definition: printingwizard.cpp:179
PWizFovManualUI
User interface for "Manual FOV capture" step of the Printing Wizard.
Definition: pwizfovmanual.h:30
PWizFovTypeSelectionUI
User interface for "Select FOV capture method" step of the Printing Wizard.
Definition: pwizfovtypeselection.h:29
PrintingWizard::beginShFovCapture
void beginShFovCapture()
Capture FOV snapshots using star hopper-based method.
Definition: printingwizard.cpp:198
simplefovexporter.h
FinderChart
Class that represents finder chart document.
Definition: finderchart.h:44
PWizWelcomeUI
User interface for the first step of the Printing Wizard.
Definition: printingwizard.h:50
PrintingWizard::getSkyObject
SkyObject * getSkyObject()
Get selected SkyObject, for which FinderChart is created.
Definition: printingwizard.h:129
PrintingWizard::PW_OBJECT_SELECTION
Definition: printingwizard.h:76
PrintingWizard::setSkyObject
void setSkyObject(SkyObject *obj)
Set SkyObject for which FinderChart is created.
Definition: printingwizard.h:159
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
PrintingWizard::recaptureFov
void recaptureFov(int idx)
Recapture FOV snapshot of passed index.
Definition: printingwizard.cpp:271
QFrame
PrintingWizard::getFovImageSize
QSize getFovImageSize()
Get FOV snapshot image size.
Definition: printingwizard.h:141
KStarsDocument
Base class for KStars documents.
Definition: kstarsdocument.h:35
PrintingWizard::FT_STARHOPPER
Definition: printingwizard.h:93
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 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