mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-10 15:09:42 -05:00
38 lines
636 B
C
38 lines
636 B
C
|
#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] ;
|
||
|
};
|