File indexing completed on 2024-05-05 04:51:44

0001 /*
0002     SPDX-FileCopyrightText: 2010 Michal Malek <michalm@jabster.pl>
0003     SPDX-FileCopyrightText: 1998-2007 Sebastian Trueg <trueg@k3b.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 
0009 #ifndef K3BDATAPROPERTIESDIALOG_H
0010 #define K3BDATAPROPERTIESDIALOG_H
0011 
0012 #include <QList>
0013 #include <QDialog>
0014 
0015 class KLineEdit;
0016 class KSqueezedTextLabel;
0017 class QFrame;
0018 class QLabel;
0019 class QCheckBox;
0020 
0021 /**
0022  *@author Sebastian Trueg
0023  */
0024 namespace K3b {
0025     class DataItem;
0026 
0027     class DataPropertiesDialog : public QDialog
0028     {
0029         Q_OBJECT
0030 
0031     public:
0032         explicit DataPropertiesDialog( const QList<DataItem*>&, QWidget* parent = 0 );
0033         ~DataPropertiesDialog() override;
0034 
0035     protected Q_SLOTS:
0036         void accept() override;
0037 
0038     private:
0039         KLineEdit* m_editName;
0040         QLabel* m_multiSelectionLabel;
0041         QLabel* m_labelIcon;
0042         QLabel* m_labelType;
0043         KSqueezedTextLabel* m_labelLocation;
0044         QLabel* m_labelSize;
0045         QLabel* m_labelBlocks;
0046         QLabel* m_extraInfoLabel;
0047 
0048         QFrame* m_spacerLine;
0049 
0050         QLabel* m_labelLocalNameText;
0051         QLabel* m_labelLocalLocationText;
0052         QLabel* m_labelLocalLinkTargetText;
0053         KSqueezedTextLabel* m_labelLocalName;
0054         KSqueezedTextLabel* m_labelLocalLocation;
0055         KSqueezedTextLabel* m_labelLocalLinkTarget;
0056 
0057         QCheckBox* m_checkHideOnRockRidge;
0058         QCheckBox* m_checkHideOnJoliet;
0059         KLineEdit* m_editSortWeight;
0060 
0061         QList<DataItem*> m_dataItems;
0062 
0063         void loadItemProperties( DataItem* );
0064         void loadListProperties( const QList<DataItem*>& );
0065     };
0066 }
0067 
0068 #endif