viewer: restored info action in menu
This commit is contained in:
parent
c6a5316570
commit
5317750506
15 changed files with 22 additions and 0 deletions
|
@ -50,6 +50,7 @@
|
||||||
"entryActionDelete": "Löschen",
|
"entryActionDelete": "Löschen",
|
||||||
"entryActionConvert": "Konvertieren",
|
"entryActionConvert": "Konvertieren",
|
||||||
"entryActionExport": "Exportieren",
|
"entryActionExport": "Exportieren",
|
||||||
|
"entryActionInfo": "Info",
|
||||||
"entryActionRename": "Umbenennen",
|
"entryActionRename": "Umbenennen",
|
||||||
"entryActionRestore": "Wiederherstellen",
|
"entryActionRestore": "Wiederherstellen",
|
||||||
"entryActionRotateCCW": "Drehen gegen den Uhrzeigersinn",
|
"entryActionRotateCCW": "Drehen gegen den Uhrzeigersinn",
|
||||||
|
|
|
@ -78,6 +78,7 @@
|
||||||
"entryActionDelete": "Delete",
|
"entryActionDelete": "Delete",
|
||||||
"entryActionConvert": "Convert",
|
"entryActionConvert": "Convert",
|
||||||
"entryActionExport": "Export",
|
"entryActionExport": "Export",
|
||||||
|
"entryActionInfo": "Info",
|
||||||
"entryActionRename": "Rename",
|
"entryActionRename": "Rename",
|
||||||
"entryActionRestore": "Restore",
|
"entryActionRestore": "Restore",
|
||||||
"entryActionRotateCCW": "Rotate counterclockwise",
|
"entryActionRotateCCW": "Rotate counterclockwise",
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"entryActionDelete": "Borrar",
|
"entryActionDelete": "Borrar",
|
||||||
"entryActionConvert": "Convertir",
|
"entryActionConvert": "Convertir",
|
||||||
"entryActionExport": "Exportar",
|
"entryActionExport": "Exportar",
|
||||||
|
"entryActionInfo": "Información",
|
||||||
"entryActionRename": "Renombrar",
|
"entryActionRename": "Renombrar",
|
||||||
"entryActionRestore": "Restaurar",
|
"entryActionRestore": "Restaurar",
|
||||||
"entryActionRotateCCW": "Rotar en sentido antihorario",
|
"entryActionRotateCCW": "Rotar en sentido antihorario",
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"entryActionDelete": "Supprimer",
|
"entryActionDelete": "Supprimer",
|
||||||
"entryActionConvert": "Convertir",
|
"entryActionConvert": "Convertir",
|
||||||
"entryActionExport": "Exporter",
|
"entryActionExport": "Exporter",
|
||||||
|
"entryActionInfo": "Détails",
|
||||||
"entryActionRename": "Renommer",
|
"entryActionRename": "Renommer",
|
||||||
"entryActionRestore": "Restaurer",
|
"entryActionRestore": "Restaurer",
|
||||||
"entryActionRotateCCW": "Pivoter à gauche",
|
"entryActionRotateCCW": "Pivoter à gauche",
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"entryActionDelete": "Hapus",
|
"entryActionDelete": "Hapus",
|
||||||
"entryActionConvert": "Ubah",
|
"entryActionConvert": "Ubah",
|
||||||
"entryActionExport": "Ekspor",
|
"entryActionExport": "Ekspor",
|
||||||
|
"entryActionInfo": "Info",
|
||||||
"entryActionRename": "Ganti nama",
|
"entryActionRename": "Ganti nama",
|
||||||
"entryActionRestore": "Pulihkan",
|
"entryActionRestore": "Pulihkan",
|
||||||
"entryActionRotateCCW": "Putar berlawanan arah jarum jam",
|
"entryActionRotateCCW": "Putar berlawanan arah jarum jam",
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"entryActionDelete": "Elimina",
|
"entryActionDelete": "Elimina",
|
||||||
"entryActionConvert": "Converti",
|
"entryActionConvert": "Converti",
|
||||||
"entryActionExport": "Esportazione",
|
"entryActionExport": "Esportazione",
|
||||||
|
"entryActionInfo": "Info",
|
||||||
"entryActionRename": "Rinomina",
|
"entryActionRename": "Rinomina",
|
||||||
"entryActionRestore": "Ripristina",
|
"entryActionRestore": "Ripristina",
|
||||||
"entryActionRotateCCW": "Ruota in senso antiorario",
|
"entryActionRotateCCW": "Ruota in senso antiorario",
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"entryActionDelete": "削除",
|
"entryActionDelete": "削除",
|
||||||
"entryActionConvert": "変換",
|
"entryActionConvert": "変換",
|
||||||
"entryActionExport": "エクスポート",
|
"entryActionExport": "エクスポート",
|
||||||
|
"entryActionInfo": "情報",
|
||||||
"entryActionRename": "名前を変更",
|
"entryActionRename": "名前を変更",
|
||||||
"entryActionRestore": "元に戻す",
|
"entryActionRestore": "元に戻す",
|
||||||
"entryActionRotateCCW": "反時計回りに回転",
|
"entryActionRotateCCW": "反時計回りに回転",
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"entryActionDelete": "삭제",
|
"entryActionDelete": "삭제",
|
||||||
"entryActionConvert": "변환",
|
"entryActionConvert": "변환",
|
||||||
"entryActionExport": "내보내기",
|
"entryActionExport": "내보내기",
|
||||||
|
"entryActionInfo": "상세정보",
|
||||||
"entryActionRename": "이름 변경",
|
"entryActionRename": "이름 변경",
|
||||||
"entryActionRestore": "복원",
|
"entryActionRestore": "복원",
|
||||||
"entryActionRotateCCW": "좌회전",
|
"entryActionRotateCCW": "좌회전",
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
"entryActionCopyToClipboard": "Copiar para área de transferência",
|
"entryActionCopyToClipboard": "Copiar para área de transferência",
|
||||||
"entryActionDelete": "Excluir",
|
"entryActionDelete": "Excluir",
|
||||||
"entryActionExport": "Exportar",
|
"entryActionExport": "Exportar",
|
||||||
|
"entryActionInfo": "Informações",
|
||||||
"entryActionConvert": "Converter",
|
"entryActionConvert": "Converter",
|
||||||
"entryActionRename": "Renomear",
|
"entryActionRename": "Renomear",
|
||||||
"entryActionRestore": "Restaurar",
|
"entryActionRestore": "Restaurar",
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"entryActionDelete": "Удалить",
|
"entryActionDelete": "Удалить",
|
||||||
"entryActionConvert": "Конвертировать",
|
"entryActionConvert": "Конвертировать",
|
||||||
"entryActionExport": "Экспорт",
|
"entryActionExport": "Экспорт",
|
||||||
|
"entryActionInfo": "Информация",
|
||||||
"entryActionRename": "Переименовать",
|
"entryActionRename": "Переименовать",
|
||||||
"entryActionRestore": "Восстановить",
|
"entryActionRestore": "Восстановить",
|
||||||
"entryActionRotateCCW": "Повернуть против часовой стрелки",
|
"entryActionRotateCCW": "Повернуть против часовой стрелки",
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"entryActionDelete": "Sil",
|
"entryActionDelete": "Sil",
|
||||||
"entryActionConvert": "Dönüştür",
|
"entryActionConvert": "Dönüştür",
|
||||||
"entryActionExport": "Dışa aktar",
|
"entryActionExport": "Dışa aktar",
|
||||||
|
"entryActionInfo": "Bilgi",
|
||||||
"entryActionRename": "Yeniden adlandır",
|
"entryActionRename": "Yeniden adlandır",
|
||||||
"entryActionRestore": "Dışa aktar",
|
"entryActionRestore": "Dışa aktar",
|
||||||
"entryActionRotateCCW": "Saat yönünün tersine döndür",
|
"entryActionRotateCCW": "Saat yönünün tersine döndür",
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"entryActionDelete": "删除",
|
"entryActionDelete": "删除",
|
||||||
"entryActionConvert": "转换",
|
"entryActionConvert": "转换",
|
||||||
"entryActionExport": "导出",
|
"entryActionExport": "导出",
|
||||||
|
"entryActionInfo": "信息",
|
||||||
"entryActionRename": "重命名",
|
"entryActionRename": "重命名",
|
||||||
"entryActionRestore": "恢复",
|
"entryActionRestore": "恢复",
|
||||||
"entryActionRotateCCW": "逆时针旋转",
|
"entryActionRotateCCW": "逆时针旋转",
|
||||||
|
|
|
@ -4,6 +4,7 @@ import 'package:aves/widgets/common/extensions/build_context.dart';
|
||||||
import 'package:flutter/widgets.dart';
|
import 'package:flutter/widgets.dart';
|
||||||
|
|
||||||
enum EntryAction {
|
enum EntryAction {
|
||||||
|
info,
|
||||||
addShortcut,
|
addShortcut,
|
||||||
copyToClipboard,
|
copyToClipboard,
|
||||||
delete,
|
delete,
|
||||||
|
@ -43,6 +44,7 @@ enum EntryAction {
|
||||||
|
|
||||||
class EntryActions {
|
class EntryActions {
|
||||||
static const topLevel = [
|
static const topLevel = [
|
||||||
|
EntryAction.info,
|
||||||
EntryAction.share,
|
EntryAction.share,
|
||||||
EntryAction.edit,
|
EntryAction.edit,
|
||||||
EntryAction.rename,
|
EntryAction.rename,
|
||||||
|
@ -102,6 +104,8 @@ class EntryActions {
|
||||||
extension ExtraEntryAction on EntryAction {
|
extension ExtraEntryAction on EntryAction {
|
||||||
String getText(BuildContext context) {
|
String getText(BuildContext context) {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
|
case EntryAction.info:
|
||||||
|
return context.l10n.entryActionInfo;
|
||||||
case EntryAction.addShortcut:
|
case EntryAction.addShortcut:
|
||||||
return context.l10n.collectionActionAddShortcut;
|
return context.l10n.collectionActionAddShortcut;
|
||||||
case EntryAction.copyToClipboard:
|
case EntryAction.copyToClipboard:
|
||||||
|
@ -188,6 +192,8 @@ extension ExtraEntryAction on EntryAction {
|
||||||
|
|
||||||
IconData getIconData() {
|
IconData getIconData() {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
|
case EntryAction.info:
|
||||||
|
return AIcons.info;
|
||||||
case EntryAction.addShortcut:
|
case EntryAction.addShortcut:
|
||||||
return AIcons.addShortcut;
|
return AIcons.addShortcut;
|
||||||
case EntryAction.copyToClipboard:
|
case EntryAction.copyToClipboard:
|
||||||
|
|
|
@ -50,6 +50,9 @@ class EntryActionDelegate with FeedbackMixin, PermissionAwareMixin, SizeAwareMix
|
||||||
|
|
||||||
void onActionSelected(BuildContext context, EntryAction action) {
|
void onActionSelected(BuildContext context, EntryAction action) {
|
||||||
switch (action) {
|
switch (action) {
|
||||||
|
case EntryAction.info:
|
||||||
|
ShowInfoNotification().dispatch(context);
|
||||||
|
break;
|
||||||
case EntryAction.addShortcut:
|
case EntryAction.addShortcut:
|
||||||
_addShortcut(context);
|
_addShortcut(context);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -92,6 +92,7 @@ class ViewerButtonRow extends StatelessWidget {
|
||||||
return settings.isRotationLocked;
|
return settings.isRotationLocked;
|
||||||
case EntryAction.addShortcut:
|
case EntryAction.addShortcut:
|
||||||
return device.canPinShortcut;
|
return device.canPinShortcut;
|
||||||
|
case EntryAction.info:
|
||||||
case EntryAction.copyToClipboard:
|
case EntryAction.copyToClipboard:
|
||||||
case EntryAction.edit:
|
case EntryAction.edit:
|
||||||
case EntryAction.open:
|
case EntryAction.open:
|
||||||
|
|
Loading…
Reference in a new issue