1 #ifndef SETTINGSVIEW_H_
2 #define SETTINGSVIEW_H_
14 //! User interface class. Shows the settings view and handles configuration changes.
15 class SettingsView : public ViewBase
22 * Constructor to initialize and prepare the settings view. This calls internally
23 * the helper methods to initialize individual setting tabs.
24 * \param Parent component.
26 SettingsView( QWidget *aParent = 0 );
28 virtual ~SettingsView();
34 void viewResized(const QSize &newSize, const QSize &oldSize);
37 //! Slot to handle the Ok button pressing.
38 void handleOkClicked();
41 //! Initialize "Settings" tab.
42 QWidget *initSettingsTab();
43 //! Initialize "Week View" tab.
44 QWidget *initWeekViewTab();
45 //! Intialize "Resources" tab.
46 QWidget *initResourcesTab();
47 //! Initialize "KIOSK Mode" tab.
48 QWidget *initKioskModeTab();
50 //! The tabbed settings view component.
51 QTabWidget *iTabWidget;
52 //! OK button to dismiss the settings view with saving the settings.
53 QPushButton *iOkButton;
55 QWidget *iSettingsTab;
57 QWidget *iWeekViewTab;
59 QWidget *iResourcesTab;
61 QWidget *iKioskModeTab;
63 //! User name to the remote server.
65 //! Password to the remote server.
67 //! Remote server address.
68 QLineEdit *iServerAddress;
69 //! Refresh interval in seconds.
70 QLineEdit *iRefreshInterval;
71 //! When the day starts in the calendar view.
72 QTimeEdit *iDayStartTime;
73 //! When the day ends in the calendar view.
74 QTimeEdit *iDayEndTime;
75 //! Selection for showing five days in the calendar.
76 QRadioButton *iFiveDays;
77 //! Selection for showing seven days in the calendar.
78 QRadioButton *iSevenDays;
79 //! Power saving enabling.
80 QCheckBox *iPowerSaveEnabled;
81 //! Start time for activating power save.
82 QTimeEdit *iPowerSaveStartTime;
83 //! End time for deactivating power save.
84 QTimeEdit *iPowerSaveEndTime;
87 #endif /*SETTINGSVIEW_H_*/