Switch to unified view

a/src/qtgui/webcache.h b/src/qtgui/webcache.h
...
...
32
class WebcacheModel : public QAbstractTableModel {
32
class WebcacheModel : public QAbstractTableModel {
33
    Q_OBJECT;
33
    Q_OBJECT;
34
34
35
public:
35
public:
36
    WebcacheModel(QObject *parent = 0);
36
    WebcacheModel(QObject *parent = 0);
37
    ~WebcacheModel();
37
38
38
    // Reimplemented methods
39
    // Reimplemented methods
39
    virtual int rowCount (const QModelIndex& = QModelIndex()) const;
40
    virtual int rowCount (const QModelIndex& = QModelIndex()) const;
40
    virtual int columnCount(const QModelIndex& = QModelIndex()) const;
41
    virtual int columnCount(const QModelIndex& = QModelIndex()) const;
41
    virtual QVariant headerData (int col, Qt::Orientation orientation, 
42
    virtual QVariant headerData (int col, Qt::Orientation orientation, 
42
                 int role = Qt::DisplayRole) const;
43
                 int role = Qt::DisplayRole) const;
43
    virtual QVariant data(const QModelIndex& index, 
44
    virtual QVariant data(const QModelIndex& index, 
44
               int role = Qt::DisplayRole ) const;
45
               int role = Qt::DisplayRole ) const;
45
    bool deleteIdx(unsigned int idx);
46
    bool deleteIdx(unsigned int idx);
46
    std::string getURL(unsigned int idx);
47
    std::string getURL(unsigned int idx);
47
    void reload();
48
48
49
public slots:
49
public slots:
50
    void setSearchFilter(const QString&);
50
    void setSearchFilter(const QString&);
51
    void reload();
51
52
52
private:
53
private:
53
    WebcacheModelInternal *m;
54
    WebcacheModelInternal *m;
54
};
55
};
55
56
57
class RclMain;
58
56
class WebcacheEdit : public QDialog, public Ui::Webcache {
59
class WebcacheEdit : public QDialog, public Ui::Webcache {
57
    Q_OBJECT;
60
    Q_OBJECT;
58
61
59
public:
62
public:
60
    WebcacheEdit(QWidget *parent);
63
    WebcacheEdit(RclMain *parent);
61
public slots:
64
public slots:
62
    void saveColState();
65
    void saveColState();
63
    void createPopupMenu(const QPoint&);
66
    void createPopupMenu(const QPoint&);
64
    void deleteSelected();
67
    void deleteSelected();
65
    void copyURL();
68
    void copyURL();
66
protected:
69
protected:
67
    void closeEvent(QCloseEvent *);
70
    void closeEvent(QCloseEvent *);
68
private:
71
private:
69
    WebcacheModel *m_model;
72
    WebcacheModel *m_model;
73
    RclMain *m_recoll;
74
    bool m_modified;
70
};
75
};
71
76
72
77
73
#endif /* _WEBCACHE_H_INCLUDED_ */
78
#endif /* _WEBCACHE_H_INCLUDED_ */