File indexing completed on 2024-06-16 07:42:27

0001 /*
0002     SPDX-FileCopyrightText: 2010 Michal Malek <michalm@jabster.pl>
0003     SPDX-FileCopyrightText: 1998-2008 Sebastian Trueg <trueg@k3b.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 
0009 #ifndef K3B_MSF_EDIT_H
0010 #define K3B_MSF_EDIT_H
0011 
0012 
0013 #include <QAbstractSpinBox>
0014 
0015 #include "k3bmsf.h"
0016 #include "k3b_export.h"
0017 
0018 namespace K3b {
0019     class LIBK3B_EXPORT MsfEdit : public QAbstractSpinBox
0020     {
0021         Q_OBJECT
0022 
0023     public:
0024         explicit MsfEdit( QWidget* parent = 0 );
0025         ~MsfEdit() override;
0026 
0027         Msf minimum() const;
0028         Msf maximum() const;
0029         Msf value() const;
0030 
0031         void stepBy( int steps ) override;
0032         QSize sizeHint() const override;
0033 
0034     Q_SIGNALS:
0035         void valueChanged( const K3b::Msf& value );
0036 
0037     public Q_SLOTS:
0038         void setMinimum( const Msf& min );
0039         void setMaximum( const Msf& max );
0040         void setValue( const K3b::Msf& value );
0041         
0042     protected:
0043         StepEnabled stepEnabled () const override;
0044 
0045     private:
0046         class Private;
0047         Private* d;
0048 
0049         Q_PRIVATE_SLOT( d, void _k_editingFinished() )
0050     };
0051 }
0052 
0053 
0054 #endif