Пример #1
0
    def _make_transfer_group_box(self):
        self._transfer_group_box = QGroupBox("Transfer")
        vbox = QVBoxLayout()

        checkbox = QCheckBox("Automatically close TransferDialog on completition")
        checkbox.setChecked(settings.value("globals/close_on_transfer_completed", True, bool))
        checkbox.stateChanged.connect(lambda state: settings.set_value("globals/close_on_transfer_completed", state))
        vbox.addWidget(checkbox)

        self._transfer_group_box.setLayout(vbox)
        return self._transfer_group_box
Пример #2
0
    def _make_applications_box(self):
        self._applications_group_box = QGroupBox("Applications")
        vbox = QVBoxLayout()

        checkbox = QCheckBox("Open Archives Internally")
        checkbox.setChecked(settings.value("globals/open_archives", True, bool))
        checkbox.stateChanged.connect(lambda state: settings.set_value("globals/open_archives", state))
        vbox.addWidget(checkbox)

        self._applications_group_box.setLayout(vbox)

        return self._applications_group_box
Пример #3
0
    def _make_transfer_group_box(self):
        self._transfer_group_box = QGroupBox("Transfer")
        vbox = QVBoxLayout()

        checkbox = QCheckBox(
            "Automatically close TransferDialog on completition")
        checkbox.setChecked(
            settings.value("globals/close_on_transfer_completed", True, bool))
        checkbox.stateChanged.connect(lambda state: settings.set_value(
            "globals/close_on_transfer_completed", state))
        vbox.addWidget(checkbox)

        self._transfer_group_box.setLayout(vbox)
        return self._transfer_group_box
Пример #4
0
    def _make_applications_box(self):
        self._applications_group_box = QGroupBox("Applications")
        vbox = QVBoxLayout()

        checkbox = QCheckBox("Open Archives Internally")
        checkbox.setChecked(settings.value("globals/open_archives", True,
                                           bool))
        checkbox.stateChanged.connect(
            lambda state: settings.set_value("globals/open_archives", state))
        vbox.addWidget(checkbox)

        self._applications_group_box.setLayout(vbox)

        return self._applications_group_box
Пример #5
0
 def set_crop_thumbnails(self, v: bool) -> None:
     settings.set_value("globals/crop_thumbnails", v)
     self._gui._window.file_view.set_crop_thumbnails(v)
Пример #6
0
 def show_hidden(self) -> None:
     self._filter.show_hidden = not self._filter.show_hidden
     settings.set_value("globals/show_hidden", self._filter.show_hidden)
     self.file_collection.set_filter(self._filter)
Пример #7
0
    def more_details(self):
        self._level_of_detail += 1
        if self._level_of_detail > self._level_of_detail_max:
            self._level_of_detail = self._level_of_detail_max

        settings.set_value("globals/{}_level_of_detail".format(self._item_style), self._level_of_detail)
Пример #8
0
    def less_details(self):
        self._level_of_detail -= 1
        if self._level_of_detail < self._level_of_detail_min:
            self._level_of_detail = self._level_of_detail_min

        settings.set_value("globals/{}_level_of_detail".format(self._item_style), self._level_of_detail)
Пример #9
0
    def zoom_out(self) -> None:
        self._zoom_index -= 1
        if self._zoom_index < self._zoom_min:
            self._zoom_index = self._zoom_min

        settings.set_value("globals/{}_zoom_index".format(self._item_style), self._zoom_index)
Пример #10
0
    def zoom_in(self) -> None:
        self._zoom_index += 1
        if self._zoom_index > self._zoom_max:
            self._zoom_index = self._zoom_max

        settings.set_value("globals/{}_zoom_index".format(self._item_style), self._zoom_index)
Пример #11
0
 def _on_close_checkbox_toggled(self, state):
     settings.set_value("globals/close_on_transfer_completed", state)