VR-Forces 4.2 Class Documentation
DtVrfGlobalPlansManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtVrfGlobalPlansManager.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
17 #include <vrvUtil/DtVirtualBaseClass.h>
18 
19 #include <vrvUtil/signalslib.h>
20 
21 #include <QtCore/QObject>
22 
23 namespace makVrv
24 {
25  class DtDe;
26 }
27 
28 class QWidget;
29 
30 namespace makVrf
31 {
32  class DtGlobalPlansDialogInterface;
33  class DtGlobalPlansDialog;
34  class DtEditGlobalPlanWidget;
35 
37  {
38  Q_OBJECT
39 
40  public:
43 
44  virtual void connectSignals(DtGlobalPlansDialogInterface*);
45  virtual void disconnectSignals(DtGlobalPlansDialog*);
46 
47  virtual void connectSignals(DtEditGlobalPlanWidget*);
48  virtual void disconnectSignals(DtEditGlobalPlanWidget*);
49 
50  public:
52  boost::signal<void (DtGlobalPlansDialog*)> signal_dialogDestroyed;
53 
55  boost::signal<void (DtEditGlobalPlanWidget*)> signal_globalPlanDialogDestroyed;
56 
57  protected slots:
58  virtual void onDialogDestroyed();
59  virtual void onGlobalPlanDialogDestroyed();
60 
61  protected:
62  makVrv::DtDe& myDe;
63  };
64 
65  class DT_DLL_VRFGUICOREQT DtVrfGlobalPlansManager : public makVrv::DtVirtualBaseClass
66  {
67  public:
69  DtVrfGlobalPlansManager(makVrv::DtDe&);
70 
72  virtual ~DtVrfGlobalPlansManager();
73 
75  static DtVrfGlobalPlansManager& instance(makVrv::DtDe& de);
76 
78  virtual void show(QWidget* parent);
79 
80  virtual DtEditGlobalPlanWidget* editGlobalPlan(const std::string& plan, const QString& simulationAddress, QWidget* parent,
81  bool isNewPlan = false);
82 
83  public:
84 
85  boost::signal<void (DtEditGlobalPlanWidget*, QString, QString)> signal_globalPlanEditorCreated;
86  boost::signal<void (DtEditGlobalPlanWidget*, QString, QString)> signal_globalPlanEditorDeleted;
87 
88  protected:
89  virtual DtGlobalPlansDialogInterface* createGlobalPlansDialog(QWidget*);
90  virtual DtEditGlobalPlanWidget* createGlobalPlanEditDialog(QWidget*, const std::string& p, const QString& a,
91  bool isNewPlan);
92 
93  virtual void slot_onDialogDestroyed();
94  virtual void slot_onGlobalPlanDialogDestroyed(DtEditGlobalPlanWidget*);
95 
96  protected:
97  typedef std::pair<std::string, std::string> DtGlobalPlanInformation;
98  typedef std::map<DtEditGlobalPlanWidget*, DtGlobalPlanInformation> DtGlobalPlanInformationMap;
99 
100  makVrv::DtDe& myDe;
104  };
105 }

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)