mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-03 07:33:51 +01:00
2020-02-25 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'Q3FileDialog' dependency from the 'Import Audio' dialog.
This commit is contained in:
@@ -19685,3 +19685,6 @@
|
|||||||
2020-02-25 Fred Gleason <fredg@paravelsystems.com>
|
2020-02-25 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Removed the 'Q3ButtonGroup' dependency from the 'Import Audio'
|
* Removed the 'Q3ButtonGroup' dependency from the 'Import Audio'
|
||||||
dialog.
|
dialog.
|
||||||
|
2020-02-25 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Removed the 'Q3FileDialog' dependency from the 'Import Audio'
|
||||||
|
dialog.
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include <qpushbutton.h>
|
#include <qpushbutton.h>
|
||||||
#include <q3filedialog.h>
|
#include <qfiledialog.h>
|
||||||
#include <qmessagebox.h>
|
#include <qmessagebox.h>
|
||||||
#include <qcheckbox.h>
|
#include <qcheckbox.h>
|
||||||
#include <qpainter.h>
|
#include <qpainter.h>
|
||||||
@@ -347,7 +347,6 @@ int RDImportAudio::exec(bool enable_import,bool enable_export)
|
|||||||
|
|
||||||
void RDImportAudio::modeClickedData(int id)
|
void RDImportAudio::modeClickedData(int id)
|
||||||
{
|
{
|
||||||
printf("modeClickedData(%d)\n",id);
|
|
||||||
import_in_filename_label->setDisabled(id);
|
import_in_filename_label->setDisabled(id);
|
||||||
import_in_filename_edit->setDisabled(id);
|
import_in_filename_edit->setDisabled(id);
|
||||||
import_in_metadata_box->setDisabled(id||(import_wavedata==NULL));
|
import_in_metadata_box->setDisabled(id||(import_wavedata==NULL));
|
||||||
@@ -401,14 +400,13 @@ void RDImportAudio::selectInputFileData()
|
|||||||
QString filename;
|
QString filename;
|
||||||
|
|
||||||
if(import_in_filename_edit->text().isEmpty()) {
|
if(import_in_filename_edit->text().isEmpty()) {
|
||||||
filename=
|
filename=QFileDialog::getOpenFileName(this,"Audio Dialog",*import_path,
|
||||||
Q3FileDialog::getOpenFileName(*import_path,
|
import_file_filter);
|
||||||
import_file_filter,this);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
filename=
|
filename=QFileDialog::getOpenFileName(this,"Audio Dialog",
|
||||||
Q3FileDialog::getOpenFileName(import_in_filename_edit->text(),
|
import_in_filename_edit->text(),
|
||||||
import_file_filter,this);
|
import_file_filter);
|
||||||
}
|
}
|
||||||
if(!filename.isEmpty()) {
|
if(!filename.isEmpty()) {
|
||||||
import_in_filename_edit->setText(filename);
|
import_in_filename_edit->setText(filename);
|
||||||
@@ -425,12 +423,13 @@ void RDImportAudio::selectOutputFileData()
|
|||||||
import_settings->format())+")";
|
import_settings->format())+")";
|
||||||
|
|
||||||
if(import_out_filename_edit->text().isEmpty()) {
|
if(import_out_filename_edit->text().isEmpty()) {
|
||||||
filename=
|
filename=QFileDialog::getSaveFileName(this,"Audio Export",*import_path,
|
||||||
Q3FileDialog::getSaveFileName(*import_path,filter,this);
|
filter);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
filename=Q3FileDialog::getSaveFileName(import_out_filename_edit->text(),
|
filename=QFileDialog::getSaveFileName(this,"Audio Export",
|
||||||
filter,this);
|
import_out_filename_edit->text(),
|
||||||
|
filter);
|
||||||
}
|
}
|
||||||
if(!filename.isEmpty()) {
|
if(!filename.isEmpty()) {
|
||||||
import_out_filename_edit->
|
import_out_filename_edit->
|
||||||
|
|||||||
Reference in New Issue
Block a user