mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-16 09:34:36 +00:00
changed extension of import\export TF\Equalizer file from CSV to QMAP
This commit is contained in:
parent
eab3b15be9
commit
72a5fa25ab
@ -455,7 +455,7 @@ Color4b TransferFunction::getColorByQuality (float percentageQuality)
|
||||
QString TransferFunction::saveColorBand( QString fn, EQUALIZER_INFO& info )
|
||||
{
|
||||
//acquiring save file
|
||||
QString fileName = QFileDialog::getSaveFileName( 0, "Save Transfer Function File", fn + CSV_FILE_EXSTENSION, "CSV File (*.csv)" );
|
||||
QString fileName = QFileDialog::getSaveFileName( 0, "Save Transfer Function File", fn + CSV_FILE_EXSTENSION, QString("Quality Mapper File (*") + QString(CSV_FILE_EXSTENSION) + QString(")") );
|
||||
|
||||
QFile outFile( fileName );
|
||||
|
||||
|
||||
@ -165,7 +165,7 @@ private:
|
||||
#else
|
||||
#define CSV_FILE_DIRECTORY "CSV/"
|
||||
#endif
|
||||
#define CSV_FILE_EXSTENSION ".csv"
|
||||
#define CSV_FILE_EXSTENSION ".qmap"
|
||||
#define CSV_FILE_SEPARATOR ";"
|
||||
#define CSV_FILE_COMMENT "//"
|
||||
|
||||
|
||||
@ -793,7 +793,7 @@ void QualityMapperDialog::on_savePresetButton_clicked()
|
||||
void QualityMapperDialog::on_loadPresetButton_clicked()
|
||||
{
|
||||
//user chooses the file to load
|
||||
QString csvFileName = QFileDialog::getOpenFileName(0, "Open Transfer Function File", QDir::currentPath(), "CSV File (*.csv)");
|
||||
QString csvFileName = QFileDialog::getOpenFileName(0, "Open Transfer Function File", QDir::currentPath(), QString("Quality Mapper File (*") + QString(CSV_FILE_EXSTENSION) + QString(")") );
|
||||
|
||||
//user didn't select anything. Nothing to do.
|
||||
if (csvFileName.isNull())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user