mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-13 08:35:45 -04:00
made a drastic simplification pass on the ShareManager, which now only needs a single window except for selecting files using a QFileDialog
This commit is contained in:
parent
e8e054eeae
commit
9d586bcfb0
10 changed files with 255 additions and 177 deletions
|
@ -26,6 +26,7 @@
|
|||
#include <QDialog>
|
||||
#include <QFileDialog>
|
||||
|
||||
#include <retroshare/rsfiles.h>
|
||||
#include "ui_ShareManager.h"
|
||||
|
||||
class ShareManager : public QDialog
|
||||
|
@ -55,14 +56,18 @@ private slots:
|
|||
/** Create the context popup menu and it's submenus */
|
||||
void shareddirListCurrentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn);
|
||||
void shareddirListCostumPopupMenu( QPoint point );
|
||||
void addShare();
|
||||
void doubleClickedCell(int,int);
|
||||
|
||||
void showShareDialog();
|
||||
void editShareDirectory();
|
||||
//void editShareDirectory();
|
||||
void removeShareDirectory();
|
||||
void updateFlags();
|
||||
void updateGroups();
|
||||
void applyAndClose() ;
|
||||
void applyAndClose() ;
|
||||
void cancel() ;
|
||||
void reload() ;
|
||||
|
||||
static QString getGroupString(const std::list<RsNodeGroupId>& groups);
|
||||
private:
|
||||
static ShareManager *_instance;
|
||||
bool isLoading;
|
||||
|
@ -72,6 +77,8 @@ private:
|
|||
|
||||
/** Qt Designer generated object */
|
||||
Ui::ShareManager ui;
|
||||
|
||||
std::vector<SharedDirInfo> mDirInfos ;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue