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

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • eclipses
EclipsesBrowserDialog.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2012 Rene Kuettner <rene@bitkanal.net>
9 //
10 
11 #ifndef MARBLE_ECLIPSESBROWSERDIALOG_H
12 #define MARBLE_ECLIPSESBROWSERDIALOG_H
13 
14 #include <QDialog>
15 #include <QTreeView>
16 #include <QListWidget>
17 #include <QListWidgetItem>
18 
19 namespace Ui {
20  class EclipsesBrowserDialog;
21 }
22 
23 namespace Marble {
24 
25 class EclipsesModel;
26 class MarbleModel;
27 
33 class EclipsesBrowserDialog : public QDialog
34 {
35  Q_OBJECT
36 
37 public:
38  explicit EclipsesBrowserDialog( const MarbleModel *model,
39  QWidget *parent = 0 );
40 
41  ~EclipsesBrowserDialog();
42 
50  void setYear( int year );
51 
58  int year() const;
59 
66  void setWithLunarEclipses( const bool enable );
67 
74  bool withLunarEclipses() const;
75 
76 Q_SIGNALS:
82  void buttonShowClicked( int year, int index );
83 
87  void buttonSettingsClicked();
88 
89 protected Q_SLOTS:
97  void accept();
98 
103  void updateEclipsesForYear( int year );
104 
110  void updateButtonStates();
111 
112 protected:
116  void initialize();
117 
118 private:
119  const MarbleModel *m_marbleModel;
120  Ui::EclipsesBrowserDialog *m_browserWidget;
121  EclipsesModel *m_eclModel;
122 };
123 
124 } // namespace Marble
125 
126 #endif // MARBLE_ECLIPSESBROWSERDIALOG_H
127 
QWidget
Marble::EclipsesBrowserDialog::updateEclipsesForYear
void updateEclipsesForYear(int year)
Update the list of eclipses for the given year.
Definition: EclipsesBrowserDialog.cpp:73
Marble::EclipsesBrowserDialog
The eclipse browser dialog.
Definition: EclipsesBrowserDialog.h:33
Marble::EclipsesBrowserDialog::setYear
void setYear(int year)
Set the year.
Definition: EclipsesBrowserDialog.cpp:37
Marble::EclipsesBrowserDialog::buttonShowClicked
void buttonShowClicked(int year, int index)
This signal is emitted when the use clicks the "show" button.
Marble::EclipsesBrowserDialog::EclipsesBrowserDialog
EclipsesBrowserDialog(const MarbleModel *model, QWidget *parent=0)
Definition: EclipsesBrowserDialog.cpp:24
Marble::EclipsesBrowserDialog::~EclipsesBrowserDialog
~EclipsesBrowserDialog()
Definition: EclipsesBrowserDialog.cpp:32
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
Marble::EclipsesBrowserDialog::accept
void accept()
Accept the dialog.
Definition: EclipsesBrowserDialog.cpp:60
Marble::EclipsesBrowserDialog::withLunarEclipses
bool withLunarEclipses() const
Returns whether or not lunar eclipses are listed.
Definition: EclipsesBrowserDialog.cpp:55
Marble::EclipsesBrowserDialog::year
int year() const
Return the year the browser is set to.
Definition: EclipsesBrowserDialog.cpp:42
Marble::EclipsesBrowserDialog::buttonSettingsClicked
void buttonSettingsClicked()
This signal is emitted when the 'Settings' button is clicked.
QDialog
Marble::EclipsesBrowserDialog::setWithLunarEclipses
void setWithLunarEclipses(const bool enable)
Set whether or not to list lunar eclipses.
Definition: EclipsesBrowserDialog.cpp:47
Marble::EclipsesBrowserDialog::initialize
void initialize()
Initialize the object.
Definition: EclipsesBrowserDialog.cpp:85
QObject::parent
QObject * parent() const
Marble::EclipsesBrowserDialog::updateButtonStates
void updateButtonStates()
Update the dialog's button states.
Definition: EclipsesBrowserDialog.cpp:79
Marble::EclipsesModel
The model for eclipses.
Definition: EclipsesModel.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • 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
  • 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