![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtCockpitSettingsLogic.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvGlStudioQt/DtGlStudioQt.h> 00016 #include <vrvUtil/DtSignalConnectionManager.h> 00017 00018 #include <string> 00019 00020 class DtExerciseConnInitializer; 00021 00022 namespace makVrv 00023 { 00024 00025 class DtCockpitSettingsInterface; 00026 class DtPersistenceControlsInterface; 00027 class DtDe; 00028 class DtSettingsBackup; 00029 00032 class DT_DLL_VRVGLSTUDIO_QT DtCockpitSettingsLogic : DtSignalConnectionManager 00033 { 00034 public: 00035 00037 DtCockpitSettingsLogic(DtDe& de, 00038 DtPersistenceControlsInterface& persistenceControls, 00039 DtCockpitSettingsInterface& widget); 00040 00042 virtual ~DtCockpitSettingsLogic(); 00043 00044 protected: 00046 virtual void sendSettingsToGui(); 00047 00049 //@ { 00050 00052 void slot_cockpitsEnabled(bool enabled); 00053 00055 void slot_smoothingEnabled(bool enabled); 00056 00058 void slot_smoothingPeriodSet(float time); 00059 00061 virtual void on_import(); 00062 virtual void on_export(); 00063 virtual void on_importFilePathChosen(const std::string& filePath); 00064 virtual void on_exportFilePathChosen(const std::string& filePath); 00065 //@ } 00066 00068 virtual void settingsRestored(const DtSettingsBackup*); 00069 00070 DtCockpitSettingsInterface& myWidget; 00071 DtPersistenceControlsInterface& myPersistenceInterface; 00072 DtDe& myDe; 00073 }; 00074 }