• 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
  • lib
  • marble
ParallelTrack.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 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
9 //
10 
11 #ifndef PARALLELTRACK_H
12 #define PARALLELTRACK_H
13 
14 #include "PlaybackItem.h"
15 #include "GeoDataPlacemark.h"
16 
17 #include <QDateTime>
18 #include <QTimer>
19 
20 namespace Marble
21 {
22 class ParallelTrack : public QObject
23 {
24  Q_OBJECT
25 
26 public:
27  ParallelTrack( PlaybackItem* item );
28  void setDelayBeforeTrackStarts( double delay );
29  double delayBeforeTrackStarts() const;
30  void play();
31  void pause();
32  void seek( double position );
33  void stop();
34  void setPaused( bool );
35 
36 Q_SIGNALS:
37  void balloonHidden();
38  void balloonShown( GeoDataPlacemark* );
39 
40 public Q_SLOTS:
41  void playSlot();
42 
43 private:
44  PlaybackItem* m_item;
45  QDateTime m_playTime;
46  QDateTime m_pauseTime;
47  double m_delayBeforeTrackStarts;
48  double m_progress;
49  QTimer m_timer;
50  bool m_paused;
51 };
52 }
53 #endif
Marble::ParallelTrack::setPaused
void setPaused(bool)
Definition: ParallelTrack.cpp:105
Marble::ParallelTrack::playSlot
void playSlot()
Definition: ParallelTrack.cpp:53
Marble::ParallelTrack::ParallelTrack
ParallelTrack(PlaybackItem *item)
Definition: ParallelTrack.cpp:19
Marble::ParallelTrack::balloonHidden
void balloonHidden()
Marble::ParallelTrack::balloonShown
void balloonShown(GeoDataPlacemark *)
Marble::ParallelTrack::stop
void stop()
Definition: ParallelTrack.cpp:95
QTimer
Marble::ParallelTrack
Definition: ParallelTrack.h:22
QObject
PlaybackItem.h
GeoDataPlacemark.h
Marble::PlaybackItem
Definition: PlaybackItem.h:20
Marble::ParallelTrack::seek
void seek(double position)
Definition: ParallelTrack.cpp:70
Marble::ParallelTrack::pause
void pause()
Definition: ParallelTrack.cpp:58
Marble::ParallelTrack::setDelayBeforeTrackStarts
void setDelayBeforeTrackStarts(double delay)
Definition: ParallelTrack.cpp:30
Marble::ParallelTrack::delayBeforeTrackStarts
double delayBeforeTrackStarts() const
Definition: ParallelTrack.cpp:37
Marble::GeoDataPlacemark
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
Marble::ParallelTrack::play
void play()
Definition: ParallelTrack.cpp:42
QDateTime
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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