File indexing completed on 2025-01-05 05:23:48

0001 /*
0002     This file is part of the Okteta Kasten module, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2010, 2014 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #ifndef KASTEN_BYTESPERGROUPDIALOG_HPP
0010 #define KASTEN_BYTESPERGROUPDIALOG_HPP
0011 
0012 // Qt
0013 #include <QDialog>
0014 
0015 class QSpinBox;
0016 
0017 namespace Kasten {
0018 
0019 class BytesPerGroupDialog : public QDialog
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     explicit BytesPerGroupDialog(QWidget* parent = nullptr);
0025 
0026     ~BytesPerGroupDialog() override;
0027 
0028 public:
0029     void setGroupedBytesCount(int groupedBytesCount);
0030 
0031 public:
0032     int groupedBytesCount() const;
0033 
0034 Q_SIGNALS:
0035     void bytesPerGroupAccepted(int groupedBytesCount);
0036 
0037 private Q_SLOTS:
0038     void onFinished(int result);
0039 
0040 private:
0041     QSpinBox* mGroupedBytesCountEdit;
0042 };
0043 
0044 }
0045 
0046 #endif