Added filter for files in SharedFilesDialog.

It is hidden for the release version (RS_RELEASE_VERSION), because the RemoteDirModel is slow with many files.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3882 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-11-30 12:29:04 +00:00
parent 73f22ad897
commit bd319d2357
5 changed files with 1122 additions and 905 deletions

View file

@ -83,6 +83,10 @@ private slots:
void indicatorChanged(int index);
void filterRegExpChanged();
void clearFilter();
void startFilter();
signals:
void playFiles(QStringList files);
@ -96,7 +100,10 @@ private:
void processSettings(bool bLoad);
void copyLink (const QModelIndexList& lst, bool remote);
void copyLink (const QModelIndexList& lst, bool remote);
void FilterItems();
bool FilterItem(const QModelIndex &index, const QString &text, int level);
QModelIndexList getRemoteSelected();
QModelIndexList getLocalSelected();
@ -115,7 +122,6 @@ private:
QAction* sendchatlinkAct;
QAction* copylinklocalhtmlAct;
/** Qt Designer generated object */
Ui::SharedFilesDialog ui;
@ -128,6 +134,8 @@ private:
QString currentCommand;
QString currentFile;
QString lastFilterString;
QAction* fileAssotiationAction(const QString fileName);
};