![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2009 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtGlobalPlansDialog.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00011 00013 00014 #pragma once 00015 00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h> 00017 #include <vrfGuiCoreQt/DtGlobalPlansDialogInterface.h> 00018 #include <vrfGuiCoreQt/globalPlansWidgetUi.hpp> 00019 00020 #include <QtGui/QWidget> 00021 00022 namespace makVrv 00023 { 00024 class DtDe; 00025 } 00026 00027 namespace makVrf 00028 { 00029 class DtGlobalPlansLogic; 00030 00031 class DT_DLL_VRFGUICOREQT DtGlobalPlansDialog 00032 : public QWidget 00033 , public DtGlobalPlansDialogInterface 00034 { 00035 Q_OBJECT 00036 00037 public: 00038 //CTOR 00039 DtGlobalPlansDialog(makVrv::DtDe& de, QWidget* parent = 0, const Qt::WindowFlags& flags = 0); 00040 00041 //DTOR 00042 virtual ~DtGlobalPlansDialog(); 00043 00045 virtual QWidget* widget() 00046 { 00047 return this; 00048 } 00049 00050 protected: 00051 00052 virtual bool itemSelected() const; 00053 virtual void setEditPlanEnabled(bool); 00054 virtual void setDeletePlanEnabled(bool); 00055 virtual void clearGlobalPlansList(); 00056 virtual void addGlobalPlan(const QString& planName, const QString& simulationAddress); 00057 virtual void removeGlobalPlansForBackend(const QString&); 00058 00061 virtual void removePlansFromBackendNotInList(const std::vector<DtString>&, const QString& addr); 00062 virtual bool hasPlanNamed(const QString&) const; 00063 00064 protected slots: 00065 virtual void onSelectedItemsChanged(); 00066 virtual void onClose(); 00067 virtual void onEditSelectedPlan(); 00068 virtual void onNewPlan(); 00069 virtual void onDeleteSelectedPlan(); 00070 virtual void onProcessItemDoubleClicked(QTreeWidgetItem*, int); 00071 virtual bool getSelectedGlobalPlan(QString& plan, QString& simulationAddress) const; 00072 00073 public: 00074 Ui_DtGlobalPlansWidgetUi myUiImpl; 00075 00076 protected: 00077 makVrv::DtDe& myDe; 00078 DtGlobalPlansLogic* myLogic; 00079 }; 00080 }