~xalioth/stellarium/fix-fonts-gltex-fab

« back to all changes in this revision

Viewing changes to src/gui/StelGui.cpp

  • Committer: matthewg42
  • Date: 2008-11-27 14:36:21 UTC
  • Revision ID: vcs-imports@canonical.com-20081127143621-fbasu1vl30kq2edv
refactor: MovementMgr -> StelMovementMgr

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "StelApp.hpp"
23
23
#include "StelCore.hpp"
24
24
#include "StelProjector.hpp"
25
 
#include "MovementMgr.hpp"
 
25
#include "StelMovementMgr.hpp"
26
26
#include "StelFileMgr.hpp"
27
27
#include "StelModuleMgr.hpp"
28
28
#include "StelMainGraphicsView.hpp"
317
317
        QObject::connect(getGuiActions("actionShow_Night_Mode"), SIGNAL(toggled(bool)), module, SLOT(setVisionModeNight(bool)));
318
318
        getGuiActions("actionShow_Night_Mode")->setChecked(StelApp::getInstance().getVisionModeNight());
319
319
        
320
 
        module = GETSTELMODULE("MovementMgr");
 
320
        module = GETSTELMODULE("StelMovementMgr");
321
321
        QObject::connect(getGuiActions("actionGoto_Selected_Object"), SIGNAL(triggered()), module, SLOT(setFlagTracking()));
322
322
        QObject::connect(getGuiActions("actionZoom_In_Auto"), SIGNAL(triggered()), module, SLOT(autoZoomIn()));
323
323
        QObject::connect(getGuiActions("actionZoom_Out_Auto"), SIGNAL(triggered()), module, SLOT(autoZoomOut()));
324
324
        QObject::connect(getGuiActions("actionSet_Tracking"), SIGNAL(toggled(bool)), module, SLOT(setFlagTracking(bool)));
325
 
        MovementMgr* mmgr = (MovementMgr*)module;
 
325
        StelMovementMgr* mmgr = (StelMovementMgr*)module;
326
326
        getGuiActions("actionSet_Tracking")->setChecked(mmgr->getFlagTracking());
327
327
        
328
328
        QObject::connect(getGuiActions("actionSet_Full_Screen_Global"), SIGNAL(toggled(bool)), &StelMainWindow::getInstance(), SLOT(setFullScreen(bool)));
689
689
        const bool isTimeNow=nav->getIsTimeNow();
690
690
        if (buttonTimeCurrent->isChecked()!=isTimeNow)
691
691
                buttonTimeCurrent->setChecked(isTimeNow);
692
 
        MovementMgr* mmgr = (MovementMgr*)GETSTELMODULE("MovementMgr");
 
692
        StelMovementMgr* mmgr = (StelMovementMgr*)GETSTELMODULE("StelMovementMgr");
693
693
        const bool b = mmgr->getFlagTracking();
694
694
        if (buttonGotoSelectedObject->isChecked()!=b)
695
695
                buttonGotoSelectedObject->setChecked(b);