File indexing completed on 2024-04-21 04:48:17
0001 /* AUDEX CDDA EXTRACTOR 0002 * SPDX-FileCopyrightText: Copyright (C) 2007 Marco Nelles 0003 * <https://userbase.kde.org/Audex> 0004 * 0005 * SPDX-License-Identifier: GPL-3.0-or-later 0006 */ 0007 0008 #ifndef WAVEWIDGET_H 0009 #define WAVEWIDGET_H 0010 0011 #include <QDir> 0012 #include <QWidget> 0013 0014 #include "utils/encoderassistant.h" 0015 #include "utils/error.h" 0016 #include "utils/parameters.h" 0017 0018 #include "ui_wavewidgetUI.h" 0019 0020 class waveWidgetUI : public QWidget, public Ui::WAVEWidgetUI 0021 { 0022 public: 0023 explicit waveWidgetUI(QWidget *parent) 0024 : QWidget(parent) 0025 { 0026 setupUi(this); 0027 } 0028 }; 0029 0030 class waveWidget : public waveWidgetUI 0031 { 0032 Q_OBJECT 0033 public: 0034 explicit waveWidget(Parameters *parameters, QWidget *parent = nullptr); 0035 ~waveWidget() override; 0036 Error lastError() const 0037 { 0038 return error; 0039 } 0040 inline bool isChanged() const 0041 { 0042 return changed; 0043 } 0044 public Q_SLOTS: 0045 bool save(); 0046 Q_SIGNALS: 0047 void triggerChanged(); 0048 private Q_SLOTS: 0049 void trigger_changed(); 0050 0051 private: 0052 Parameters *parameters; 0053 Error error; 0054 bool changed; 0055 }; 0056 0057 #endif