VR-Forces 4.2 Class Documentation
DtGlobalPlansDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtGlobalPlansDialog.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
18 #include <vrfGuiCoreQt/globalPlansWidgetUi.hpp>
19 
20 #include <QtGui/QWidget>
21 
22 namespace makVrv
23 {
24  class DtDe;
25 }
26 
27 namespace makVrf
28 {
29  class DtGlobalPlansLogic;
30 
32  : public QWidget
34  {
35  Q_OBJECT
36 
37  public:
38  //CTOR
39  DtGlobalPlansDialog(makVrv::DtDe& de, QWidget* parent = 0, const Qt::WindowFlags& flags = 0);
40 
41  //DTOR
42  virtual ~DtGlobalPlansDialog();
43 
45  virtual QWidget* widget()
46  {
47  return this;
48  }
49 
50  protected:
51 
52  virtual bool itemSelected() const;
53  virtual void setEditPlanEnabled(bool);
54  virtual void setDeletePlanEnabled(bool);
55  virtual void clearGlobalPlansList();
56  virtual void addGlobalPlan(const QString& planName, const QString& simulationAddress);
57  virtual void removeGlobalPlansForBackend(const QString&);
58 
61  virtual void removePlansFromBackendNotInList(const std::vector<DtString>&, const QString& addr);
62  virtual bool hasPlanNamed(const QString&) const;
63 
64  protected slots:
65  virtual void onSelectedItemsChanged();
66  virtual void onClose();
67  virtual void onEditSelectedPlan();
68  virtual void onNewPlan();
69  virtual void onDeleteSelectedPlan();
70  virtual void onProcessItemDoubleClicked(QTreeWidgetItem*, int);
71  virtual bool getSelectedGlobalPlan(QString& plan, QString& simulationAddress) const;
72 
73  public:
74  Ui_DtGlobalPlansWidgetUi myUiImpl;
75 
76  protected:
77  makVrv::DtDe& myDe;
79  };
80 }

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)