VR-Forces 4.0.4 Class Documentation
include/vrvVrlQt/DtAggregateSettingsLogic.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2012 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 
00009 
00010 #pragma once
00011 
00012 #include <vrvVrlQt/vrvVrlQt.h>
00013 
00014 #include <vrvUtil/DtSignalConnectionManager.h>
00015 
00016 #include <vrvVrl/DtSharedAggregateDisplaySettings.h>
00017 
00018 #include <vector>
00019 
00020 namespace makVrv
00021 {
00022 
00023    class DtDe;
00024    class DtSettingsBackup;
00025    class DtAggregateSettingsInterface;
00026    class DtPersistenceControlsInterface;
00027 
00030    class DT_DLL_VRVVRLQT DtAggregateSettingsLogic : public DtSignalConnectionManager
00031    {
00032    public:
00033 
00035       DtAggregateSettingsLogic(DtDe& de, 
00036          DtPersistenceControlsInterface& persistenceControls,
00037          DtAggregateSettingsInterface& widget);
00038 
00040       ~DtAggregateSettingsLogic();
00041 
00042    protected:
00043 
00045       virtual void sendSettingsToGui();
00046 
00049 
00051       virtual void slot_displayAggregatesChanged( bool enabled );
00052 
00054       virtual void slot_setShowLeafNodesChanged( bool enabled );
00055 
00057       virtual void slot_displayBoundingBoxesForSelectedChanged( bool enabled );
00058 
00060       virtual void slot_displayBoundingBoxesChanged( bool enabled );
00061 
00063       virtual void slot_displayMainIconChanged( bool enabled );
00064 
00066       virtual void slot_aggregateSettingsRestored( const DtSettingsBackup* s );
00067 
00069       virtual void slot_ghostEchelonLevelItemsChanged( bool enabled );
00070 
00072       virtual void slot_allowSelectionOfGhostedItemsChanged( bool enabled );
00073 
00075       virtual void slot_echelonLevelChanged( int l );
00076 
00078       virtual void slot_colorizedModelColorTypeChanged(
00079          DtSharedAggregateDisplaySettings::ColorizedModelColorType type );
00080 
00083 
00084       void on_import();
00085       void on_export();
00086       void on_importFilePathChosen(const std::string& filePath);
00087       void on_exportFilePathChosen(const std::string& filePath);
00088 
00090 
00092 
00093    protected:
00094 
00095       DtAggregateSettingsInterface& myWidget;
00096       DtPersistenceControlsInterface& myPersistenceControls;
00097       DtDe& myDe;
00098 
00099    };
00100 
00101 
00104    class DT_DLL_VRVVRLQT DtAggregateSettingsLogicCreator
00105       : public DtVirtualBaseClass
00106    {
00107    public:
00108 
00110       DtAggregateSettingsLogicCreator();
00111 
00113       virtual ~DtAggregateSettingsLogicCreator();
00114 
00116       static DtAggregateSettingsLogicCreator& instance( DtDe& de );
00117 
00119       static void registerInstance( DtDe& de,
00120          DtAggregateSettingsLogicCreator* instance );
00121 
00123       virtual DtAggregateSettingsLogic* create( DtDe& de,
00124          DtPersistenceControlsInterface&, DtAggregateSettingsInterface& );
00125 
00126    };
00127 
00128 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)