VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
descriptorPage.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 
11 
12 #include <QtWidgets/QWidget>
13 
14 #include "propertyItem.h"
15 #include <vlutil/vlString.h>
16 
22 
23 class DtDescriptorPage : public QWidget
24 {
25  Q_OBJECT
26 
27 public:
28  DtDescriptorPage(makVrv::DtDe&, QWidget* parent = NULL, const Qt::WindowFlags& flags = 0);
29 
30  virtual ~DtDescriptorPage();
31 
32  virtual bool init(DtVrfObjectParameters* p, DtVrfObjectParameters* b, const QString& filename);
33 
34  bool initialized() const;
35 
36  // Override to add page item creators to map of items to create
37  virtual void addPageItems(DtVrfObjectParameters* p, DtVrfObjectParameters* b, const QString& filename);
40 
41  static DtDescriptorPage* create(makVrv::DtDe&, QWidget* parent = NULL, const Qt::WindowFlags& flags = 0);
42 
43  virtual void savedOpdFile();
44 
45  virtual bool canCreateParameterItem() const;
46  virtual bool canDeleteParameterItem() const;
47  virtual bool canRestoreParameterItem() const;
50  virtual void createParameterEntry();
51  virtual QString selectedPath() const;
52  virtual void setSelectedPath(const QStringList&);
53 
54 signals:
56  void rightButtonPressed(QTreeWidgetItem*, QMouseEvent*, int);
57 
58 protected:
59  virtual void addDefaultFactoryItems();
60 
61  // Sets up information based on current and backup list types. Assumes all list
62  // entries are of type reader/writer
63  virtual void setupListItems(DtPropertyItem* propertyBase, DtReaderWriter* current, DtReaderWriter* backup,
64  DtPICreator itemToCreate);
65 
66  virtual void addIdentifierEntry(const QString&);
68  virtual void initPropertySheetConnections();
69  virtual void setupPropertySheet();
70 
72 
73  virtual void setupPropertySheetToolTips();
74 
75 protected:
79 
82 };
83 
84 inline bool DtDescriptorPage::initialized() const
85 {
86  return myInitialized;
87 }
88 
89 typedef DtDescriptorPage* (*DtDescriptorPageCreatorFcn)(makVrv::DtDe&, QWidget* parent, const Qt::WindowFlags& flags);

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)