VR-Forces 4.1 Class Documentation
vrfTacticalGraphicOverlayTreeWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
11 
12 #pragma once
16 
17 class QToolButton;
18 
19 namespace makVrv
20 {
21  class DtVirtualBaseClass;
22  class DtDe;
23 }
24 
25 namespace makVrf
26 {
32  {
33  Q_OBJECT
34 
35  public:
36 
39 
42 
44  virtual void addOverlay(const std::string& name);
45 
47  virtual void lockOverlay(const std::string& name, bool lock);
48 
50  virtual void addTacticalGraphic( const makVrv::DtUniqueID& id, const std::string& name, const std::string& ovrName );
51 
53  virtual void removeOverlay( const std::string& ovrName );
54 
56  virtual void setOverlaySelected( const std::string& name, bool flag );
57 
59  virtual void enableAddOverlays(bool flag);
61  virtual void enableDeleteOverlays(bool flag);
63  virtual void enableEditOverlays(bool flag);
65  virtual void enableLockOverlays(bool flag);
66 
68  virtual void clear();
69 
71  virtual void updateUI();
72 
73 protected slots:
74 
76  void slot_addOverlayButtonClicked();
77 
79  void slot_removeOverlayButtonClicked();
80 
82  void slot_editOverlayButtonClicked();
83 
85  void slot_lockOverlayButtonClicked();
86 
88  void slot_itemClicked(QTreeWidgetItem* item, int column );
89 
91  void slot_itemDoubleClicked(QTreeWidgetItem* item, int column );
92 
94  void slot_currentItemChanged( QTreeWidgetItem * current, QTreeWidgetItem * previous );
95 
97  void slot_itemChanged ( QTreeWidgetItem * item, int column );
98 
100  void slot_itemMoved(const QStringList& children, std::string overlay);
101 
103  void slot_hideOverlaysStateChanged( int state );
104 
105  protected:
106 
108  virtual void updateUI(QTreeWidgetItem* current);
109 
110  protected:
111 
119  std::string myLastSelectedText;
120  };
121 }
122 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)