This commit is contained in:
恍兮惚兮 2024-08-03 02:33:30 +08:00
parent cb0e6fd394
commit 65ec6fa62a
21 changed files with 51 additions and 22 deletions

View File

@ -2687,7 +2687,7 @@ class previewimages(QWidget):
pixmap_ = item.imagepath
self.changepixmappath.emit(pixmap_)
def removecurrent(self):
def removecurrent(self, delfile):
idx = self.list.currentRow()
item = self.list.currentItem()
if item is None:
@ -2695,6 +2695,11 @@ class previewimages(QWidget):
path = item.imagepath
self.removepath.emit(path)
self.list.takeItem(idx)
if delfile:
try:
os.remove(path)
except:
pass
def resizeEvent(self, e: QResizeEvent):
if self.hor:
@ -2970,18 +2975,22 @@ class pixwrapper(QWidget):
setimage = LAction(("设为封面"))
deleteimage = LAction(("删除图片"))
deleteimage_x = LAction(("删除图片文件"))
hualang = LAction(("画廊"))
pos = LAction(("位置"))
menu.addAction(setimage)
menu.addAction(deleteimage)
menu.addAction(deleteimage_x)
menu.addAction(hualang)
if _1:
menu.addSeparator()
menu.addAction(pos)
action = menu.exec(QCursor.pos())
if action == deleteimage:
self.removecurrent()
self.removecurrent(False)
elif action == deleteimage_x:
self.removecurrent(True)
elif action == pos:
getselectpos(self, self.switchpos)

View File

@ -837,5 +837,6 @@
"当前游戏ID": "معرف اللعبة الحالية",
"粘贴": "لصق",
"首尾": "الرأس والذيل",
"包含": "احتواء"
"包含": "احتواء",
"删除图片文件": "حذف ملف الصورة"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "當前遊戲ID",
"粘贴": "粘貼",
"首尾": "首尾",
"包含": "包含"
"包含": "包含",
"删除图片文件": "删除圖片檔案"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "Aktuální ID hry",
"粘贴": "pasta",
"首尾": "Konec k konci",
"包含": "obsahovat"
"包含": "obsahovat",
"删除图片文件": "Smazat obrázkové soubory"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "Aktuelle Spiel-ID",
"粘贴": "Paste",
"首尾": "Ende zu Ende",
"包含": "enthalten"
"包含": "enthalten",
"删除图片文件": "Bilddateien löschen"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "Current game ID",
"粘贴": "paste",
"首尾": "End to end",
"包含": "contain"
"包含": "contain",
"删除图片文件": "Delete image files"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "Id actual del juego",
"粘贴": "Pegar",
"首尾": "De principio a fin",
"包含": "Contiene"
"包含": "Contiene",
"删除图片文件": "Eliminar archivos de imagen"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "Id de jeu actuel",
"粘贴": "Coller",
"首尾": "Première queue",
"包含": "Contient"
"包含": "Contient",
"删除图片文件": "Supprimer un fichier image"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "ID del gioco corrente",
"粘贴": "pasta",
"首尾": "Fine a fine",
"包含": "contiene"
"包含": "contiene",
"删除图片文件": "Elimina file immagine"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "現在のゲームID",
"粘贴": "貼り付け",
"首尾": "首尾",
"包含": "含める"
"包含": "含める",
"删除图片文件": "画像ファイルを削除"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "현재 게임 ID",
"粘贴": "붙여넣기",
"首尾": "수미",
"包含": "포함"
"包含": "포함",
"删除图片文件": "그림 파일 삭제"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "Huidige game-ID",
"粘贴": "plakken",
"首尾": "End to end",
"包含": "bevatten"
"包含": "bevatten",
"删除图片文件": "Afbeeldingsbestanden verwijderen"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "Aktualny identyfikator gry",
"粘贴": "pasta",
"首尾": "Koniec do końca",
"包含": "zawierać"
"包含": "zawierać",
"删除图片文件": "Usuń pliki obrazów"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "ID do jogo actual",
"粘贴": "colar",
"首尾": "De ponta a ponta",
"包含": "contém"
"包含": "contém",
"删除图片文件": "Apagar os ficheiros de imagem"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "Текущий идентификатор игры",
"粘贴": "Вставить",
"首尾": "Голова и хвост",
"包含": "Включение"
"包含": "Включение",
"删除图片文件": "Удалить файл изображения"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "Aktuellt spelID",
"粘贴": "klistra",
"首尾": "Slut till slut",
"包含": "innehåller"
"包含": "innehåller",
"删除图片文件": "Ta bort bildfiler"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "รหัสเกมปัจจุบัน",
"粘贴": "วางบน",
"首尾": "หัวหาง",
"包含": "ประกอบด้วย"
"包含": "ประกอบด้วย",
"删除图片文件": "ลบไฟล์รูปภาพ"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "Şimdiki oyun kimliği",
"粘贴": "Yapıştır",
"首尾": "Sonuna kadar",
"包含": "içerir"
"包含": "içerir",
"删除图片文件": "Resim dosyalarını sil"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "Поточний ідентифікатор гри",
"粘贴": "вставити",
"首尾": "Кінець до кінця",
"包含": "містити"
"包含": "містити",
"删除图片文件": "Вилучити файли зображення"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "ID game hiện tại",
"粘贴": "Dán",
"首尾": "Trang chủ",
"包含": "Bao gồm"
"包含": "Bao gồm",
"删除图片文件": "Xoá tập tin ảnh"
}

View File

@ -837,5 +837,6 @@
"当前游戏ID": "",
"粘贴": "",
"首尾": "",
"包含": ""
"包含": "",
"删除图片文件": ""
}