• 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
PlaybackTourControlItem.cpp
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 #include "PlaybackTourControlItem.h"
12 
13 namespace Marble
14 {
15 
16 PlaybackTourControlItem::PlaybackTourControlItem(const GeoDataTourControl* tourControl)
17 {
18  m_tourControl = tourControl;
19 }
20 
21 const GeoDataTourControl* PlaybackTourControlItem::tourControl() const
22 {
23  return m_tourControl;
24 }
25 
26 void PlaybackTourControlItem::play()
27 {
28  if( m_tourControl->playMode() == GeoDataTourControl::Pause ) {
29  emit paused();
30  }
31 }
32 
33 double PlaybackTourControlItem::duration() const
34 {
35  return 0;
36 }
37 
38 void PlaybackTourControlItem::pause()
39 {
40  // nothing to do
41 }
42 
43 void PlaybackTourControlItem::seek( double position )
44 {
45  Q_UNUSED( position );
46  // nothing to do
47 }
48 
49 void PlaybackTourControlItem::stop()
50 {
51  // nothing to do
52 }
53 
54 }
Marble::PlaybackTourControlItem::PlaybackTourControlItem
PlaybackTourControlItem(const GeoDataTourControl *tourControl)
Definition: PlaybackTourControlItem.cpp:16
Marble::PlaybackItem::paused
void paused()
Marble::GeoDataTourControl::playMode
PlayMode playMode() const
Definition: GeoDataTourControl.cpp:42
Marble::PlaybackTourControlItem::tourControl
const GeoDataTourControl * tourControl() const
Definition: PlaybackTourControlItem.cpp:21
Marble::PlaybackTourControlItem::duration
double duration() const
Definition: PlaybackTourControlItem.cpp:33
Marble::PlaybackTourControlItem::seek
void seek(double position)
Definition: PlaybackTourControlItem.cpp:43
Marble::PlaybackTourControlItem::stop
void stop()
Definition: PlaybackTourControlItem.cpp:49
Marble::GeoDataTourControl::Pause
Definition: GeoDataTourControl.h:24
Marble::PlaybackTourControlItem::pause
void pause()
Definition: PlaybackTourControlItem.cpp:38
PlaybackTourControlItem.h
Marble::PlaybackTourControlItem::play
void play()
Definition: PlaybackTourControlItem.cpp:26
Marble::GeoDataTourControl
Definition: GeoDataTourControl.h:19
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