propertycollectionwidget.h 1.34 KB
Newer Older
1
2
3
4
5
6
7
8
#ifndef PROPERTYCOLLECTIONWIDGET_H__
#define PROPERTYCOLLECTIONWIDGET_H__

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

namespace TUMVis {
schultezub's avatar
schultezub committed
9
    class HasPropertyCollection;
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

    /**
     * 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.
schultezub's avatar
schultezub committed
33
         * \param   propertyCollection  New HasPropertyCollection instance for this widget, may be 0.
34
         */
schultezub's avatar
schultezub committed
35
        void updatePropCollection(HasPropertyCollection* propertyCollection);
36
37
38
39
40
41
42
43


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

schultezub's avatar
schultezub committed
44
        HasPropertyCollection* _propCollection;    ///< The HasPropertyCollection instance this widget is currently working on.
45
46
47
48
49
50
        QVBoxLayout* _layout;
        QList<QWidget*> _widgetList;
    };
}

#endif // PROPERTYCOLLECTIONWIDGET_H__