equal
deleted
inserted
replaced
27 |
27 |
28 #include <QDir> |
28 #include <QDir> |
29 #include <QModelIndex> |
29 #include <QModelIndex> |
30 #include <QStandardItemModel> |
30 #include <QStandardItemModel> |
31 #include <QFileSystemWatcher> |
31 #include <QFileSystemWatcher> |
|
32 #include <QTime> |
32 #include <hbview.h> |
33 #include <hbview.h> |
33 #include <hblistview.h> |
34 #include <hblistwidget.h> |
34 |
35 |
35 #ifdef Q_OS_SYMBIAN |
36 #ifdef Q_OS_SYMBIAN |
36 #include "themeclientsymbian.h" |
37 #include "themeclientsymbian.h" |
37 #else |
38 #else |
38 #include "themeclientqt.h" |
39 #include "themeclientqt.h" |
39 #endif |
40 #endif |
|
41 #include "themechangerdefs.h" |
40 |
42 |
41 class HbIcon; |
43 class HbIcon; |
42 |
44 |
43 class ThemeSelectionList:public HbView |
45 class ThemeSelectionList:public HbView |
44 { |
46 { |
54 ~ThemeSelectionList(); |
56 ~ThemeSelectionList(); |
55 signals: |
57 signals: |
56 void newThemeSelected(const QString &newthemepath); |
58 void newThemeSelected(const QString &newthemepath); |
57 public slots: |
59 public slots: |
58 void displayThemes(); |
60 void displayThemes(); |
59 void setChosen(const QModelIndex &index); |
61 void setChosen(HbListWidgetItem *item); |
60 void applySelection(); |
62 void applySelection(); |
61 void updateThemeList(const QString &path); |
63 void updateThemeList(const QString &path); |
62 void sendThemeName(const QString& name); |
64 void sendThemeName(const QString& name); |
|
65 #ifdef THEME_CHANGER_TIMER_LOG |
|
66 void processWhenIdle(); |
|
67 void themeChanged(); |
|
68 #endif |
63 |
69 |
64 protected: |
70 protected: |
65 bool event(QEvent *e); |
71 bool event(QEvent *e); |
66 void resizeEvent(QResizeEvent* event); |
72 void resizeEvent(QResizeEvent* event); |
67 private: |
73 private: |
68 static QStringList rootPaths(); |
74 static QStringList rootPaths(); |
69 QDir dir; |
75 QDir dir; |
70 QModelIndex oldItemIndex; |
76 int oldItemIndex; |
71 HbListView *themelist; |
77 HbListWidget *themelist; |
72 QStandardItemModel* model; |
|
73 HbIcon* rightMark; |
78 HbIcon* rightMark; |
74 HbIcon* noMark; |
79 HbIcon* noMark; |
75 HbAction *action; |
80 HbAction *action; |
76 #ifdef Q_OS_SYMBIAN |
81 #ifdef Q_OS_SYMBIAN |
77 ThemeClientSymbian* client; |
82 ThemeClientSymbian* client; |
79 ThemeClientQt* client; |
84 ThemeClientQt* client; |
80 #endif |
85 #endif |
81 |
86 |
82 QFileSystemWatcher *watcher; |
87 QFileSystemWatcher *watcher; |
83 QString iCurrentTheme; |
88 QString iCurrentTheme; |
|
89 #ifdef THEME_CHANGER_TIMER_LOG |
|
90 QTime timer; |
|
91 QTimer *idleTimer; |
|
92 #endif |
84 }; |
93 }; |
85 #endif //THEMESELECTIONLIST_H |
94 #endif //THEMESELECTIONLIST_H |