MCPcopy Create free account
hub / github.com/cxasm/notepad-- / FileCmpRuleWin

Method FileCmpRuleWin

src/filecmprulewin.cpp:3–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "filecmprulewin.h"
2
3FileCmpRuleWin::FileCmpRuleWin(int mode, bool blankMath, int equalRato,QWidget *parent)
4 : QWidget(parent)
5{
6 ui.setupUi(this);
7
8 if (mode == 0)
9 {
10 ui.radioButtonDefault->setChecked(true);
11 }
12 else if(mode == 1)
13 {
14 ui.radioButtonIgnoreBackWhite->setChecked(true);
15 }
16 else if (mode == 2)
17 {
18 ui.radioButtonIgnoreAllWhite->setChecked(true);
19 }
20
21 ui.checkBoxBlankMatch->setChecked(blankMath);
22
23 int index = 0;
24
25 if (equalRato == 70)
26 {
27 index = 1;
28 }
29 else if (equalRato == 90)
30 {
31 index = 2;
32 }
33
34 ui.comboBoxEqualRato->setCurrentIndex(index);
35}
36
37FileCmpRuleWin::~FileCmpRuleWin()
38{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected