equal
deleted
inserted
replaced
32 class QGraphicsLinearLayout; |
32 class QGraphicsLinearLayout; |
33 class HbListView; |
33 class HbListView; |
34 class HbTreeView; |
34 class HbTreeView; |
35 class HbAbstractViewItem; |
35 class HbAbstractViewItem; |
36 class HbSearchPanel; |
36 class HbSearchPanel; |
|
37 class HbLabel; |
37 |
38 |
38 class FmFileBrowseWidget : public HbWidget |
39 class FmFileBrowseWidget : public HbWidget |
39 { |
40 { |
40 Q_OBJECT |
41 Q_OBJECT |
41 |
42 |
42 public: |
43 public: |
43 enum Style { |
44 enum Style { |
44 NoStyle, |
45 NoStyle, |
45 ListStyle, |
46 ListStyle, |
46 TreeStyle |
47 TreeStyle, |
|
48 LabelStyle |
47 }; |
49 }; |
48 |
50 |
49 enum TSortType{ |
51 enum TSortType{ |
50 ESortByName, |
52 ESortByName, |
51 ESortByTime, |
53 ESortByTime, |
65 void clearSelection(); |
67 void clearSelection(); |
66 |
68 |
67 bool rename( const QString &oldName, const QString &newName ); |
69 bool rename( const QString &oldName, const QString &newName ); |
68 void setModelFilter( QDir::Filters filters ); |
70 void setModelFilter( QDir::Filters filters ); |
69 |
71 |
|
72 bool checkPathAndSetStyle( const QString& path ); |
70 void refreshModel( const QString& path ); |
73 void refreshModel( const QString& path ); |
71 void sortFiles( TSortType sortType ); |
74 void sortFiles( TSortType sortType ); |
72 void activeSearchPanel(); |
75 void activeSearchPanel(); |
73 |
76 |
74 public slots: |
77 public slots: |
80 void on_searchPanel_exitClicked(); |
83 void on_searchPanel_exitClicked(); |
81 |
84 |
82 signals: |
85 signals: |
83 void currentPathChanged( QString& ); |
86 void currentPathChanged( QString& ); |
84 void startSearch( const QString &targetPath, const QString &criteria ); |
87 void startSearch( const QString &targetPath, const QString &criteria ); |
|
88 void setEmptyMenu( bool isMenuEmpty ); |
|
89 void setTitle( const QString &title ); |
85 |
90 |
86 private slots: |
91 private slots: |
87 void on_list_activated( const QModelIndex &index ); |
92 void on_list_activated( const QModelIndex &index ); |
88 void on_tree_activated( const QModelIndex &index ); |
93 void on_tree_activated( const QModelIndex &index ); |
89 void on_list_longPressed( HbAbstractViewItem *item, const QPointF &coords ); |
94 void on_list_longPressed( HbAbstractViewItem *item, const QPointF &coords ); |
100 void initListView(); |
105 void initListView(); |
101 void initTreeView(); |
106 void initTreeView(); |
102 void initFileModel(); |
107 void initFileModel(); |
103 void initLayout(); |
108 void initLayout(); |
104 void initSearchPanel(); |
109 void initSearchPanel(); |
|
110 void initEmptyTipsLabel(); |
105 |
111 |
106 void changeRootIndex( const QModelIndex &index ); |
112 void changeRootIndex( const QModelIndex &index ); |
107 bool isDriver(const QModelIndex &index) const; |
113 bool isDriver(const QModelIndex &index) const; |
108 bool isFolder(const QModelIndex &index) const; |
114 bool isFolder(const QModelIndex &index) const; |
109 |
115 |
111 HbListView *mListView; |
117 HbListView *mListView; |
112 QGraphicsLinearLayout *mLayout; |
118 QGraphicsLinearLayout *mLayout; |
113 QDirModel *mModel; |
119 QDirModel *mModel; |
114 |
120 |
115 bool mSelectable; |
121 bool mSelectable; |
|
122 |
|
123 //currentStyle |
116 Style mStyle; |
124 Style mStyle; |
|
125 //used to store orignal tree/list style |
|
126 Style mFileBrowseStyle; |
117 |
127 |
118 HbAbstractViewItem* mCurrentItem; |
128 HbAbstractViewItem* mCurrentItem; |
119 FmOperationService *mOperationService; |
129 FmOperationService *mOperationService; |
120 |
130 |
121 QString mFindTargetPath; |
131 QString mFindTargetPath; |
122 HbSearchPanel* mSearchPanel; |
132 HbSearchPanel *mSearchPanel; |
|
133 HbLabel *mEmptyTipLabel; |
|
134 |
|
135 QString mCurrentDrive; |
123 }; |
136 }; |
124 |
137 |
125 #endif |
138 #endif |