mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 06:09:09 -04:00
started adapting RsCollectionDialog to the new API of RsCollection
This commit is contained in:
parent
206da93d99
commit
5071656209
11 changed files with 148 additions and 166 deletions
|
@ -30,15 +30,20 @@ class RsCollectionDialog: public QDialog
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
RsCollectionDialog(const QString& filename
|
||||
, const std::vector<ColFileInfo> &colFileInfos
|
||||
, const bool& creation
|
||||
, const bool& readOnly = false) ;
|
||||
virtual ~RsCollectionDialog();
|
||||
|
||||
// Open new collection
|
||||
static bool openNewCollection(const RsFileTree &tree, const QString &proposed_file_name = QString());
|
||||
|
||||
// Open existing collection
|
||||
static bool openExistingCollection(const QString& fileName, bool readOnly = false, bool showError = true);
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *ev);
|
||||
|
||||
RsCollectionDialog(const QString& filename, const std::vector<ColFileInfo> &colFileInfos, const bool& creation,
|
||||
const bool& readOnly = false) ;
|
||||
|
||||
private slots:
|
||||
void directoryLoaded(QString dirLoaded);
|
||||
void updateSizes() ;
|
||||
|
@ -88,4 +93,6 @@ private:
|
|||
QItemSelectionModel *_selectionProxy;
|
||||
bool _dirLoaded;
|
||||
QHash<QString,QString> _listOfFilesAddedInDir;
|
||||
|
||||
RsCollection _collection;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue