mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
59ed165c81
Translated group names in Share Manager. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5796 b45a01b8-16f6-495d-af2f-9b41ad6348cc
45 lines
930 B
C++
45 lines
930 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <QPushButton>
|
|
#include <QFrame>
|
|
#include <retroshare/rsflags.h>
|
|
|
|
class GroupFlagsWidget: public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GroupFlagsWidget(QWidget *parent,FileStorageFlags flags = FileStorageFlags(0u)) ;
|
|
virtual ~GroupFlagsWidget() ;
|
|
|
|
FileStorageFlags flags() const ;
|
|
void setFlags(FileStorageFlags flags) ;
|
|
|
|
static QString groupInfoString(FileStorageFlags flags, const QList<QString> &groupNames) ;
|
|
|
|
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(FileStorageFlags) const ;
|
|
|
|
private:
|
|
void update_button_state(bool b,int id) ;
|
|
|
|
QPushButton *_buttons[4] ;
|
|
|
|
QLayout *_layout ;
|
|
QIcon *_icons[6] ;
|
|
FileStorageFlags _flags[4] ;
|
|
|
|
static QString _tooltips_on[4] ;
|
|
static QString _tooltips_off[4] ;
|
|
};
|