# CutBox.app

## Coverage Report

#### Created: 2024-03-12 03:40

    .../Source/App/Preferences/PreferencesGeneralView.swift

    Line

    Count

    Source

    1

    //

    2

    //  PreferencesGeneralView.swift

    3

    //  CutBox

    4

    //

    5

    //  Created by Jason Milkins on 13/5/18.

    6

    //  Copyright © 2018-2023 ocodo. All rights reserved.

    7

    //

    8

    9

    import Cocoa

    10

    import RxSwift

    11

    import Magnet

    12

    import KeyHolder

    13

    14

    class PreferencesGeneralView: CutBoxBaseView {

    15

        var prefs: CutBoxPreferencesService!

    16

    51

        let disposeBag = DisposeBag()

    17

    18

        var hotKeyService: HotKeyService!

    19

        var hotKeyCenter: HotKeyCenter!

    20

        var loginItemsService: LoginItemsService!

    21

    22

        @IBOutlet weak var mainKeyRecorder: RecordView!

    23

        @IBOutlet weak var mainKeyRecorderLabel: CutBoxBaseTextField!

    24

        @IBOutlet weak var autoLoginCheckbox: CutBoxBaseButton!

    25

        @IBOutlet weak var protectFavoritesCheckbox: CutBoxBaseButton!

    26

        @IBOutlet weak var showAllHiddenDialogBoxesButton: CutBoxBaseButton!

    27

    28

    49

        override func awakeFromNib() {

    29

    49

            self.loginItemsService = LoginItemsService.shared

    30

    49

            self.hotKeyService = HotKeyService.shared

    31

    49

            self.hotKeyCenter = HotKeyCenter.shared

    32

    49

            self.prefs = CutBoxPreferencesService.shared

    33

    49

    34

    49

            setupKeyRecorders()

    35

    49

            setupProtectFavoritesCheckbox()

    36

    49

            setupAutoLoginControl()

    37

    49

            setupShowAllHiddenDialogBoxesButton()

    38

    49

        }

    39

    }