#ifndef SETTINGSVIEW_H_
#define SETTINGSVIEW_H_
-#include "ObservedWidget.h"
+#include "ViewBase.h"
class QTabWidget;
class QPushButton;
class QTimeEdit;
class QRadioButton;
class QCheckBox;
+class QSize;
//! User interface class. Shows the settings view and handles configuration changes.
-class SettingsView : public ObservedWidget
+class SettingsView : public ViewBase
{
Q_OBJECT
SettingsView( QWidget *aParent = 0 );
//! Destructor.
virtual ~SettingsView();
+
+signals:
+ void okClicked();
+
+public slots:
+ void viewResized(const QSize &size);
private slots:
//! Slot to handle the Ok button pressing.
- void okClicked();
- //! Slot to handle the cancel button pressing.
- void cancelClicked();
+ void handleOkClicked();
private:
//! Initialize "Settings" tab.
QTabWidget *iTabWidget;
//! OK button to dismiss the settings view with saving the settings.
QPushButton *iOkButton;
- //! Cancel button to dismiss the settings view without saving settings.
- QPushButton *iCancelButton;
//! Settings tab.
QWidget *iSettingsTab;
//! Week View tab.