VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtMouseMappingEditorLogic.h
Go to the documentation of this file.
00001 /******************************************************************************* 
00002 ** Copyright (c) 2009 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 *******************************************************************************/ 
00005 /******************************************************************************* 
00006 ** $RCSfile: DtMouseMappingEditorLogic.h,v $ $Revision: 1.12 $ $State: Exp $ 
00007 *******************************************************************************/ 
00008  
00012 
00013 #pragma once
00014 
00015 #include <vrvCoreQt/vrvCoreQt.h> 
00016 
00017 #include <QtCore/QString>
00018 
00019 namespace makVrv 
00020 { 
00021    class DtDe;
00022    class DtMouseMappingEditorWidgetInterface;
00023    class DtSelectInstanceWidget;
00024 
00027    class DT_DLL_VRVCOREQT DtMouseMappingEditorLogic
00028    {
00029    protected:
00030       typedef struct
00031       {
00032          QString  Key;
00033          QString  Context;
00034          QString  FunctionText;
00035          bool     Ctrl;
00036          bool     Shift;
00037          bool     Drag;
00038       } MouseMappingInformation;
00039 
00040       typedef std::vector<MouseMappingInformation>    MouseMappingList;
00041       typedef std::map<std::string, MouseMappingList> MouseMappings;
00042 
00043    public:
00044    
00045       DtMouseMappingEditorLogic(DtDe& de,
00046          DtMouseMappingEditorWidgetInterface& iFace, DtSelectInstanceWidget& selectedInstance );
00047          
00049       virtual ~DtMouseMappingEditorLogic();
00050 
00051       virtual void setupGui();
00052 
00053    protected:
00054       virtual void slot_currentInstanceChanged(int, const std::string&);
00055 
00056       virtual void addItem( const QString& mode, const QString& key, 
00057          const QString& context, const QString& functionText = "", bool ctrl = false, bool shift = false, bool drag = false);
00058 
00059    protected:
00060    
00061       DtDe& myDe;
00062       DtMouseMappingEditorWidgetInterface&   myInterface;
00063       DtSelectInstanceWidget&                mySelectedInstance;      
00064       MouseMappings                          myMouseMappings;
00065     };
00066 }

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)