equal
deleted
inserted
replaced
21 |
21 |
22 // System includes |
22 // System includes |
23 #include <QObject> |
23 #include <QObject> |
24 #include <QPointer> |
24 #include <QPointer> |
25 #include <QModelIndex> |
25 #include <QModelIndex> |
26 |
|
27 // User includes |
26 // User includes |
28 #include "settingsutility.h" |
27 #include "settingsutility.h" |
|
28 #include "clocksettingsdefines.h" |
29 |
29 |
30 // Forward declarations |
30 // Forward declarations |
31 class HbView; |
31 class HbView; |
32 class HbAction; |
32 class HbAction; |
33 class HbDataForm; |
33 class HbDataForm; |
37 class HbComboBox; |
37 class HbComboBox; |
38 class QTranslator; |
38 class QTranslator; |
39 class ClockSettingsDocLoader; |
39 class ClockSettingsDocLoader; |
40 class SettingsCustomItem; |
40 class SettingsCustomItem; |
41 |
41 |
|
42 |
42 class ClockRegionalSettingsView : public QObject |
43 class ClockRegionalSettingsView : public QObject |
43 { |
44 { |
44 Q_OBJECT |
45 Q_OBJECT |
45 |
46 |
46 public: |
47 public: |
47 ClockRegionalSettingsView(SettingsUtility &utility, QObject *parent = 0); |
48 CLOCKSETTINGSVIEW_EXPORT ClockRegionalSettingsView(QObject *parent = 0); |
48 virtual ~ClockRegionalSettingsView(); |
49 CLOCKSETTINGSVIEW_EXPORT virtual ~ClockRegionalSettingsView(); |
49 |
50 |
50 public: |
51 public: |
51 void showView(); |
52 CLOCKSETTINGSVIEW_EXPORT void showView(); |
52 |
53 public slots: |
|
54 void updateWeekStartOn(); |
53 private slots: |
55 private slots: |
54 void handleBackAction(); |
56 void handleBackAction(); |
55 void handleItemDisplayed(const QModelIndex &index); |
57 void handleItemDisplayed(const QModelIndex &index); |
56 |
58 |
57 void handleTimeFormatChange(); |
59 void handleTimeFormatChange(); |
63 |
65 |
64 private: |
66 private: |
65 void createModel(); |
67 void createModel(); |
66 void populateFormModel(); |
68 void populateFormModel(); |
67 QStringList weekdayList(); |
69 QStringList weekdayList(); |
|
70 void updateWeekDays(); |
|
71 |
68 |
72 |
69 private: |
73 private: |
70 QStringList mTimeFormatStringList; |
74 QStringList mTimeFormatStringList; |
71 QStringList mTimeSeparatorStringList; |
75 QStringList mTimeSeparatorStringList; |
72 QStringList mDateFormatStringList; |
76 QStringList mDateFormatStringList; |
73 QStringList mDateSeparatorStringList; |
77 QStringList mDateSeparatorStringList; |
74 |
78 |
75 HbView *mView; |
79 HbView *mView; |
76 HbAction *mBackAction; |
|
77 |
|
78 QPointer<HbDataForm> mForm; |
80 QPointer<HbDataForm> mForm; |
79 QPointer<HbDataFormModel> mFormModel; |
81 QPointer<HbDataFormModel> mFormModel; |
80 |
82 |
81 HbDataFormModelItem *mTimeFormatItem; |
83 HbDataFormModelItem *mTimeFormatItem; |
82 HbDataFormModelItem *mTimeSeparatorItem; |
84 HbDataFormModelItem *mTimeSeparatorItem; |
84 HbDataFormModelItem *mDateSeparatorItem; |
86 HbDataFormModelItem *mDateSeparatorItem; |
85 QPointer<HbComboBox> mStartOfWeekItem; |
87 QPointer<HbComboBox> mStartOfWeekItem; |
86 QPointer<HbListWidget> mWorkdaysItem; |
88 QPointer<HbListWidget> mWorkdaysItem; |
87 |
89 |
88 ClockSettingsDocLoader *mLoader; |
90 ClockSettingsDocLoader *mLoader; |
89 SettingsUtility &mSettingsUtility; |
91 SettingsUtility *mSettingsUtility; |
90 SettingsCustomItem *mCustomPrototype; |
92 SettingsCustomItem *mCustomPrototype; |
91 QTranslator *mTranslator; |
93 QTranslator *mTranslator; |
92 }; |
94 }; |
93 |
95 |
94 #endif // CLOCKREGIONALSETTINGSVIEW_H |
96 #endif // CLOCKREGIONALSETTINGSVIEW_H |