• 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
  • options
opsadvanced.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  opsadvanced.cpp - K Desktop Planetarium
3  -------------------
4  begin : Sun 14 Mar 2004
5  copyright : (C) 2004 by Jason Harris
6  email : jharris@30doradus.org
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 "opsadvanced.h"
19 
20 #include <qlabel.h>
21 #include <qcheckbox.h>
22 
23 #include "Options.h"
24 #include "kstars.h"
25 #include "widgets/timestepbox.h"
26 
27 OpsAdvanced::OpsAdvanced( KStars *_ks )
28  : QFrame( _ks ), ksw(_ks)
29 {
30  setupUi( this );
31 
32  //Initialize the timestep value
33  SlewTimeScale->tsbox()->changeScale( Options::slewTimeScale() );
34 
35  connect( SlewTimeScale, SIGNAL( scaleChanged( float ) ), this, SLOT( slotChangeTimeScale( float ) ) );
36 
37  connect( kcfg_HideOnSlew, SIGNAL( clicked() ), this, SLOT( slotToggleHideOptions() ) );
38 }
39 
40 OpsAdvanced::~OpsAdvanced() {}
41 
42 void OpsAdvanced::slotChangeTimeScale( float newScale ) {
43  Options::setSlewTimeScale( newScale );
44 }
45 
46 void OpsAdvanced::slotToggleHideOptions() {
47  textLabelHideTimeStep->setEnabled( kcfg_HideOnSlew->isChecked() );
48  SlewTimeScale->setEnabled( kcfg_HideOnSlew->isChecked() );
49  HideBox->setEnabled( kcfg_HideOnSlew->isChecked() );
50 }
51 
52 #include "opsadvanced.moc"
KStars
This is the main window for KStars.
Definition: kstars.h:94
Options::slewTimeScale
static double slewTimeScale()
Get Minimum timescale for forced-slewing mode.
Definition: Options.h:2272
timestepbox.h
Options::setSlewTimeScale
static void setSlewTimeScale(double v)
Set Minimum timescale for forced-slewing mode.
Definition: Options.h:2262
opsadvanced.h
Options.h
OpsAdvanced::OpsAdvanced
OpsAdvanced(KStars *_ks)
Definition: opsadvanced.cpp:27
QFrame
kstars.h
OpsAdvanced::~OpsAdvanced
~OpsAdvanced()
Definition: opsadvanced.cpp:40
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