• 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.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  printingwizard.cpp - 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 #include "printingwizard.h"
19 
20 #include "finderchart.h"
21 #include "loggingform.h"
22 #include "detailstable.h"
23 #include "pwizobjectselection.h"
24 #include "pwizchartconfig.h"
25 #include "pwizfovbrowse.h"
26 #include "pwizfovconfig.h"
27 #include "pwizfovtypeselection.h"
28 #include "pwizfovmanual.h"
29 #include "pwizfovsh.h"
30 #include "pwizchartcontents.h"
31 #include "pwizprint.h"
32 #include "kstars/projections/projector.h"
33 #include "kstars.h"
34 #include "kstars/kstarsdata.h"
35 #include "skymap.h"
36 #include "legend.h"
37 #include "QStackedWidget"
38 #include "QPrinter"
39 #include "kstandarddirs.h"
40 #include "shfovexporter.h"
41 #include "Options.h"
42 
43 PWizWelcomeUI::PWizWelcomeUI(QWidget *parent) : QFrame(parent)
44 {
45  setupUi(this);
46 }
47 
48 PrintingWizard::PrintingWizard(QWidget *parent) : KDialog(parent),
49  m_KStars(KStars::Instance()), m_FinderChart(0), m_SkyObject(0),
50  m_FovType(FT_UNDEFINED), m_FovImageSize(QSize(500, 500)), m_ShBeginObject(0),
51  m_PointingShBegin(false), m_SwitchColors(false), m_RecapturingFov(false),
52  m_RecaptureIdx(-1)
53 {
54  m_Printer = new QPrinter(QPrinter::ScreenResolution);
55 
56  setupWidgets();
57  setupConnections();
58 }
59 
60 PrintingWizard::~PrintingWizard()
61 {
62  // Clean up
63  if(m_Printer) {
64  delete m_Printer;
65  } if(m_FinderChart) {
66  delete m_FinderChart;
67  }
68 
69  qDeleteAll(m_FovSnapshots);
70 }
71 
72 void PrintingWizard::updateStepButtons()
73 {
74  switch(m_WizardStack->currentIndex())
75  {
76  case PW_OBJECT_SELECTION: // object selection
77  {
78  enableButton(KDialog::User1, m_SkyObject);
79  break;
80  }
81  }
82 }
83 
84 void PrintingWizard::beginPointing()
85 {
86  // If there is sky object already selected, center sky map around it
87  if(m_SkyObject)
88  {
89  m_KStars->map()->setClickedObject(m_SkyObject);
90  m_KStars->map()->slotCenter();
91  }
92 
93  m_KStars->map()->setObjectPointingMode(true);
94  hide();
95 }
96 
97 void PrintingWizard::beginShBeginPointing()
98 {
99  m_PointingShBegin = true;
100 
101  if(m_ShBeginObject)
102  {
103  m_KStars->map()->setClickedObject(m_SkyObject);
104  m_KStars->map()->slotCenter();
105  }
106 
107  m_KStars->map()->setObjectPointingMode(true);
108  hide();
109 }
110 
111 void PrintingWizard::pointingDone(SkyObject *obj)
112 {
113  if(m_PointingShBegin) {
114  m_ShBeginObject = obj;
115  m_WizFovShUI->setBeginObject(obj);
116  m_PointingShBegin = false;
117  } else {
118  m_SkyObject = obj;
119  m_WizObjectSelectionUI->setSkyObject(obj);
120  }
121 
122  show();
123 }
124 
125 void PrintingWizard::beginFovCapture()
126 {
127  if(m_SkyObject)
128  {
129  slewAndBeginCapture(m_SkyObject);
130  }
131 }
132 
133 void PrintingWizard::beginFovCapture(SkyPoint *center, FOV *fov)
134 {
135  slewAndBeginCapture(center, fov);
136 }
137 
138 void PrintingWizard::captureFov()
139 {
140  if(m_KStars->data()->getVisibleFOVs().isEmpty())
141  {
142  return;
143  }
144 
145  QPixmap pixmap(m_FovImageSize);
146  m_SimpleFovExporter.exportFov(m_KStars->data()->getVisibleFOVs().first(), &pixmap);
147  if(m_WizFovConfigUI->isLegendEnabled())
148  {
149  // Set legend position, orientation and type
150  Legend legend(m_WizFovConfigUI->getLegendOrientation(), m_WizFovConfigUI->getLegendPosition());
151  legend.setType(m_WizFovConfigUI->getLegendType());
152 
153  // Check if alpha blending is enabled
154  if(m_WizFovConfigUI->isAlphaBlendingEnabled())
155  {
156  QColor bgColor = legend.getBgColor();
157  bgColor.setAlpha(200);
158  legend.setBgColor(bgColor);
159  }
160 
161  // Paint legend
162  legend.paintLegend(&pixmap);
163  }
164  FovSnapshot *snapshot = new FovSnapshot(pixmap, QString(), m_KStars->data()->getVisibleFOVs().first(),
165  m_KStars->map()->getCenterPoint());
166 
167  if(m_RecapturingFov) {
168  delete m_FovSnapshots.at(m_RecaptureIdx);
169  m_FovSnapshots.replace(m_RecaptureIdx, snapshot);
170  m_KStars->map()->setFovCaptureMode(false);
171  m_RecapturingFov = false;
172  m_RecaptureIdx = -1;
173  fovCaptureDone();
174  } else {
175  m_FovSnapshots.append(snapshot);
176  }
177 }
178 
179 void PrintingWizard::fovCaptureDone()
180 {
181  //Restore old color scheme if necessary
182  //(if printing was aborted, the ColorScheme is still restored)
183  if(m_SwitchColors)
184  {
185  m_KStars->loadColorScheme(m_PrevSchemeName);
186  m_KStars->map()->forceUpdate();
187  }
188 
189  if(m_RecapturingFov)
190  {
191  m_RecapturingFov = false;
192  m_RecaptureIdx = -1;
193  }
194 
195  show();
196 }
197 
198 void PrintingWizard::beginShFovCapture()
199 {
200  if(!m_ShBeginObject)
201  {
202  return;
203  }
204 
205  ShFovExporter exporter(this, KStars::Instance()->map());
206 
207  // Get selected FOV symbol
208  double fovArcmin(0);
209  foreach(FOV *fov, KStarsData::Instance()->getAvailableFOVs())
210  {
211  if(fov->name() == m_WizFovShUI->getFovName())
212  {
213  fovArcmin = qMin(fov->sizeX(), fov->sizeY());
214  break;
215  }
216  }
217 
218  // Calculate path and check if it's not empty
219  if(!exporter.calculatePath(*m_SkyObject, *m_ShBeginObject, fovArcmin / 60, m_WizFovShUI->getMaglim()))
220  {
221  KMessageBox::information(this, i18n("Star hopper returned empty path. We advise you to change star hopping settings or use manual capture mode."),
222  i18n("Star hopper failed to find path"));
223  return;
224  }
225 
226  // If FOV shape should be overridden, do this now
227  m_SimpleFovExporter.setFovShapeOverriden(m_WizFovConfigUI->isFovShapeOverriden());
228  m_SimpleFovExporter.setFovSymbolDrawn(m_WizFovConfigUI->isFovShapeOverriden());
229 
230  // If color scheme should be switched, save previous scheme name and switch to "sky chart" color scheme
231  m_SwitchColors = m_WizFovConfigUI->isSwitchColorsEnabled();
232  m_PrevSchemeName = m_KStars->data()->colorScheme()->fileName();
233  if(m_SwitchColors)
234  {
235  m_KStars->loadColorScheme("chart.colors");
236  }
237 
238  // Save previous FOV symbol names and switch to symbol selected by user
239  QStringList prevFovNames = Options::fOVNames();
240  Options::setFOVNames(QStringList(m_WizFovShUI->getFovName()));
241  KStarsData::Instance()->syncFOV();
242  if(KStarsData::Instance()->getVisibleFOVs().isEmpty())
243  {
244  return;
245  }
246 
247  // Hide Printing Wizard
248  hide();
249 
250  // Draw and export path
251  exporter.exportPath();
252 
253  // Restore old color scheme if necessary
254  if(m_SwitchColors)
255  {
256  m_KStars->loadColorScheme(m_PrevSchemeName);
257  m_KStars->map()->forceUpdate();
258  }
259 
260  // Update skymap
261  m_KStars->map()->forceUpdate(true);
262 
263  // Restore previous FOV symbol names
264  Options::setFOVNames(prevFovNames);
265  KStarsData::Instance()->syncFOV();
266 
267  //FIXME: this is _dirty_ workaround to get PrintingWizard displayed in its previous position.
268  QTimer::singleShot(50, this, SLOT(show()));
269 }
270 
271 void PrintingWizard::recaptureFov(int idx)
272 {
273  // Set recapturing flag and index of the FOV snapshot to replace
274  m_RecapturingFov = true;
275  m_RecaptureIdx = idx;
276 
277  // Begin FOV snapshot capture
278  SkyPoint p = m_FovSnapshots.at(m_RecaptureIdx)->getCentralPoint();
279  slewAndBeginCapture(&p, m_FovSnapshots.at(m_RecaptureIdx)->getFov());
280 }
281 
282 void PrintingWizard::slotPrevPage()
283 {
284  int currentIdx = m_WizardStack->currentIndex();
285  switch(currentIdx)
286  {
287  case PW_FOV_BROWSE:
288  {
289  switch(m_FovType)
290  {
291  case FT_MANUAL:
292  {
293  m_WizardStack->setCurrentIndex(PW_FOV_MANUAL);
294  break;
295  }
296 
297  case FT_STARHOPPER:
298  {
299  m_WizardStack->setCurrentIndex(PW_FOV_SH);
300  break;
301  }
302 
303  default:
304  {
305  return;
306  }
307  }
308 
309  break;
310  }
311 
312  case PW_FOV_SH:
313  {
314  m_WizardStack->setCurrentIndex(PW_FOV_CONFIG);
315  break;
316  }
317 
318  default:
319  {
320  m_WizardStack->setCurrentIndex(currentIdx - 1);
321  break;
322  }
323  }
324 
325  updateStepButtons();
326  updateButtons();
327 }
328 
329 void PrintingWizard::slotNextPage()
330 {
331  int currentIdx = m_WizardStack->currentIndex();
332  switch(currentIdx)
333  {
334  case PW_FOV_TYPE:
335  {
336  m_FovType = m_WizFovTypeSelectionUI->getFovExportType();
337  m_WizardStack->setCurrentIndex(PW_FOV_CONFIG);
338  break;
339  }
340 
341  case PW_FOV_CONFIG:
342  {
343  switch(m_FovType)
344  {
345  case FT_MANUAL:
346  {
347  m_WizardStack->setCurrentIndex(PW_FOV_MANUAL);
348  break;
349  }
350 
351  case FT_STARHOPPER:
352  {
353  m_WizardStack->setCurrentIndex(PW_FOV_SH);
354  break;
355  }
356 
357  default: // Undefined FOV type - do nothing
358  {
359  return;
360  }
361  }
362 
363  break;
364  }
365 
366  case PW_FOV_MANUAL:
367  {
368  m_WizardStack->setCurrentIndex(PW_FOV_BROWSE);
369  break;
370  }
371 
372  case PW_FOV_BROWSE:
373  {
374  m_WizChartContentsUI->entered();
375  m_WizardStack->setCurrentIndex(PW_CHART_CONTENTS);
376  break;
377  }
378 
379  case PW_CHART_CONTENTS:
380  {
381  createFinderChart();
382  m_WizardStack->setCurrentIndex(PW_CHART_PRINT);
383  break;
384  }
385 
386  default:
387  {
388  m_WizardStack->setCurrentIndex(currentIdx + 1);
389  }
390  }
391 
392  updateButtons();
393  updateStepButtons();
394 }
395 
396 void PrintingWizard::setupWidgets()
397 {
398  m_WizardStack = new QStackedWidget(this);
399  setMainWidget(m_WizardStack);
400 
401  setCaption(i18n("Printing Wizard"));
402 
403  setButtons(KDialog::User1 | KDialog::User2 | KDialog::Close);
404 
405  setButtonGuiItem(KDialog::User1, KGuiItem(i18n("&Next >"), QString(), i18n("Go to next Wizard page")));
406  setButtonGuiItem(KDialog::User2, KGuiItem(i18n("< &Back"), QString(), i18n("Go to previous Wizard page")));
407 
408  // Create step widgets
409  m_WizWelcomeUI = new PWizWelcomeUI(m_WizardStack);
410  m_WizObjectSelectionUI = new PWizObjectSelectionUI(this, m_WizardStack);
411  m_WizChartConfigUI = new PWizChartConfigUI(this);
412  m_WizFovTypeSelectionUI = new PWizFovTypeSelectionUI(this, m_WizardStack);
413  m_WizFovConfigUI = new PWizFovConfigUI(m_WizardStack);
414  m_WizFovManualUI = new PWizFovManualUI(this, m_WizardStack);
415  m_WizFovShUI = new PWizFovShUI(this, m_WizardStack);
416  m_WizFovBrowseUI = new PWizFovBrowseUI(this, m_WizardStack);
417  m_WizChartContentsUI = new PWizChartContentsUI(this, m_WizardStack);
418  m_WizPrintUI = new PWizPrintUI(this, m_WizardStack);
419 
420  // Add step widgets to m_WizardStack
421  m_WizardStack->addWidget(m_WizWelcomeUI);
422  m_WizardStack->addWidget(m_WizObjectSelectionUI);
423  m_WizardStack->addWidget(m_WizChartConfigUI);
424  m_WizardStack->addWidget(m_WizFovTypeSelectionUI);
425  m_WizardStack->addWidget(m_WizFovConfigUI);
426  m_WizardStack->addWidget(m_WizFovManualUI);
427  m_WizardStack->addWidget(m_WizFovShUI);
428  m_WizardStack->addWidget(m_WizFovBrowseUI);
429  m_WizardStack->addWidget(m_WizChartContentsUI);
430  m_WizardStack->addWidget(m_WizPrintUI);
431 
432  // Set banner images for steps
433  QPixmap bannerImg;
434  if(bannerImg.load(KStandardDirs::locate("appdata", "wzstars.png")))
435  {
436  m_WizWelcomeUI->banner->setPixmap(bannerImg);
437  m_WizObjectSelectionUI->banner->setPixmap(bannerImg);
438  m_WizChartConfigUI->banner->setPixmap(bannerImg);
439  m_WizFovTypeSelectionUI->banner->setPixmap(bannerImg);
440  m_WizFovConfigUI->banner->setPixmap(bannerImg);
441  m_WizFovManualUI->banner->setPixmap(bannerImg);
442  m_WizFovShUI->banner->setPixmap(bannerImg);
443  m_WizFovBrowseUI->banner->setPixmap(bannerImg);
444  m_WizChartContentsUI->banner->setPixmap(bannerImg);
445  m_WizPrintUI->banner->setPixmap(bannerImg);
446  }
447 
448  enableButton(KDialog::User2, false);
449 }
450 
451 void PrintingWizard::setupConnections()
452 {
453  connect(this, SIGNAL(user1Clicked()), this, SLOT(slotNextPage()));
454  connect(this, SIGNAL(user2Clicked()), this, SLOT(slotPrevPage()));
455 }
456 
457 void PrintingWizard::updateButtons()
458 {
459  enableButton(KDialog::User1, m_WizardStack->currentIndex() < m_WizardStack->count() - 1);
460  enableButton(KDialog::User2, m_WizardStack->currentIndex() > 0);
461 }
462 
463 void PrintingWizard::slewAndBeginCapture(SkyPoint *center, FOV *fov)
464 {
465  if(!center)
466  {
467  return;
468  }
469 
470  // If pointer to FOV is passed...
471  if(fov)
472  {
473  // Switch to appropriate FOV symbol
474  Options::setFOVNames(QStringList(fov->name()));
475  m_KStars->data()->syncFOV();
476 
477  // Adjust map's zoom level
478  double zoom = m_FovImageSize.width() > m_FovImageSize.height() ? SimpleFovExporter::calculateZoomLevel(m_FovImageSize.width(), fov->sizeX()) :
479  SimpleFovExporter::calculateZoomLevel(m_FovImageSize.height(), fov->sizeY());
480  m_KStars->map()->setZoomFactor(zoom);
481  }
482 
483  m_SimpleFovExporter.setFovShapeOverriden(m_WizFovConfigUI->isFovShapeOverriden());
484  m_SimpleFovExporter.setFovSymbolDrawn(m_WizFovConfigUI->isFovShapeOverriden());
485 
486  m_SwitchColors = m_WizFovConfigUI->isSwitchColorsEnabled();
487  m_PrevSchemeName = m_KStars->data()->colorScheme()->fileName();
488  if(m_SwitchColors)
489  {
490  m_KStars->loadColorScheme("chart.colors");
491  }
492 
493  m_KStars->hideAllFovExceptFirst();
494  m_KStars->map()->setClickedPoint(center);
495  m_KStars->map()->slotCenter();
496  m_KStars->map()->setFovCaptureMode(true);
497  hide();
498 }
499 
500 void PrintingWizard::createFinderChart()
501 {
502  // Delete old (if needed) and create new FinderChart
503  if(m_FinderChart)
504  {
505  delete m_FinderChart;
506  }
507  m_FinderChart = new FinderChart;
508 
509  // Insert title and subtitle
510  m_FinderChart->insertTitleSubtitle(m_WizChartConfigUI->titleEdit->text(), m_WizChartConfigUI->subtitleEdit->text());
511 
512  // Insert description
513  if(!m_WizChartConfigUI->descriptionTextEdit->toPlainText().isEmpty())
514  {
515  m_FinderChart->insertDescription(m_WizChartConfigUI->descriptionTextEdit->toPlainText());
516  }
517 
518  // Insert simple finder chart logging form
519  if(m_WizChartContentsUI->isLoggingFormChecked())
520  {
521  LoggingForm chartLogger;
522  chartLogger.createFinderChartLogger();
523  m_FinderChart->insertSectionTitle(i18n("Logging Form"));
524  m_FinderChart->insertLoggingForm(&chartLogger);
525  }
526 
527  m_FinderChart->insertSectionTitle(i18n("Field of View Snapshots"));
528 
529  // Insert FOV images and descriptions
530  for(int i = 0; i < m_FovSnapshots.size(); i++)
531  {
532  FOV *fov = m_FovSnapshots.at(i)->getFov();
533  QString fovDescription = i18nc("%1 = FOV index, %2 = FOV count, %3 = FOV name, %4 = FOV X size, %5 = FOV Y size",
534  "FOV (%1/%2): %3 (%4' x %5')",
535  QString::number(i + 1),
536  QString::number(m_FovSnapshots.size()),
537  fov->name(),
538  QString::number(fov->sizeX()),
539  QString::number(fov->sizeY())) + "\n";
540  m_FinderChart->insertImage(m_FovSnapshots.at(i)->getPixmap().toImage(), fovDescription + m_FovSnapshots.at(i)->getDescription(), true);
541  }
542 
543  if(m_WizChartContentsUI->isGeneralTableChecked() ||
544  m_WizChartContentsUI->isPositionTableChecked() ||
545  m_WizChartContentsUI->isRSTTableChecked() ||
546  m_WizChartContentsUI->isAstComTableChecked())
547  {
548  m_FinderChart->insertSectionTitle(i18n("Details About Object"));
549  m_FinderChart->insertGeoTimeInfo(KStarsData::Instance()->ut(), KStarsData::Instance()->geo());
550  }
551 
552  // Insert details table : general
553  DetailsTable detTable;
554  if(m_WizChartContentsUI->isGeneralTableChecked())
555  {
556  detTable.createGeneralTable(m_SkyObject);
557  m_FinderChart->insertDetailsTable(&detTable);
558  }
559 
560  // Insert details table : position
561  if(m_WizChartContentsUI->isPositionTableChecked())
562  {
563  detTable.createCoordinatesTable(m_SkyObject, m_KStars->data()->ut(), m_KStars->data()->geo());
564  m_FinderChart->insertDetailsTable(&detTable);
565  }
566 
567  // Insert details table : RST
568  if(m_WizChartContentsUI->isRSTTableChecked())
569  {
570  detTable.createRSTTAble(m_SkyObject, m_KStars->data()->ut(), m_KStars->data()->geo());
571  m_FinderChart->insertDetailsTable(&detTable);
572  }
573 
574  // Insert details table : Asteroid/Comet
575  if(m_WizChartContentsUI->isAstComTableChecked())
576  {
577  detTable.createAsteroidCometTable(m_SkyObject);
578  m_FinderChart->insertDetailsTable(&detTable);
579  }
580 }
pwizfovbrowse.h
Options::setFOVNames
static void setFOVNames(const QStringList &v)
Set Name of selected FOV indicators.
Definition: Options.h:970
PWizChartConfigUI
User interface for "Configure basic finder chart settings" step of the Printing Wizard.
Definition: pwizchartconfig.h:30
PrintingWizard::beginPointing
void beginPointing()
Set SkyMap to pointing mode and hide Printing Wizard.
Definition: printingwizard.cpp:84
pwizfovmanual.h
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
KStars::map
SkyMap * map() const
Definition: kstars.h:134
PWizFovConfigUI::getLegendPosition
Legend::LEGEND_POSITION getLegendPosition()
Get selected legend position.
Definition: pwizfovconfig.h:78
PrintingWizard::PW_FOV_CONFIG
Definition: printingwizard.h:79
SkyMap::slotCenter
void slotCenter()
Center the display at the point ClickedPoint.
Definition: skymap.cpp:373
legend.h
KStarsData::colorScheme
ColorScheme * colorScheme()
Definition: kstarsdata.h:149
PrintingWizard::captureFov
void captureFov()
Capture current contents of FOV symbol.
Definition: printingwizard.cpp:138
FOV::sizeX
float sizeX() const
Definition: fov.h:53
PWizChartContentsUI::isPositionTableChecked
bool isPositionTableChecked()
Check if position details table is enabled.
Definition: pwizchartcontents.cpp:51
PWizChartContentsUI::isAstComTableChecked
bool isAstComTableChecked()
Check if Asteroid/Comet details table is enabled.
Definition: pwizchartcontents.cpp:61
ShFovExporter::exportPath
bool exportPath()
Export FOV snapshots across calculated path.
Definition: shfovexporter.cpp:45
SkyMap::setClickedObject
void setClickedObject(SkyObject *o)
Set the ClickedObject pointer to the argument.
Definition: skymap.cpp:361
QWidget
KStarsData::Instance
static KStarsData * Instance()
Definition: kstarsdata.h:92
SkyMap::setObjectPointingMode
void setObjectPointingMode(bool enabled)
Definition: skymap.h:287
PWizChartContentsUI
User interface for "Configure chart contents" step of the Printing Wizard.
Definition: pwizchartcontents.h:30
DetailsTable::createRSTTAble
void createRSTTAble(SkyObject *obj, const KStarsDateTime &ut, GeoLocation *geo)
Create Rise/Set/Transit details table.
Definition: detailstable.cpp:602
PWizObjectSelectionUI::setSkyObject
void setSkyObject(SkyObject *obj)
Update UI elements for newly selected SkyObject.
Definition: pwizobjectselection.cpp:43
KStars::Instance
static KStars * Instance()
Definition: kstars.h:125
PrintingWizard::beginShBeginPointing
void beginShBeginPointing()
Enter star hopping begin pointing mode.
Definition: printingwizard.cpp:97
SimpleFovExporter::setFovShapeOverriden
void setFovShapeOverriden(bool override)
Enable or disable FOV shape overriding.
Definition: simplefovexporter.h:117
SkyMap::forceUpdate
void forceUpdate(bool now=false)
Recalculates the positions of objects in the sky, and then repaints the sky map.
Definition: skymap.cpp:985
PrintingWizard::pointingDone
void pointingDone(SkyObject *obj)
Quit object pointing mode and set the pointed object.
Definition: printingwizard.cpp:111
KDialog
shfovexporter.h
PWizWelcomeUI::PWizWelcomeUI
PWizWelcomeUI(QWidget *parent=0)
Constructor.
Definition: printingwizard.cpp:43
KStarsData::geo
GeoLocation * geo()
Definition: kstarsdata.h:164
PWizFovConfigUI::isLegendEnabled
bool isLegendEnabled()
Check if legend will be added to FOV images.
Definition: pwizfovconfig.h:54
FinderChart::insertImage
void insertImage(const QImage &img, const QString &description, bool descriptionBelow=true)
Insert image to the finder chart.
Definition: finderchart.cpp:125
PWizFovConfigUI::isAlphaBlendingEnabled
bool isAlphaBlendingEnabled()
Check if alpha blending is enabled.
Definition: pwizfovconfig.h:60
PWizFovConfigUI::getLegendType
Legend::LEGEND_TYPE getLegendType()
Get selected legend type.
Definition: pwizfovconfig.cpp:28
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::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
DetailsTable::createGeneralTable
void createGeneralTable(SkyObject *obj)
Create general details table.
Definition: detailstable.cpp:50
PrintingWizard::PW_FOV_BROWSE
Definition: printingwizard.h:82
LoggingForm
Class that represents logging form.
Definition: loggingform.h:32
SkyMap::getCenterPoint
SkyPoint getCenterPoint()
Definition: skymap.cpp:705
PWizChartContentsUI::isRSTTableChecked
bool isRSTTableChecked()
Check if Rise/Set/Transit details table is enabled.
Definition: pwizchartcontents.cpp:56
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
SimpleFovExporter::calculateZoomLevel
static double calculateZoomLevel(int pixelSize, float degrees)
Calculate zoom level at which given angular length will occupy given length in pixels.
Definition: simplefovexporter.h:131
Options::fOVNames
static QStringList fOVNames()
Get Name of selected FOV indicators.
Definition: Options.h:980
PWizChartContentsUI::isLoggingFormChecked
bool isLoggingFormChecked()
Check if logging form is enabled.
Definition: pwizchartcontents.cpp:66
SkyMap::setZoomFactor
void setZoomFactor(double factor)
@ Set zoom factor.
Definition: skymap.cpp:976
FinderChart::insertDescription
void insertDescription(const QString &description)
Insert description to the finder chart.
Definition: finderchart.cpp:66
FinderChart::insertDetailsTable
void insertDetailsTable(DetailsTable *table)
Insert details table to the finder chart.
Definition: finderchart.cpp:152
ShFovExporter::calculatePath
bool calculatePath(const SkyPoint &src, const SkyPoint &dest, double fov, double maglim)
Calculate path between source and destination SkyPoints.
Definition: shfovexporter.cpp:31
PWizChartContentsUI::entered
void entered()
Enable or disable specific fields depending on the type of selected object.
Definition: pwizchartcontents.cpp:31
DetailsTable::createCoordinatesTable
void createCoordinatesTable(SkyObject *obj, const KStarsDateTime &ut, GeoLocation *geo)
Create coordinates details table.
Definition: detailstable.cpp:513
loggingform.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
PWizFovTypeSelectionUI::getFovExportType
PrintingWizard::FOV_TYPE getFovExportType()
Get selected FOV export method.
Definition: pwizfovtypeselection.cpp:26
PWizFovConfigUI::getLegendOrientation
Legend::LEGEND_ORIENTATION getLegendOrientation()
Get selected legend orientation.
Definition: pwizfovconfig.h:72
skymap.h
i18nc
i18nc("string from libindi, used in the config dialog","100x")
pwizfovsh.h
Legend::setType
void setType(LEGEND_TYPE type)
Set legend type.
Definition: legend.h:188
detailstable.h
SkyMap::setFovCaptureMode
void setFovCaptureMode(bool enabled)
Definition: skymap.h:289
pwizfovconfig.h
FinderChart::insertLoggingForm
void insertLoggingForm(LoggingForm *log)
Insert logging form to the finder chart.
Definition: finderchart.cpp:116
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
FovSnapshot
Class that represents single field of view snapshot.
Definition: fovsnapshot.h:35
pwizprint.h
PWizFovShUI::getFovName
QString getFovName()
Get FOV name set by user.
Definition: pwizfovsh.h:50
PWizFovConfigUI::isFovShapeOverriden
bool isFovShapeOverriden()
Check if FOV shape is always rectangular.
Definition: pwizfovconfig.h:48
ColorScheme::fileName
QString fileName() const
Definition: colorscheme.h:93
FinderChart::insertSectionTitle
void insertSectionTitle(const QString &title)
Insert section title to the finder chart.
Definition: finderchart.cpp:161
PWizFovBrowseUI
User interface for "Browse captured FOV images" step of Printing Wizard.
Definition: pwizfovbrowse.h:30
DetailsTable::createAsteroidCometTable
void createAsteroidCometTable(SkyObject *obj)
Create Asteroid/Comet details table.
Definition: detailstable.cpp:365
KStarsData::syncFOV
void syncFOV()
Synchronize list of visible FOVs and list of selected FOVs in Options.
Definition: kstarsdata.cpp:1045
printingwizard.h
Options.h
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
KStarsData::getVisibleFOVs
const QList< FOV * > getVisibleFOVs() const
Definition: kstarsdata.h:211
pwizchartconfig.h
pwizfovtypeselection.h
ShFovExporter
Helper class used as a wrapper for StarHopper when capturing FOV snapshots.
Definition: shfovexporter.h:31
Legend
Legend class is used for painting legends on class inheriting QPaintDevice.
Definition: legend.h:45
PWizFovConfigUI::isSwitchColorsEnabled
bool isSwitchColorsEnabled()
Check if switching to "Sky Chart" color scheme is enabled.
Definition: pwizfovconfig.h:42
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
SkyMap::setClickedPoint
void setClickedPoint(SkyPoint *f)
Set the ClickedPoint to the skypoint given as an argument.
Definition: skymap.cpp:829
FinderChart::insertGeoTimeInfo
void insertGeoTimeInfo(const KStarsDateTime &ut, GeoLocation *geo)
Insert details about date&time and geographic location.
Definition: finderchart.cpp:82
SimpleFovExporter::exportFov
void exportFov(SkyPoint *point, FOV *fov, QPaintDevice *pd)
Paint FOV representation on passed QPaintDevice subclass.
Definition: simplefovexporter.cpp:33
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
projector.h
PrintingWizard::PW_OBJECT_SELECTION
Definition: printingwizard.h:76
KStars::data
KStarsData * data() const
Definition: kstars.h:131
SimpleFovExporter::setFovSymbolDrawn
void setFovSymbolDrawn(bool draw)
Enable or disable FOV symbol drawing.
Definition: simplefovexporter.h:123
pwizobjectselection.h
finderchart.h
FOV::name
QString name() const
Definition: fov.h:46
LoggingForm::createFinderChartLogger
void createFinderChartLogger()
Create simple logging form for finder charts.
Definition: loggingform.cpp:28
kstarsdata.h
KStarsData::ut
const KStarsDateTime & ut() const
Definition: kstarsdata.h:140
PWizFovShUI::getMaglim
double getMaglim()
Get magnitude limit set by user.
Definition: pwizfovsh.h:44
KStars::loadColorScheme
Q_SCRIPTABLE Q_NOREPLY void loadColorScheme(const QString &name)
DBUS interface function.
Definition: kstarsdcop.cpp:406
PWizChartContentsUI::isGeneralTableChecked
bool isGeneralTableChecked()
Check if general details table is enabled.
Definition: pwizchartcontents.cpp:46
DetailsTable
Represents details tables that can be inserted to finder charts and logging forms.
Definition: detailstable.h:39
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
PWizFovShUI::setBeginObject
void setBeginObject(SkyObject *obj)
Set object at which star hopper will begin.
Definition: pwizfovsh.cpp:35
FOV::sizeY
float sizeY() const
Definition: fov.h:54
KStars::hideAllFovExceptFirst
void hideAllFovExceptFirst()
Definition: kstars.cpp:249
pwizchartcontents.h
kstars.h
PrintingWizard::FT_STARHOPPER
Definition: printingwizard.h:93
FinderChart::insertTitleSubtitle
void insertTitleSubtitle(const QString &title, const QString &subtitle)
Insert title and subtitle to the finder chart.
Definition: finderchart.cpp:35
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