![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtEntitySelectionDialog.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00011 00013 00014 #pragma once 00015 00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h> 00017 00018 #include <QtGui/QDialog> 00019 00020 class QHBoxLayout; 00021 class QVBoxLayout; 00022 00023 namespace makVrv 00024 { 00025 class DtDe; 00026 } 00027 00028 namespace makVrf 00029 { 00030 class DtVrfSelectionFilter; 00031 class DtEntitySelectionDialogLogic; 00032 class DtVrfFilteredListView; 00033 00034 class DT_DLL_VRFGUICOREQT DtEntitySelectionDialog : public QDialog 00035 { 00036 Q_OBJECT 00037 public: 00038 //CTOR 00039 DtEntitySelectionDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0); 00040 00041 //DTOR 00042 virtual ~DtEntitySelectionDialog(); 00043 00044 virtual int exec(); 00045 00046 virtual QString selectedName(); 00047 00048 virtual void setOKEnabled(bool); 00049 00050 virtual void addFilter(const DtVrfSelectionFilter* f); 00051 00052 protected: 00053 virtual void setupGui(); 00054 00055 protected: 00056 DtEntitySelectionDialogLogic* myLogic; 00057 makVrv::DtDe& myDe; 00058 00059 public: 00060 QVBoxLayout* myMainLayout; 00061 DtVrfFilteredListView* myListView; 00062 QHBoxLayout* myButtonLayout; 00063 QPushButton* myOKButton; 00064 QPushButton* myCancelButton; 00065 }; 00066 }