* added doubleclick download feature

* added download Button

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@903 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-01-02 00:09:59 +00:00
parent 78fe71b2f4
commit 60244f6f7f
3 changed files with 83 additions and 43 deletions

View file

@ -17,49 +17,50 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
****************************************************************/
#ifndef _SHAREDFILESDIALOG_H
#define _SHAREDFILESDIALOG_H
#include <QFileDialog>
****************************************************************/
#ifndef _SHAREDFILESDIALOG_H
#define _SHAREDFILESDIALOG_H
#include <QFileDialog>
//#include <config/rsharesettings.h>
#include "mainpage.h"
#include "ui_SharedFilesDialog.h"
#include "mainpage.h"
#include "ui_SharedFilesDialog.h"
#include "rsiface/rstypes.h"
#include "rsiface/RemoteDirModel.h"
class SharedFilesDialog : public MainPage
{
Q_OBJECT
public:
/** Default Constructor */
SharedFilesDialog(QWidget *parent = 0);
/** Default Destructor */
class SharedFilesDialog : public MainPage
{
Q_OBJECT
public:
/** Default Constructor */
SharedFilesDialog(QWidget *parent = 0);
/** Default Destructor */
/* For handling the model updates */
void preModDirectories(bool update_local);
void ModDirectories(bool update_local);
void preModDirectories(bool update_local);
void ModDirectories(bool update_local);
private slots:
void checkUpdate();
void forceCheck();
/** Create the context popup menu and it's submenus */
/** Create the context popup menu and it's submenus */
void shareddirtreeviewCostumPopupMenu( QPoint point );
void shareddirtreeWidgetCostumPopupMenu( QPoint point );
void downloadRemoteSelected();
void downloadRemoteSelected();
// void addMsgRemoteSelected();
void showFrame(bool show);
// void recommendfile();
void playselectedfiles();
@ -73,31 +74,31 @@ private slots:
signals:
void playFiles(QStringList files);
private:
/** Define the popup menus for the Context menu */
private:
/** Define the popup menus for the Context menu */
QMenu* contextMnu;
QMenu* contextMnu2;
/** Defines the actions for the context menu for QTreeView */
QAction* downloadAct;
QAction* downloadAct;
QAction* addMsgAct;
/** Defines the actions for the context menu for QTreeWidget */
QAction* openfileAct;
QAction* openfileAct;
QAction* openfolderAct;
QTreeView *shareddirtreeview;
QMovie *movie;
/** Qt Designer generated object */
Ui::SharedFilesDialog ui;
/** Qt Designer generated object */
Ui::SharedFilesDialog ui;
/* RemoteDirModel */
RemoteDirModel *model;
RemoteDirModel *localModel;
};
#endif
};
#endif