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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
TimeControlWidget.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 2010 Harshit Jain <hjain.itbhu@gmail.com>
9 //
10 
11 #ifndef MARBLE_TIMECONTROLWIDGET_H
12 #define MARBLE_TIMECONTROLWIDGET_H
13 
14 // Qt
15 #include <QDateTime>
16 #include <QDialog>
17 
18 // Marble
19 #include "marble_export.h"
20 
21 namespace Ui
22 {
23  class TimeControlWidget;
24 }
25 
26 namespace Marble
27 {
28 
29 class MarbleClock;
30 
31 class MARBLE_EXPORT TimeControlWidget : public QDialog
32 {
33  Q_OBJECT
34 
35  public:
36  explicit TimeControlWidget( MarbleClock* clock, QWidget* parent = 0 );
37  virtual ~TimeControlWidget();
38 
39  private Q_SLOTS:
43  void apply();
44 
48  void nowClicked();
49 
53  void updateRefreshRate( int seconds );
54 
58  void updateSpeedLabel( int speed );
59 
63  void updateDateTime();
64 
65  protected:
66  Q_DISABLE_COPY( TimeControlWidget )
67 
68  void showEvent( QShowEvent* event );
69 
70  Ui::TimeControlWidget *m_uiWidget;
71 
72  MarbleClock *m_clock;
73  QDateTime m_lastDateTime;
74 };
75 
76 }
77 
78 #endif //MARBLE_TIMECONTROLWIDGET_H
Marble::TimeControlWidget
Definition: TimeControlWidget.h:31
QDialog
QWidget
Marble::TimeControlWidget::m_uiWidget
Ui::TimeControlWidget * m_uiWidget
Definition: TimeControlWidget.h:70
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::TimeControlWidget::m_clock
MarbleClock * m_clock
Definition: TimeControlWidget.h:72
marble_export.h
Marble::TimeControlWidget::m_lastDateTime
QDateTime m_lastDateTime
Definition: TimeControlWidget.h:73
Marble::MarbleClock
Definition: MarbleClock.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:53 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
  • 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