VR-Forces Developer's Guide
 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() override;
29 
30  virtual std::string selectedOverlay(bool& overlayIsParent) 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 override;
37 
39  virtual bool canDropOnItem(QTreeWidgetItem*, const QStringList& globalIds, QDragMoveEvent* event) const override;
40 
42  virtual void dropItems(const QStringList& globalIds, QTreeWidgetItem*) override;
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  virtual void onRemoveFromOverlay();
67 
68  private:
71  DtVrfOverlayTreeView& operator=(const DtVrfOverlayTreeView& rhs);
72 
73  public:
85  };
86 }
QAction * myRemoveFromOverlay
Definition: vrfOverlayTreeView.h:84
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
QAction * myHideAllButThis
Definition: vrfOverlayTreeView.h:77
QAction * myRenameOverlay
Definition: vrfOverlayTreeView.h:82
QAction * myLockUnlock
Definition: vrfOverlayTreeView.h:76
QAction * myShapeFilesImport
Definition: vrfOverlayTreeView.h:81
QAction * mySetDefaultHidden
Definition: vrfOverlayTreeView.h:83
Definition: vrfTreeWidget.h:26
QMenu * myRightClickMenu
Definition: vrfOverlayTreeView.h:74
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
QAction * myShowAll
Definition: vrfOverlayTreeView.h:78
QAction * mySaveAsShapeFiles
Definition: vrfOverlayTreeView.h:80
boost::signals2::signal< void(const QStringList &children, std::string overlay)> signal_itemMoved
Definition: vrfOverlayTreeView.h:32
QAction * myHideAll
Definition: vrfOverlayTreeView.h:79
QAction * myShowHide
Definition: vrfOverlayTreeView.h:75
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Definition: vrfOverlayTreeView.h:19

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)