* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef IGNORELISTSETTINGSPAGE_H
***************************************************************************/
#ifndef IGNORELISTSETTINGSPAGE_H
- IgnoreListDelegate(QWidget *parent = 0) : QStyledItemDelegate(parent) {}
- void paint(QPainter *painter, const QStyleOptionViewItem &option,
- const QModelIndex &index) const;
- bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option,
- const QModelIndex &index);
+ IgnoreListDelegate(QWidget *parent = 0) : QStyledItemDelegate(parent) {}
+ void paint(QPainter *painter, const QStyleOptionViewItem &option,
+ const QModelIndex &index) const;
+ bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option,
+ const QModelIndex &index);
- IgnoreListEditDlg(int row, const IgnoreListManager::IgnoreListItem &item, QWidget *parent = 0);
- inline IgnoreListManager::IgnoreListItem ignoreListItem() { return _ignoreListItem; }
+ IgnoreListEditDlg(const IgnoreListManager::IgnoreListItem &item, QWidget *parent = 0, bool enabled = false);
+ inline IgnoreListManager::IgnoreListItem ignoreListItem() { return _ignoreListItem; }
+ void enableOkButton(bool state);
- int _selectedRow;
- IgnoreListManager::IgnoreListItem _ignoreListItem;
- IgnoreListManager::IgnoreListItem _clonedIgnoreListItem;
- bool _hasChanged;
- Ui::IgnoreListEditDlg ui;
- QButtonGroup _typeButtonGroup;
- QButtonGroup _strictnessButtonGroup;
- QButtonGroup _scopeButtonGroup;
+ IgnoreListManager::IgnoreListItem _ignoreListItem;
+ IgnoreListManager::IgnoreListItem _clonedIgnoreListItem;
+ bool _hasChanged;
+ Ui::IgnoreListEditDlg ui;
+ QButtonGroup _typeButtonGroup;
+ QButtonGroup _strictnessButtonGroup;
+ QButtonGroup _scopeButtonGroup;
- IgnoreListSettingsPage(QWidget *parent = 0);
- ~IgnoreListSettingsPage();
- virtual inline bool hasDefaults() const { return true; }
+ IgnoreListSettingsPage(QWidget *parent = 0);
+ ~IgnoreListSettingsPage();
+ virtual inline bool hasDefaults() const { return false; }
+ virtual inline bool needsCoreConnection() const { return true; }
+ void editIgnoreRule(const QString &ignoreRule);
- void enableDialog(bool);
- void deleteSelectedIgnoreRule();
- void editSelectedIgnoreRule();
- void newIgnoreRule();
- void selectionChanged(const QItemSelection &selection, const QItemSelection &);
+ void enableDialog(bool);
+ void deleteSelectedIgnoreRule();
+ void editSelectedIgnoreRule();
+ void selectionChanged(const QItemSelection &selection, const QItemSelection &);
- IgnoreListDelegate *_delegate;
- Ui::IgnoreListSettingsPage ui;
- IgnoreListModel _ignoreListModel;
+ IgnoreListDelegate *_delegate;
+ Ui::IgnoreListSettingsPage ui;
+ IgnoreListModel _ignoreListModel;