1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
/* AUDEX CDDA EXTRACTOR
* Copyright (C) 2007-2014 Marco Nelles (audex@maniatek.com)
* <http://kde.maniatek.com/audex>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PROFILEDATADIALOG_H
#define PROFILEDATADIALOG_H
#include <QWidget>
#include <QStackedWidget>
#include <KDebug>
#include <KDialog>
#include "models/profilemodel.h"
#include "utils/encoderassistant.h"
#include "widgets/lamewidget.h"
#include "widgets/oggencwidget.h"
#include "widgets/flacwidget.h"
#include "widgets/faacwidget.h"
#include "widgets/wavewidget.h"
#include "widgets/customwidget.h"
#include "dialogs/profiledatacoverdialog.h"
#include "dialogs/profiledataplaylistdialog.h"
#include "dialogs/profiledatainfodialog.h"
#include "dialogs/profiledatahashlistdialog.h"
#include "dialogs/profiledatacuesheetdialog.h"
#include "dialogs/profiledatasinglefiledialog.h"
#include "dialogs/patternwizarddialog.h"
#include "ui_profiledatawidgetUI.h"
class ProfileDataDialog : public KDialog {
Q_OBJECT
public:
ProfileDataDialog(ProfileModel *profileModel, const int profileRow, QWidget *parent = 0);
~ProfileDataDialog();
protected slots:
virtual void slotButtonClicked(int button);
private slots:
void set_encoder(const int encoder);
void set_encoder_by_combobox(const int index);
void trigger_changed();
void enable_settings_cover(bool enabled);
void enable_settings_playlist(bool enabled);
void enable_settings_info(bool enabled);
void enable_settings_hashlist(bool enabled);
void enable_settings_cuesheet(bool enabled);
void enable_settings_singlefile(bool enabled);
void disable_playlist(bool disabled);
void enable_filenames(bool enabled);
void disable_filenames(bool disabled);
void pattern_wizard();
void cover_settings();
void playlist_settings();
void info_settings();
void hashlist_settings();
void cuesheet_settings();
void singlefile_settings();
private:
Ui::ProfileDataWidgetUI ui;
ProfileModel *profile_model;
int profile_row;
lameWidget *lame_widget;
Parameters lame_parameters;
oggencWidget *oggenc_widget;
Parameters oggenc_parameters;
flacWidget *flac_widget;
Parameters flac_parameters;
faacWidget *faac_widget;
Parameters faac_parameters;
waveWidget *wave_widget;
Parameters wave_parameters;
customWidget *custom_widget;
Parameters custom_parameters;
void set_encoder_widget(const EncoderAssistant::Encoder encoder);
bool pdcd_scale;
QSize pdcd_size;
QString pdcd_format;
QString pdcd_pattern;
QString pdpd_format;
QString pdpd_pattern;
bool pdpd_abs_file_path;
QStringList pdid_text;
QString pdid_pattern;
QString pdid_suffix;
QString pdhd_format;
QString pdhd_pattern;
QString pdud_pattern;
QString pdsd_pattern;
bool save();
Error error;
};
#endif
|