--- a/filemanager/src/filemanager/src/fmfilebrowsewidget.h Fri Apr 16 14:53:38 2010 +0300
+++ b/filemanager/src/filemanager/src/fmfilebrowsewidget.h Mon May 03 12:24:39 2010 +0300
@@ -34,6 +34,7 @@
class HbTreeView;
class HbAbstractViewItem;
class HbSearchPanel;
+class HbLabel;
class FmFileBrowseWidget : public HbWidget
{
@@ -43,7 +44,8 @@
enum Style {
NoStyle,
ListStyle,
- TreeStyle
+ TreeStyle,
+ LabelStyle
};
enum TSortType{
@@ -67,6 +69,7 @@
bool rename( const QString &oldName, const QString &newName );
void setModelFilter( QDir::Filters filters );
+ bool checkPathAndSetStyle( const QString& path );
void refreshModel( const QString& path );
void sortFiles( TSortType sortType );
void activeSearchPanel();
@@ -82,6 +85,8 @@
signals:
void currentPathChanged( QString& );
void startSearch( const QString &targetPath, const QString &criteria );
+ void setEmptyMenu( bool isMenuEmpty );
+ void setTitle( const QString &title );
private slots:
void on_list_activated( const QModelIndex &index );
@@ -102,6 +107,7 @@
void initFileModel();
void initLayout();
void initSearchPanel();
+ void initEmptyTipsLabel();
void changeRootIndex( const QModelIndex &index );
bool isDriver(const QModelIndex &index) const;
@@ -113,13 +119,20 @@
QDirModel *mModel;
bool mSelectable;
+
+ //currentStyle
Style mStyle;
+ //used to store orignal tree/list style
+ Style mFileBrowseStyle;
HbAbstractViewItem* mCurrentItem;
FmOperationService *mOperationService;
QString mFindTargetPath;
- HbSearchPanel* mSearchPanel;
+ HbSearchPanel *mSearchPanel;
+ HbLabel *mEmptyTipLabel;
+
+ QString mCurrentDrive;
};
#endif