VR-Exchange 2.1 API Documentation
propertyListViewItem.h
Go to the documentation of this file.
1 /*********************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3  ** All rights reserved.
4  *********************************************************************/
5 
8 
9 #ifndef propertyListViewItem_H_
10 #define propertyListViewItem_H_
11 
12 
13 #include <namespace.h>
14 #include <QtGui/QTreeWidget>
15 #include <QtGui/QTreeWidgetItem>
16 #include <QtGui/QItemDelegate>
17 
18 namespace MAKVrExchange
19 {
20 
22  {
23  public:
25 
26  protected:
27  virtual void paint(QPainter * p, const QStyleOptionViewItem& option,
28  const QModelIndex& index) const;
29  };
30 
31  class DtPropertyListView;
32  class DtProperty;
34 
41  {
42  public:
43 
46 
47  virtual ~DtPropertyListViewItem();
48 
49  virtual void expandAll();
50 
51  virtual void collapseAll();
52 
53  // Return the editor widget for the displayed property data
54  virtual DtPropertyEditorWidget* editor();
55 
56  // Set the text displayed in the editor widget
57  virtual void setEditorText(const QString&){};
58 
59  // Return the text currently displayed in the editor widget
60  virtual QString editorText() { return QString::null; };
61 
62  virtual bool operator<(const QTreeWidgetItem&) const;
63  virtual bool operator<(const DtPropertyListViewItem&) const;
64 
65  DtProperty* property();
66  const DtProperty* property() const;
67 
68  void setChanged(bool);
69  void setShowCheckBox(bool);
70  bool showCheckBox() const;
71 
72  protected:
75 
78  };
79 
80 }
81 
82 #endif
83 

Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)