Settings saved with ok and cancel added to SettingsView.
[qtmeetings] / src / UserInterface / Views / SettingsView.h
index 8b9bbeb..c86e690 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef SETTINGSVIEW_H_
 #define SETTINGSVIEW_H_
 
-#include "ObservedWidget.h"
+#include "ViewBase.h"
 
 class QTabWidget;
 class QPushButton;
@@ -9,9 +9,10 @@ class QLineEdit;
 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
 
@@ -25,12 +26,20 @@ public:
        SettingsView( QWidget *aParent = 0 );
        //! Destructor.
        virtual ~SettingsView();
+       
+signals:
+       void okClicked();
+       
+       void cancelClicked();
+       
+public slots:
+       void viewResized(const QSize &newSize, const QSize &oldSize);
 
 private slots:
        //! Slot to handle the Ok button pressing.
-       void okClicked();
-       //! Slot to handle the cancel button pressing.
-       void cancelClicked();
+       void handleOkClicked();
+       //! Slot to handle the Cancel button pressing.
+       void handleCancelClicked();
 
 private:
        //! Initialize "Settings" tab.
@@ -41,12 +50,14 @@ private:
        QWidget *initResourcesTab();
        //! Initialize "KIOSK Mode" tab.
        QWidget *initKioskModeTab();
+       //! Set values to fields
+       void setValues();
 
        //! The tabbed settings view component.
        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.
+       //! Cancel button to dismiss the settings view without saving the settings
        QPushButton *iCancelButton;
        //! Settings tab.
        QWidget *iSettingsTab;