mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 18:45:17 -04:00
* 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:
parent
78fe71b2f4
commit
60244f6f7f
3 changed files with 83 additions and 43 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue