mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
36 lines
790 B
C++
36 lines
790 B
C++
#include <QListWidget>
|
|
#include <QDialog>
|
|
#include <retroshare/rsids.h>
|
|
|
|
class GroupSelectionBox: public QListWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GroupSelectionBox(QWidget *parent);
|
|
|
|
static void selectGroups(const std::list<RsNodeGroupId>& default_groups) ;
|
|
|
|
void selectedGroupIds(std::list<RsNodeGroupId> &groupIds) const;
|
|
void selectedGroupNames(QList<QString> &groupNames) const;
|
|
|
|
void setSelectedGroupIds(const std::list<RsNodeGroupId> &groupIds);
|
|
|
|
private slots:
|
|
void fillGroups();
|
|
};
|
|
|
|
class GroupSelectionDialog: public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GroupSelectionDialog(QWidget *parent) ;
|
|
virtual ~GroupSelectionDialog() ;
|
|
|
|
static std::list<RsNodeGroupId> selectGroups(const std::list<RsNodeGroupId>& default_groups) ;
|
|
|
|
private:
|
|
GroupSelectionBox *mBox ;
|
|
};
|