VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
descriptorCanvas.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include <vrvUtil/signalslib.h>
9 
10 #include <QtGui/QWidget>
11 
12 #include <map>
13 
14 #include <vlutil/vlString.h>
15 
16 #include "descriptorPage.h"
17 
19 class QTabWidget;
20 
21 namespace makVrv
22 {
23  class DtDe;
24 }
25 
26 typedef struct DtDescriptorPageStruct
27 {
28  QString myTabName;
32 
33 typedef std::map<int, DtDescriptorPageStruct> DtDescriptorPages;
34 
36 {
37  Q_OBJECT
38 
39 public:
40  DtDescriptorCanvas(makVrv::DtDe&, QWidget* parent = NULL, const Qt::WindowFlags& flags = 0);
41 
42  // Creates canvas for items found in the supplied parameter
43  virtual bool init(DtVrfObjectParameters* current, DtVrfObjectParameters* backup, const QString& filename);
44 
45  // Adds a new page to the pages that will be created in initTabs
46  virtual void addPage(int iIndex, const QString& name,
48 
49  virtual void savedOpdFile();
50 
51  virtual bool canCreateParameterItem() const;
52  virtual bool canDeleteParameterItem() const;
53  virtual bool canRestoreParameterItem() const;
56  virtual void createParameterEntry();
57 
58  virtual QString currentTab(QString&) const;
59  virtual void setCurrentTab(const QString&, const QStringList& tabPath);
60  virtual void setupDescriptorPage(int);
61 
62 protected:
64 
65  virtual bool setupDescriptorTabs(DtVrfObjectParameters* p, DtVrfObjectParameters* b) { return false; };
66 
67  virtual QWidget* createTab();
68 
69  virtual void clearPages();
70 
71 protected slots:
72  void setupDescriptorPage();
73 
74 signals:
76  void rightButtonPressed(QTreeWidgetItem*, QMouseEvent*, int);
77 
78 protected:
82 
85  QString myFilename;
87 };
88 
89 typedef DtDescriptorCanvas* (*DtDescriptorCanvasCreatorFcn)(makVrv::DtDe&, QWidget* parent, const Qt::WindowFlags& flags);

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)