Changeset 4476 for trunk/MagicSoft


Ignore:
Timestamp:
08/04/04 16:22:45 (20 years ago)
Author:
merck
Message:
MMerck: Added code to identify which panels are selected and where the laser is on.
CVc: Committing in .
Location:
trunk/MagicSoft/AMC/activemirrorcontrol/activemirrorcontrol
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/AMC/activemirrorcontrol/activemirrorcontrol/adjustmirrordlg.cpp

    r3401 r4476  
    265265                m_pMotor->switchLaser( p_zOn );
    266266                m_pCurrentPanel->setLaserOn( p_zOn );
     267                m_mirrorWidget->toggelLaser( m_pCurrentPanel, p_zOn );
    267268        }
    268269        catch( AMCError& e )
     
    469470        int iRet = pDlg->exec();
    470471        delete pDlg;
     472
     473//  adjustIcons();
    471474        Laser_Check->setChecked( m_pCurrentPanel->isLaserOn() );
    472475        enableButtons( true );
     
    495498        pDialog->exec();
    496499        delete pDialog;
     500  adjustIcons();
    497501
    498502        if( m_pCurrentPanel != 0 )
     
    525529
    526530}
     531/** No descriptions */
     532void AdjustMirrorDlg::adjustIcons()
     533{
     534//  qDebug("Global mirror object %X",g_theMirror);
     535  QList<AMCMirrorPanel>& qlPanels = g_theMirror->panelList();
     536        for( AMCMirrorPanel* pActualPanel = qlPanels.first();
     537                 pActualPanel; pActualPanel = qlPanels.next() )
     538        {
     539                m_mirrorWidget->toggelLaser( pActualPanel, pActualPanel->isLaserOn() );
     540        }
     541}
  • trunk/MagicSoft/AMC/activemirrorcontrol/activemirrorcontrol/adjustmirrordlg.h

    r3401 r4476  
    8989  /** show / hide video. */
    9090  virtual void videoSlot();
     91  /** No descriptions */
     92  void adjustIcons();
    9193private: // Private methods
    9294  /** No descriptions */
Note: See TracChangeset for help on using the changeset viewer.