[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars
From: Jason Harris <kstars () 30doradus ! org>
Date: 2008-06-27 6:55:54
Message-ID: 1214549754.434110.4406.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 825021 by harris:
Fix bug that made it impossible to compute FOV angles of eyepieces and cameras in
the NewFOV tool.
CCMAIL: kstars-devel@kde.org
M +3 -6 fovdialog.cpp
--- trunk/KDE/kdeedu/kstars/kstars/fovdialog.cpp #825020:825021
@@ -224,14 +224,11 @@
void NewFOV::slotComputeFOV() {
KStars *ks = (KStars*)(parent()->parent());
- if ( sender() == ks->actionCollection()->action( "ComputeEyeFOV" ) ) kDebug() << \
"A";
- if ( sender() == ks->actionCollection()->action( "ComputeEyeFOV" ) && \
ui->TLength1->value() > 0.0 ) kDebug() << "B";
-
- if ( sender() == ks->actionCollection()->action( "ComputeEyeFOV" ) && \
ui->TLength1->value() > 0.0 ) + if ( sender() == ui->ComputeEyeFOV && \
ui->TLength1->value() > 0.0 )
ui->FOVEdit->setText( KGlobal::locale()->formatNumber( ui->EyeFOV->value() * \
ui->EyeLength->value() / ui->TLength1->value() ) );
- else if ( sender() == ks->actionCollection()->action( "ComputeCameraFOV" ) && \
ui->TLength2->value() > 0.0 ) + else if ( sender() == ui->ComputeCameraFOV && \
ui->TLength2->value() > 0.0 )
ui->FOVEdit->setText( KGlobal::locale()->formatNumber( ui->ChipSize->value() \
* 3438.0 / ui->TLength2->value() ) );
- else if ( sender() == ks->actionCollection()->action( "ComputeHPBW" ) && \
ui->RTDiameter->value() > 0.0 && ui->WaveLength->value() > 0.0 ) { + else if ( \
sender() == ui->ComputeHPBW && ui->RTDiameter->value() > 0.0 && \
ui->WaveLength->value() > 0.0 ) {
ui->FOVEdit->setText( KGlobal::locale()->formatNumber( 34.34 * 1.2 * \
ui->WaveLength->value() / ui->RTDiameter->value() ) ); // Beam width for an antenna \
is usually a circle on the sky. ui->ShapeBox->setCurrentIndex(4);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic