Subversion Repositories Scribus

Rev

Rev 3215 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3213 craig 1
#include <qwidget.h>
2
#include <scribusapi.h>
3
 
4
/**
5
 * \brief A base class for all preferences panels.
6
 *
7
 * This class provides a simple interface for prefs panel widgets.
8
 * They must provide an apply() slot that applies any changes to
9
 * the app, and they must NOT apply any changes until and unless
10
 * this slot is called.
11
 */
12
class SCRIBUS_API PrefsPanel : public QWidget
13
{
14
        Q_OBJECT
15
 
16
        public:
17
                PrefsPanel(QWidget* parent, const char* name)
18
                        : QWidget(parent, name, 0) {};
19
                virtual ~PrefsPanel() {};
20
 
21
        public slots:
22
                /**
23
                 * \brief applies changes made to prefs to the app.
24
                 *
25
                 * All subclasses MUST override this.
26
                 *
27
                 * This slot may be called multiple times, once, or not at all;
28
                 * no assumptions should be made.
29
                 */
30
                virtual void apply() = 0;
31
};