| 21 | using namespace std; |
| 22 | |
| 23 | reader::reader(QWidget *parent) : |
| 24 | QWidget(parent), |
| 25 | ui(new Ui::reader) |
| 26 | { |
| 27 | // Elements |
| 28 | graphicsScene = new QGraphicsScene(this); |
| 29 | |
| 30 | // Variables |
| 31 | global::battery::showLowBatteryDialog = true; |
| 32 | global::battery::showCriticalBatteryAlert = true; |
| 33 | global::reader::highlightAlreadyDone = false; |
| 34 | if(global::reader::bookIsEpub == true) { |
| 35 | is_epub = true; |
| 36 | } |
| 37 | mupdf::convertRelativeValues = false; |
| 38 | wordwidgetLock = false; |
| 39 | textDialogLock = false; |
| 40 | goToSavedPageDone = false; |
| 41 | initialPdfRotationDone = false; |
| 42 | global::reader::textAlignment = 0; |
| 43 | global::reader::lineSpacing = 0; |
| 44 | global::reader::font = "Source Serif Pro"; |
| 45 | global::reader::fontSize = 10; |
| 46 | global::reader::margins = 1; |
| 47 | global::reader::currentViewportText = ""; |
| 48 | |
| 49 | ui->setupUi(this); |
| 50 | ui->fontLabel->setFont(QFont("u001")); |
| 51 | ui->sizeLabel->setFont(QFont("u001")); |
| 52 | ui->sizeValueLabel->setFont(QFont("Inter")); |
| 53 | ui->lineSpacingLabel->setFont(QFont("u001")); |
| 54 | ui->lineSpacingValueLabel->setFont(QFont("Inter")); |
| 55 | ui->marginsLabel->setFont(QFont("u001")); |
| 56 | ui->marginsValueLabel->setFont(QFont("Inter")); |
| 57 | ui->alignmentLabel->setFont(QFont("u001")); |
| 58 | ui->fontChooser->setFont(QFont("u001")); |
| 59 | ui->definitionStatusLabel->setFont(QFont("u001")); |
| 60 | ui->pageProgressBar->setFont(QFont("u001")); |
| 61 | |
| 62 | ui->previousBtn->setProperty("type", "borderless"); |
| 63 | ui->nextBtn->setProperty("type", "borderless"); |
| 64 | ui->optionsBtn->setProperty("type", "borderless"); |
| 65 | ui->homeBtn->setProperty("type", "borderless"); |
| 66 | ui->brightnessBtn->setProperty("type", "borderless"); |
| 67 | ui->alignLeftBtn->setProperty("type", "borderless"); |
| 68 | ui->alignRightBtn->setProperty("type", "borderless"); |
| 69 | ui->alignCenterBtn->setProperty("type", "borderless"); |
| 70 | ui->alignLeftBtn->setProperty("type", "borderless"); |
| 71 | ui->alignJustifyBtn->setProperty("type", "borderless"); |
| 72 | ui->infoCloseBtn->setProperty("type", "borderless"); |
| 73 | ui->saveWordBtn->setProperty("type", "borderless"); |
| 74 | ui->previousDefinitionBtn->setProperty("type", "borderless"); |
| 75 | ui->nextDefinitionBtn->setProperty("type", "borderless"); |
| 76 | ui->nightModeBtn->setProperty("type", "borderless"); |
| 77 | ui->searchBtn->setProperty("type", "borderless"); |
| 78 | ui->gotoBtn->setProperty("type", "borderless"); |
| 79 | ui->increaseScaleBtn->setProperty("type", "borderless"); |
| 80 | ui->decreaseScaleBtn->setProperty("type", "borderless"); |
nothing calls this directly
no test coverage detected