1 #ifndef SETTINGSVIEW_H_
2 #define SETTINGSVIEW_H_
4 #include "ObservedWidget.h"
13 //! User interface class. Shows the settings view and handles configuration changes.
14 class SettingsView : public ObservedWidget
21 * Constructor to initialize and prepare the settings view. This calls internally
22 * the helper methods to initialize individual setting tabs.
23 * \param Parent component.
25 SettingsView( QWidget *aParent = 0 );
27 virtual ~SettingsView();
30 //! Slot to handle the Ok button pressing.
32 //! Slot to handle the cancel button pressing.
36 //! Initialize "Settings" tab.
37 QWidget *initSettingsTab();
38 //! Initialize "Week View" tab.
39 QWidget *initWeekViewTab();
40 //! Intialize "Resources" tab.
41 QWidget *initResourcesTab();
42 //! Initialize "KIOSK Mode" tab.
43 QWidget *initKioskModeTab();
45 //! The tabbed settings view component.
46 QTabWidget *iTabWidget;
47 //! OK button to dismiss the settings view with saving the settings.
48 QPushButton *iOkButton;
49 //! Cancel button to dismiss the settings view without saving settings.
50 QPushButton *iCancelButton;
52 QWidget *iSettingsTab;
54 QWidget *iWeekViewTab;
56 QWidget *iResourcesTab;
58 QWidget *iKioskModeTab;
60 //! User name to the remote server.
62 //! Password to the remote server.
64 //! Remote server address.
65 QLineEdit *iServerAddress;
66 //! Refresh interval in seconds.
67 QLineEdit *iRefreshInterval;
68 //! When the day starts in the calendar view.
69 QTimeEdit *iDayStartTime;
70 //! When the day ends in the calendar view.
71 QTimeEdit *iDayEndTime;
72 //! Selection for showing five days in the calendar.
73 QRadioButton *iFiveDays;
74 //! Selection for showing seven days in the calendar.
75 QRadioButton *iSevenDays;
76 //! Power saving enabling.
77 QCheckBox *iPowerSaveEnabled;
78 //! Start time for activating power save.
79 QTimeEdit *iPowerSaveStartTime;
80 //! End time for deactivating power save.
81 QTimeEdit *iPowerSaveEndTime;
84 #endif /*SETTINGSVIEW_H_*/