33                                       const QVariantList &args)
    52     if (!dialog) 
return Q_NULLPTR;
    54     QStringList *list = 
new QStringList();
    56     if (list && dialog->exec()) {
    61         if (list) 
delete list;
    65     if (dialog) 
delete dialog;
    73     if (old_info == new_info) 
return; 
    76     if (!qFuzzyCompare(old_info.
rate(), new_info.
rate())) {
    79         double new_rate = new_info.
rate();
    81             i18n(
"You have changed the sample rate. Do you want to convert "    82                  "the whole file to the new sample rate or do "    83                  "you only want to set the rate information in order "    84                  "to repair a damaged file? Note: changing only the sample "    85                  "rate can cause \"mickey mouse\" effects."),
    89         if (res == KMessageBox::Yes) {
    95             if (new_info != old_info) {
   101             emitCommand(
_(
"plugin:execute(samplerate,%1,all)").arg(new_rate));
   103         } 
else if (res == KMessageBox::No) {
   113     if (new_info != old_info) {
   119 #include "FileInfoPlugin.moc" void emitCommand(const QString &command)
static int questionYesNoCancel(QWidget *widget, QString message, QString caption=QString(), const QString buttonYes=QString(), const QString buttonNo=QString(), const QString &dontAskAgainName=QString())
QWidget * parentWidget() const
Kwave::SignalManager & signalManager()
void apply(Kwave::FileInfo &new_info)
void setRate(double rate)
void setFileInfo(const Kwave::FileInfo &new_info, bool with_undo)
virtual ~FileInfoPlugin() Q_DECL_OVERRIDE
#define KWAVE_PLUGIN(name, class)
virtual QStringList * setup(QStringList &) Q_DECL_OVERRIDE