UASQuickViewItemSelect.h 808 Bytes
Newer Older
1 2 3 4
#ifndef UASQUICKVIEWITEMSELECT_H
#define UASQUICKVIEWITEMSELECT_H

#include <QWidget>
5
#include <QCheckBox>
6 7 8 9 10 11 12 13 14 15 16 17
#include "ui_UASQuickViewItemSelect.h"

class UASQuickViewItemSelect : public QWidget
{
    Q_OBJECT
    
public:
    explicit UASQuickViewItemSelect(QWidget *parent = 0);
    ~UASQuickViewItemSelect();
    void addItem(QString item,bool enabled = false);
    int currrow;
    int currcol;
18 19
protected:
    void resizeEvent(QResizeEvent *event);
20
private:
21
    QMap<QString,int> m_categoryToIndexMap;
22
    QMap<QCheckBox*,QString> m_checkboxToValueMap;
23
    QList<QCheckBox*> m_checkBoxList;
24 25 26 27 28 29 30 31 32
    Ui::UASQuickViewItemSelect ui;
private slots:
    void checkBoxClicked(bool checked);
signals:
    void valueEnabled(QString value);
    void valueDisabled(QString value);
};

#endif // UASQUICKVIEWITEMSELECT_H