mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-22 15:51:29 -04:00
First bit of group sharing permissions
- Added icons for share flags - added new class to handle sharing permission widget - Updated share manager to be continued... git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-FileSharingPermissions@5701 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4f8fd59a16
commit
56e26ba00a
13 changed files with 163 additions and 77 deletions
37
retroshare-gui/src/gui/common/GroupFlagsWidget.h
Normal file
37
retroshare-gui/src/gui/common/GroupFlagsWidget.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <QPushButton>
|
||||
#include <QWidget>
|
||||
|
||||
class GroupFlagsWidget: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GroupFlagsWidget(QWidget *parent,uint32_t flags) ;
|
||||
virtual ~GroupFlagsWidget() ;
|
||||
|
||||
uint32_t flags() const ;
|
||||
|
||||
public slots:
|
||||
void updated() ;
|
||||
|
||||
protected slots:
|
||||
void update_GN_button(bool) ;
|
||||
void update_GB_button(bool) ;
|
||||
void update_ON_button(bool) ;
|
||||
void update_OB_button(bool) ;
|
||||
|
||||
signals:
|
||||
void flagsChanged(uint32_t) const ;
|
||||
|
||||
private:
|
||||
void update_button_state(bool b,int id) ;
|
||||
|
||||
QPushButton *_buttons[4] ;
|
||||
|
||||
QLayout *_layout ;
|
||||
QIcon *_icons[6] ;
|
||||
uint32_t _flags[4] ;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue