NCL Composer  0.1.5
 All Classes Functions Variables Pages
IPreferencesPage.h
1 /* Copyright (c) 2011-2012 Telemidia/PUC-Rio.
2  * All rights reserved. This program and the accompanying materials
3  * are made available under the terms of the Eclipse Public License v1.0
4  * which accompanies this distribution, and is available at
5  * http://www.eclipse.org/legal/epl-v10.html
6  *
7  * Contributors:
8  * Telemidia/PUC-Rio - initial API and implementation
9  */
10 
11 #ifndef IPREFENCESPAGE_H
12 #define IPREFENCESPAGE_H
13 
14 #include <QWidget>
15 #include <QIcon>
16 
17 namespace composer {
18  namespace gui {
19 
20 class IPreferencesPage : public QWidget
21 {
22  Q_OBJECT
23 
24 public:
25  IPreferencesPage(QWidget *parent) : QWidget(parent) { }
26 
27 public:
28  virtual const QString getName() { return windowTitle(); }
29  virtual const QIcon getIcon() = 0;
30 
31 public slots:
32  virtual void applyValues() = 0;
33  virtual void setDefaultValues() = 0;
34 };
35 
36 }} //end namespace
37 #endif