comparison ui/certificatelistwidget.h @ 1106:6f7b7d88f048

(issue115) Rework CertificateListWidgets to have a ToolButton instead of a combobox
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 15 Sep 2014 17:43:56 +0200
parents 2b3526ef2d69
children 9bb9932bb819
comparison
equal deleted inserted replaced
1105:0c60ec9c2461 1106:6f7b7d88f048
20 * @brief Displays a list of certificates and a details panel for a selected 20 * @brief Displays a list of certificates and a details panel for a selected
21 * certificate. 21 * certificate.
22 */ 22 */
23 23
24 class CertificateItemWidget; 24 class CertificateItemWidget;
25 class QToolButton;
25 26
26 Q_DECLARE_METATYPE(Certificate); 27 Q_DECLARE_METATYPE(Certificate);
27 class CertificateListWidget : public QWidget 28 class CertificateListWidget : public QWidget
28 { 29 {
29 Q_OBJECT 30 Q_OBJECT
30 public: 31 public:
31 CertificateListWidget(QWidget *parent, Qt::WindowFlags flags = 0); 32 CertificateListWidget(QWidget *parent, Qt::WindowFlags flags = 0);
32 33
33 void addCertificate(const Certificate &certificate, bool state, 34 void addCertificate(const Certificate &certificate, bool state,
34 bool editable = true, 35 QToolButton *btn);
35 const QString& installLabel = QString(),
36 const QString& removeLabel = QString());
37 void removeCertificate(const Certificate &cert); 36 void removeCertificate(const Certificate &cert);
38 void activateCertificate(const Certificate &cert); 37 void activateCertificate(const Certificate &cert);
39 void deactivateCertificate(const Certificate &cert); 38 void deactivateCertificate(const Certificate &cert);
40 void setCertState(bool state, const Certificate &cert); 39 void setCertState(bool state, const Certificate &cert);
41 void clear(); 40 void clear();

http://wald.intevation.org/projects/trustbridge/