[prev in list] [next in list] [prev in thread] [next in thread]
List: kstars-devel
Subject: [Kstars-devel] branches/kstars/unfrozen/kstars/kstars
From: Jason Harris <kstars () 30doradus ! org>
Date: 2008-07-01 4:31:26
Message-ID: 1214886686.550569.31943.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 826606 by harris:
porting fix from trunk, revision 825021. Quoting original commit message:
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
--- branches/kstars/unfrozen/kstars/kstars/fovdialog.cpp #826605:826606
@@ -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);
_______________________________________________
Kstars-devel mailing list
Kstars-devel@kde.org
https://mail.kde.org/mailman/listinfo/kstars-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic