~ubuntu-branches/debian/wheezy/stellarium/wheezy

« back to all changes in this revision

Viewing changes to plugins/Oculars/src/gui/OcularsGuiPanel.cpp

  • Committer: Package Import Robot
  • Author(s): Tomasz Buchert
  • Date: 2012-05-22 10:14:07 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20120522101407-038f2hr2jj6ra59c
Tags: 0.11.3-1
ImportedĀ UpstreamĀ versionĀ 0.11.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
685
685
        posY += fieldTelescopeName->boundingRect().height();
686
686
        widgetHeight += fieldTelescopeName->boundingRect().height();
687
687
 
688
 
        if (ocularsPlugin->flagShowOculars)
 
688
        if (ocularsPlugin->flagShowCCD)
 
689
        {
 
690
                int index = ocularsPlugin->selectedCCDIndex;
 
691
                CCD* ccd = ocularsPlugin->ccds[index];
 
692
                Q_ASSERT(ccd);
 
693
 
 
694
                double fovX = ((int)(ccd->getActualFOVx(telescope) * 1000.0)) / 1000.0;
 
695
                double fovY = ((int)(ccd->getActualFOVy(telescope) * 1000.0)) / 1000.0;
 
696
                QString stringFovX = QString::number(fovX) + QChar(0x00B0);
 
697
                QString stringFovY = QString::number(fovY) + QChar(0x00B0);
 
698
                QString dimensions = stringFovX + QChar(0x00D7) + stringFovY;
 
699
                QString dimensionsLabel = QString(q_("Dimensions: %1")).arg(dimensions);
 
700
                fieldCcdDimensions->setPlainText(dimensionsLabel);
 
701
 
 
702
                fieldMagnification->setVisible(false);
 
703
                fieldFov->setVisible(false);
 
704
        }
 
705
        else if (ocularsPlugin->flagShowOculars)
689
706
        {
690
707
                //We need the current ocular
691
708
                int index = ocularsPlugin->selectedOcularIndex;
857
874
        buttonTelrad->setPos(posX, posY);
858
875
        posX += buttonTelrad->getButtonPixmapWidth() + spacing;
859
876
        buttonConfiguration->setPos(posX, posY);
860
 
        posX += buttonConfiguration->getButtonPixmapWidth() + spacing;
861
877
}
862
878
 
863
879
void OcularsGuiPanel::setControlsColor(const QColor& color)