File indexing completed on 2024-04-28 09:45:38
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 MNTCONFIG_H 0009 #define MNTCONFIG_H 0010 0011 #include "ui_mntconfig.h" 0012 #include "disklist.h" 0013 0014 #include <QWidget> 0015 0016 /**************************************************************/ 0017 0018 class MntConfigWidget : public QWidget, private Ui_MntConfigWidget 0019 { 0020 Q_OBJECT 0021 0022 public: 0023 enum ColType 0024 { 0025 IconCol = 0, 0026 DeviceCol = 1, 0027 MountPointCol = 2, 0028 MountCommandCol = 3, 0029 UmountCommandCol = 4 0030 }; 0031 0032 explicit MntConfigWidget( QWidget *parent=nullptr, bool init=false ); 0033 ~MntConfigWidget() override; 0034 0035 public Q_SLOTS: 0036 void loadSettings( void ); 0037 void applySettings( void ); 0038 0039 protected Q_SLOTS: 0040 void slotChanged(); 0041 0042 private Q_SLOTS: 0043 void readDFDone( void ); 0044 void clicked( QTreeWidgetItem *, int); 0045 void selectMntFile( void ); 0046 void selectUmntFile( void ); 0047 void iconChangedButton( const QString & ); 0048 void iconChanged( const QString & ); 0049 void iconDefault(); 0050 void mntCmdChanged( const QString & ); 0051 void umntCmdChanged( const QString & ); 0052 0053 DiskEntry * selectedDisk( QTreeWidgetItem * ); 0054 0055 protected: 0056 void closeEvent( QCloseEvent * ) override; 0057 0058 private: 0059 DiskList mDiskList; 0060 bool mInitializing; 0061 0062 Q_SIGNALS: 0063 void configChanged(); 0064 }; 0065 0066 #endif 0067