mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-20 12:52:06 +03:00
39 lines
768 B
C
39 lines
768 B
C
|
#pragma once
|
||
|
|
||
|
#include <QWidget>
|
||
|
|
||
|
class QAbstractButton;
|
||
|
|
||
|
namespace OCC {
|
||
|
|
||
|
namespace Ui {
|
||
|
class IgnoreListTableWidget;
|
||
|
}
|
||
|
|
||
|
class IgnoreListTableWidget : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
IgnoreListTableWidget(QWidget *parent = nullptr);
|
||
|
~IgnoreListTableWidget();
|
||
|
|
||
|
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
|