VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfOverlayTreeView.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2002 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: vrfOverlayTreeView.h,v $ $Revision: 1.4 $ $State: Exp $
7 *******************************************************************************/
8 
9 #pragma once
13 #include <QtWidgets/QTreeWidget>
14 #include <QtCore/QStringList>
15 #include <boost/signals2.hpp>
16 
17 namespace makVrf
18 {
20  {
21  Q_OBJECT
22 
23  public:
25  DtVrfOverlayTreeView( makVrv::DtDe& de, QWidget* parent = 0 );
26 
28  virtual ~DtVrfOverlayTreeView();
29 
30  virtual std::string selectedOverlay() const;
31 
32  boost::signals2::signal<void (const QStringList& children, std::string overlay)> signal_itemMoved;
33 
34  protected:
35 
36  virtual QMimeData* mimeData(const QList<QTreeWidgetItem*> list) const;
37 
39  virtual bool canDropOnItem(QTreeWidgetItem*, const QStringList& globalIds, QDragMoveEvent* event) const;
40 
42  virtual void dropItems(const QStringList& globalIds, QTreeWidgetItem*);
43 
44  virtual bool isOverlay( QTreeWidgetItem* item ) const;
45 
48  virtual makVrv::DtUniqueID uniqueIDForListItem(QTreeWidgetItem* item) const;
49 
50  virtual void createRightClickMenu();
51 
52  signals:
53  void renameOverlay();
54 
55  protected slots:
56  virtual void showContextMenu(QTreeWidgetItem* item, QMouseEvent* e, int col);
57  virtual void onShowHideLayer();
58  virtual void onLockUnlockLayer();
59  virtual void onHideAllButThis();
60  virtual void onShowAllLayers();
61  virtual void onHideAllLayers();
62  virtual void onSaveOverlayAsShapeFiles();
63  virtual void onImportShapeFileOntoOverlay();
64  virtual void onChangeDefaultHidden();
65  virtual void onRenameOverlay();
66 
67  private:
70  DtVrfOverlayTreeView& operator=(const DtVrfOverlayTreeView& rhs);
71 
72  public:
83  };
84 }
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
QAction * myHideAllButThis
Definition: vrfOverlayTreeView.h:76
QAction * myRenameOverlay
Definition: vrfOverlayTreeView.h:81
QAction * myLockUnlock
Definition: vrfOverlayTreeView.h:75
QAction * myShapeFilesImport
Definition: vrfOverlayTreeView.h:80
QAction * mySetDefaultHidden
Definition: vrfOverlayTreeView.h:82
Definition: vrfTreeWidget.h:26
QMenu * myRightClickMenu
Definition: vrfOverlayTreeView.h:73
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
QAction * myShowAll
Definition: vrfOverlayTreeView.h:77
QAction * mySaveAsShapeFiles
Definition: vrfOverlayTreeView.h:79
boost::signals2::signal< void(const QStringList &children, std::string overlay)> signal_itemMoved
Definition: vrfOverlayTreeView.h:32
QAction * myHideAll
Definition: vrfOverlayTreeView.h:78
QAction * myShowHide
Definition: vrfOverlayTreeView.h:74
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Definition: vrfOverlayTreeView.h:19

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)