File indexing completed on 2024-04-14 05:43:05

0001 /*
0002     SPDX-FileCopyrightText: 1999 Michael Kropfberger <michael.kropfberger@gmx.net>
0003     SPDX-FileCopyrightText: 2009 Dario Andres Rodriguez <andresbajotierra@gmail.com>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef KDFCONFIG_H
0009 #define KDFCONFIG_H
0010 
0011 #include "ui_kdfconfig.h"
0012 #include "stdoption.h"
0013 #include "kdfwidget.h"
0014 
0015 
0016 class QCloseEvent;
0017 class QPixmap;
0018 class QTreeWidget;
0019 class QTreeWidgetItem;
0020 
0021 class Column;
0022 
0023 class KDFConfigWidget : public QWidget,
0024                         private Ui_KDFConfigWidget
0025 {
0026     Q_OBJECT
0027 
0028     public:
0029         explicit KDFConfigWidget( QWidget *parent=nullptr, bool init=false);
0030         ~KDFConfigWidget() override;
0031 
0032     public Q_SLOTS:
0033         void loadSettings( void );
0034         void applySettings( void );
0035         void defaultsBtnClicked( void );
0036 
0037     protected Q_SLOTS:
0038         void slotChanged();
0039 
0040     private Q_SLOTS:
0041         void toggleListText( QTreeWidgetItem *item, int column );
0042 
0043     protected:
0044         void closeEvent( QCloseEvent * ) override;
0045 
0046     private:
0047         CStdOption mStd;
0048 
0049         QPixmap iconVisible;
0050         QPixmap iconHidden;
0051 
0052         QList<Column> m_columnList;
0053 
0054     Q_SIGNALS:
0055         void configChanged();
0056 };
0057 
0058 #endif
0059