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

0001 /*
0002     SPDX-FileCopyrightText: 2009 Michal Malek <michalm@jabster.pl>
0003     SPDX-FileCopyrightText: 1998-2009 Sebastian Trueg <trueg@k3b.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef K3BVOLUMENAMEWIDGET_H
0009 #define K3BVOLUMENAMEWIDGET_H
0010 
0011 #include <QWidget>
0012 
0013 class QEvent;
0014 
0015 namespace K3b {
0016     
0017     class DataDoc;
0018     
0019     /**
0020      * Simple widget for editing volume's name of data project.
0021      * Intended to be used on project view toolbars
0022      * @author Michal Malek
0023      */
0024     class VolumeNameWidget : public QWidget
0025     {
0026         Q_OBJECT
0027         
0028     public:
0029         explicit VolumeNameWidget( DataDoc* doc, QWidget* parent = 0 );
0030         ~VolumeNameWidget() override;
0031         
0032     protected:
0033         void changeEvent( QEvent* event ) override;
0034         
0035     private Q_SLOTS:
0036         void slotDocChanged();
0037         
0038     private:
0039         class Private;
0040         Private* d;
0041     };
0042     
0043 } // namespace K3b
0044 
0045 #endif // K3BVOLUMENAMEWIDGET_H