~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/Gui/PropertyView.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2010-01-11 08:48:33 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100111084833-4g9vgdqbkw8u34zb
Tags: 0.9.2646.5-1
* New upstream version (closes: #561696).
* Added swig to Build-Depends (closes: #563523, #563772).
* Removed python-opencv from Build-Depends and Recommends (closes: #560768).

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#define GUI_DOCKWND_PROPERTYVIEW_H
27
27
 
28
28
 
29
 
#ifndef __Qt4All__
30
 
# include "Qt4All.h"
31
 
#endif
32
 
 
33
 
 
34
29
#include "DockWindow.h"
35
30
#include "Selection.h"
36
31
 
37
32
class QPixmap;
 
33
class QTabWidget;
38
34
 
39
35
namespace App {
40
36
  class PropertyContainer;
55
51
 
56
52
/** The property view class.
57
53
 */
58
 
class PropertyView : public QWidget, public Gui::SelectionSingleton::ObserverType
 
54
class PropertyView : public QWidget, public Gui::SelectionObserver
59
55
{
60
56
    Q_OBJECT
61
57
 
63
59
    PropertyView(QWidget *parent=0);
64
60
    virtual ~PropertyView();
65
61
 
66
 
    /// Observer message from the Selection
67
 
    virtual void OnChange(Gui::SelectionSingleton::SubjectType &rCaller,
68
 
                          Gui::SelectionSingleton::MessageType Reason);
69
 
 
70
 
 
71
 
    bool onMsg(const char* pMsg);
72
 
 
73
 
    virtual const char *getName(void) const {return "PropertyView";}
74
 
 
75
 
    /// get called when the document is changed or updated
76
 
    virtual void onUpdate(void);
77
 
 
78
62
    Gui::PropertyEditor::PropertyEditor* propertyEditorView;
79
63
    Gui::PropertyEditor::PropertyEditor* propertyEditorData;
80
64
 
82
66
    void changeEvent(QEvent *e);
83
67
 
84
68
private:
 
69
    void onSelectionChanged(const SelectionChanges& msg);
 
70
 
 
71
private:
85
72
    QTabWidget* tabs;
86
73
};
87
74