勾选除摩尔纹除网纹增加提示,保存功能去除ocr-rtf格式
This commit is contained in:
parent
c449b57d0c
commit
b79c6b2ebd
|
@ -59,9 +59,10 @@ public:
|
|||
|
||||
};
|
||||
|
||||
Dialog_SaveAs::Dialog_SaveAs(QWidget *parent) :
|
||||
Dialog_SaveAs::Dialog_SaveAs(bool isSaveAs, QWidget *parent) :
|
||||
QDialog(parent)
|
||||
, ui(new Ui::Dialog_SaveAs)
|
||||
, m_isSaveAs(isSaveAs)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setWindowFlags(Qt::Dialog | Qt::WindowCloseButtonHint);
|
||||
|
@ -88,7 +89,8 @@ Dialog_SaveAs::Dialog_SaveAs(QWidget *parent) :
|
|||
#elif !defined (x86_64) && !defined (loongarch64)
|
||||
filter += ";;OCR->PDF - Portable Document Format(*.pdf)";
|
||||
filter += ";;OCR->OFD - Open Fixed-layout Document(*.ofd)";
|
||||
filter += ";;OCR->RTF - Rich Text Format(*.rtf)";
|
||||
if (m_isSaveAs)
|
||||
filter += ";;OCR->RTF - Rich Text Format(*.rtf)";
|
||||
#endif
|
||||
|
||||
ui->fileDialog->setNameFilter(filter);
|
||||
|
|
|
@ -12,7 +12,7 @@ class Dialog_SaveAs : public QDialog
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Dialog_SaveAs(QWidget *parent = nullptr);
|
||||
explicit Dialog_SaveAs(bool isSaveAs, QWidget *parent = nullptr);
|
||||
~Dialog_SaveAs();
|
||||
|
||||
void set_current_directory(const QString& dir);
|
||||
|
@ -31,6 +31,7 @@ private slots:
|
|||
private:
|
||||
Ui::Dialog_SaveAs *ui;
|
||||
|
||||
bool m_isSaveAs;
|
||||
QString m_savePath;
|
||||
int m_suffix;
|
||||
};
|
||||
|
|
|
@ -1968,7 +1968,7 @@ void MainWindow::on_act_save_triggered()
|
|||
|
||||
if(!auto_save_changes_ || auto_save_info_.path.isEmpty())
|
||||
{
|
||||
Dialog_SaveAs dlg(this);
|
||||
Dialog_SaveAs dlg(false, this);
|
||||
if(savePath.length())
|
||||
{
|
||||
int pos = savePath.lastIndexOf('/');
|
||||
|
@ -2150,7 +2150,7 @@ void MainWindow::on_act_saveAs_triggered()
|
|||
return;
|
||||
}
|
||||
|
||||
Dialog_SaveAs dlg(this);
|
||||
Dialog_SaveAs dlg(true, this);
|
||||
if (dlg.exec())
|
||||
{
|
||||
QString savePath = dlg.getSavePath();
|
||||
|
|
|
@ -989,6 +989,11 @@ void hg_settingdialog::slot_checkedClicked()
|
|||
else if (strcmp(opt->name, SANE_STD_OPT_NAME_IS_CUSTOM_GAMMA) == 0)
|
||||
btn_gamma_->setEnabled(checkBoxcurrentState);
|
||||
cur_scheme_->config_changed(id, (char*)&checkBoxcurrentState, sizeof(checkBoxcurrentState));
|
||||
|
||||
if (0 == strcmp(opt->name, SANE_STD_OPT_NAME_RID_MORR) || 0 == strcmp(opt->name, SANE_STD_OPT_NAME_RID_GRID))
|
||||
{
|
||||
QMessageBox::information(this, tr("Prompt"), tr("This function may cause a decrease in the speed of drawing."));
|
||||
}
|
||||
}
|
||||
|
||||
void hg_settingdialog::slot_string_list_comboBoxClicked()
|
||||
|
|
|
@ -1033,6 +1033,11 @@ void hg_settingdialog::slot_checkedClicked()
|
|||
else if (strcmp(opt->name, SANE_STD_OPT_NAME_IS_CUSTOM_GAMMA) == 0)
|
||||
btn_gamma_->setEnabled(checkBoxcurrentState);
|
||||
cur_scheme_->config_changed(id, (char*)&checkBoxcurrentState, sizeof(checkBoxcurrentState));
|
||||
|
||||
if (0 == strcmp(opt->name, SANE_STD_OPT_NAME_RID_MORR) || 0 == strcmp(opt->name, SANE_STD_OPT_NAME_RID_GRID))
|
||||
{
|
||||
QMessageBox::information(this, tr("Prompt"), tr("This function may cause a decrease in the speed of drawing."));
|
||||
}
|
||||
}
|
||||
|
||||
void hg_settingdialog::slot_string_list_comboBoxClicked()
|
||||
|
|
Loading…
Reference in New Issue