ofd开放压缩功能

This commit is contained in:
yangjiaxuan 2023-03-03 17:57:31 +08:00
parent beec6cadca
commit 0d8c7d7f19
4 changed files with 4 additions and 4 deletions

View File

@ -165,7 +165,7 @@ void Dialog_AquireInto::on_cbox_format_currentIndexChanged(int index)
if (index < 6 || index >= 10 )
ui->cbtn_multiFile->setChecked(false);
ui->btn_option->setEnabled(0 == index || 6 == index);
ui->btn_option->setEnabled(0 == index || 6 == index || 7 == index || 8 == index);
}
void Dialog_AquireInto::on_lineEdit_directory_textChanged(const QString& arg1)

View File

@ -64,7 +64,7 @@ Dialog_Export::Dialog_Export(int total, const std::vector<int> &selectedIndexs,
m_supportType.push_back(SupportType(".pbm", "PBM - Portable BitMap", FILE_TYPE_ATTR_NO_MORE_OPTION));
m_supportType.push_back(SupportType(".tif", "TIF - TIFF Revision 6", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES | FILE_TYPE_ATTR_MORE_OPTIONS));
m_supportType.push_back(SupportType(".pdf", "PDF - Portable Document Format", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES | FILE_TYPE_ATTR_MORE_OPTIONS));
m_supportType.push_back(SupportType(".ofd", "OFD - Open Fixed-layout Document", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES));
m_supportType.push_back(SupportType(".ofd", "OFD - Open Fixed-layout Document", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES | FILE_TYPE_ATTR_MORE_OPTIONS));
m_supportType.push_back(SupportType(".gif", "GIF - Graphics Interchange Format", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES));
#if 0
if (!getOcrPath().empty())

View File

@ -257,7 +257,7 @@ void Dialog_SaveAs::on_dialog_accepted()
void Dialog_SaveAs::on_filterSelected(const QString& filterName)
{
m_suffix = ui->fileDialog->nameFilters().indexOf(filterName);
ui->btn_option->setEnabled(0 == m_suffix || 6 == m_suffix);
ui->btn_option->setEnabled(0 == m_suffix || 6 == m_suffix || 7 == m_suffix || 8 == m_suffix);
#if 0
ui->label_ocrType->setVisible(isOcr());

View File

@ -8,7 +8,7 @@ Dialog_WriteSettings::Dialog_WriteSettings(int suffix_type, QWidget *parent) :
{
ui->setupUi(this);
//set visible
bool jpg_enable = (suffix_type == 0 || suffix_type == 7);
bool jpg_enable = (suffix_type == 0 || suffix_type == 7 || suffix_type == 8);
bool tif_enable = (suffix_type == 6);
ui->lab_tif_bw->setVisible(tif_enable);
ui->cbox_tif_bw->setVisible(tif_enable);