propertycollectionwidget.h 1.31 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef PROPERTYCOLLECTIONWIDGET_H__
#define PROPERTYCOLLECTIONWIDGET_H__

#include <QList>
#include <QVBoxLayout>
#include <QWidget>

namespace TUMVis {
    class PropertyCollection;

    /**
     * Main Window for the TUMVis application.
     * Wraps a nice Qt GUI around the TumVisApplication instance given during creation.
     */
    class PropertyCollectionWidget : public QWidget {
        Q_OBJECT;

    public:
        /**
         * Creates a new PropertyCollectionWidget.
         * \param   parent  Parent widget, may be 0.
         */
        PropertyCollectionWidget(QWidget* parent = 0);

        /**
         * Destructor.
         */
        ~PropertyCollectionWidget();

    public slots:
        /**
         * Updates the property collection this widget works on.
         * \param   propertyCollection  New PropertyCollection for this widget, may be 0.
         */
        void updatePropCollection(PropertyCollection* propertyCollection);


    private:
        /**
         * Sets up this widget
         */
        void setupWidget();

        PropertyCollection* _propCollection;    ///< The PropertyCollection this widget is currently working on.
        QVBoxLayout* _layout;
        QList<QWidget*> _widgetList;
    };
}

#endif // PROPERTYCOLLECTIONWIDGET_H__