2019-08-15 00:09:19 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QAbstractButton;
|
|
|
|
|
|
|
|
namespace OCC {
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class IgnoreListTableWidget;
|
|
|
|
}
|
|
|
|
|
|
|
|
class IgnoreListTableWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
IgnoreListTableWidget(QWidget *parent = nullptr);
|
2021-08-17 13:39:31 +03:00
|
|
|
~IgnoreListTableWidget() override;
|
2019-08-15 00:09:19 +03:00
|
|
|
|
|
|
|
void readIgnoreFile(const QString &file, bool readOnly = false);
|
|
|
|
int addPattern(const QString &pattern, bool deletable, bool readOnly);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void slotRemoveAllItems();
|
|
|
|
void slotWriteIgnoreFile(const QString & file);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void slotItemSelectionChanged();
|
|
|
|
void slotRemoveCurrentItem();
|
|
|
|
void slotAddPattern();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setupTableReadOnlyItems();
|
|
|
|
QString readOnlyTooltip;
|
|
|
|
Ui::IgnoreListTableWidget *ui;
|
|
|
|
};
|
|
|
|
} // namespace OCC
|