VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/vrfOverlaySelectionList.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: vrfOverlaySelectionList.h,v $ $Revision: 1.1 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00013 
00014 #pragma once
00015 
00016 #include <vrvCoreQt/DtToolbar.h>
00017 #include <vrvCoreQt/DtWidgetBuilder.h>
00018 
00019 #include <vrfGuiCoreQt/vrfGuiCoreQt.h>
00020 #include <vrfGuiCoreQt/vrfOverlaySelectionListInterface.h>
00021 
00022 #include <QtGui/QWidget>
00023 
00024 class QComboBox;
00025 class QVBoxLayout;
00026 class QHBoxLayout;
00027 class QLabel;
00028 
00029 namespace makVrv
00030 {
00031    class DtDe;
00032 }
00033 
00034 namespace makVrf
00035 {
00036    class DtVrfOverlaySelectionListLogic;
00037 
00041    class DT_DLL_VRFGUICOREQT DtVrfOverlaySelectionListToolbar : public makVrv::DtToolbar
00042    { 
00043    public:
00044 
00046       DtVrfOverlaySelectionListToolbar(makVrv::DtDe&);
00047 
00049       virtual ~DtVrfOverlaySelectionListToolbar();
00050 
00052       virtual QToolBar* createToolbar(makVrv::DtDe&, QWidget* parent);
00053 
00054    }; 
00055 
00056   
00058    class DT_DLL_VRFGUICOREQT DtVrfOverlaySelectionCombo
00059       : public QWidget
00060       , public DtVrfOverlaySelectionListInterface
00061    {
00062       Q_OBJECT
00063 
00064    public:
00066       DtVrfOverlaySelectionCombo( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
00067 
00069       virtual ~DtVrfOverlaySelectionCombo();
00070 
00071       virtual void addOverlay(const std::string& name);
00072 
00073       virtual void removeOverlay(const std::string& name);
00074 
00075       virtual void renameOverlay(const std::string& oldName, const std::string& newName);
00076 
00077       virtual void selectOverlay(const std::string& name);
00078 
00079    protected:
00081       void setupUi(QWidget* p);
00082 
00083       protected slots:
00084          virtual void onItemSelectionChanged();
00085 
00086    protected:
00087       makVrv::DtDe& myDe;
00088       DtVrfOverlaySelectionListLogic* myLogic;
00089 
00090    public:
00091       QHBoxLayout*   myMainLayout;
00092       QLabel*        myLabel;
00093       QComboBox*     myOverlays;
00094    };
00095 
00096    class DT_DLL_VRFGUICOREQT DtVrfOverlaySelectionListBuilder : public makVrv::DtWidgetBuilder
00097    { 
00098 
00099    public:
00100 
00101       DtVrfOverlaySelectionListBuilder();
00102 
00103       virtual ~DtVrfOverlaySelectionListBuilder();
00104 
00105       virtual QWidget* create( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
00106    };
00107 }
00108 

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)