source: projectionDesigner/tag/ProjectionDesigner_1.1.5/projdesignerplugins/defaultplugin/DefaultEmptySceneWidget.h @ 2

Last change on this file since 2 was 2, checked in by Torben Dannhauer, 14 years ago
File size: 2.3 KB
RevLine 
[2]1#ifndef __DEFAULT_EMPTY_SCENE_WIDGET_H__
2#define __DEFAULT_EMPTY_SCENE_WIDGET_H__
3
4
5// Includes Projection Designer headers
6#include <projdesigner/include/interfaces.h>
7
8// Includes the ui_ header
9#include "ui_defaultemptyscenewidget.h"
10
11// Includes local headers
12#include "DefaultEmptySceneContent.h"
13
14/**
15 * Implementation of the DefaultEmptySceneWidget class.
16 *
17 * This widget is used in a stacked widget with all the other sceneprojectors,
18 * to configure the Empty Scene. As the empty scene as no parameter, this widget
19 * is quite simple: it is empty.
20 *
21 */
22class DefaultEmptySceneWidget : public SceneWidget,
23                                private Ui::DefaultEmptySceneWidget
24{
25    Q_OBJECT
26               
27
28public:
29
30
31    /**
32     * Default constructor.
33     *
34     */
35    DefaultEmptySceneWidget(SceneInterface *plugin, QWidget* pParent=0, Qt::WFlags flag=0);
36
37
38    /**
39     * Destructor.
40     *
41     */
42    ~DefaultEmptySceneWidget();
43
44
45    /**
46     * Updates the widget.
47     *
48     * This method can be used it two ways: to force a refresh or to update the
49     * data of the widget.
50     *
51     * @param content A const pointer on the contents to be used for the widget.
52     *                This contents will be duplicated in the widget. If content
53     *                is NULL, the current content are used and the refresh is
54     *                forced. If no content are given, NULL is used.
55     *
56     */
57    void updateGUI(const SceneContent* data=NULL);
58
59
60    /**
61     * Gets the widget contents.
62     *
63     * @return A const reference on the content of the widget.
64     *
65     */
66    const SceneContent& content(void) const {return m_content;}
67
68
69signals:
70
71
72    /**
73     * [signal] Notify that the contents of the widget have changed.
74     *
75     * This signal will never be emited, because there is no control in the
76     * widget. It is only implemented because the
77     *     void SceneWidget::dataChanged(const SceneContent&)
78     * is a pure virtual signal.
79     *
80     * @param content A const reference on the new contents (the same as
81     *                returned by the content() method).
82     *
83     */
84    virtual void dataChanged(const SceneContent&);
85
86
87private:
88
89
90    /// The current DefaultEmptySceneContent of the widget.
91    DefaultEmptySceneContent m_content;
92
93
94};
95
96#endif // __DEFAULT_EMPTY_SCENE_WIDGET_H__
Note: See TracBrowser for help on using the repository browser.