mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-19 12:14:06 +00:00
b5349478cf
The next commit will add `.git-blame-ignore-revs` https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
31 lines
1,003 B
C++
31 lines
1,003 B
C++
/* This file is (c) 2015 Zhe Wang <0x1997@gmail.com>
|
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
#include "chineseconversion.hh"
|
|
#include "ui_chineseconversion.h"
|
|
|
|
ChineseConversion::ChineseConversion( QWidget * parent, Config::Chinese const & cfg ):
|
|
QGroupBox( parent ),
|
|
ui( new Ui::ChineseConversion )
|
|
{
|
|
ui->setupUi( this );
|
|
|
|
setChecked( cfg.enable );
|
|
ui->enableSCToTWConversion->setChecked( cfg.enableSCToTWConversion );
|
|
ui->enableSCToHKConversion->setChecked( cfg.enableSCToHKConversion );
|
|
ui->enableTCToSCConversion->setChecked( cfg.enableTCToSCConversion );
|
|
}
|
|
|
|
ChineseConversion::~ChineseConversion()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void ChineseConversion::getConfig( Config::Chinese & cfg ) const
|
|
{
|
|
cfg.enable = isChecked();
|
|
cfg.enableSCToTWConversion = ui->enableSCToTWConversion->isChecked();
|
|
cfg.enableSCToHKConversion = ui->enableSCToHKConversion->isChecked();
|
|
cfg.enableTCToSCConversion = ui->enableTCToSCConversion->isChecked();
|
|
}
|