1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Expose drag cursor option

This commit is contained in:
Joe R 2024-11-10 18:27:57 -05:00
parent 91b1ba9be9
commit 673cb847bc
8 changed files with 38 additions and 6 deletions

View file

@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: PySol 0.0.1\n" "Project-Id-Version: PySol 0.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2024-10-29 20:05-0400\n" "PO-Revision-Date: 2024-11-10 18:26-0500\n"
"Last-Translator: H. Schaekel <Holger.Schaekel@web.de>\n" "Last-Translator: H. Schaekel <Holger.Schaekel@web.de>\n"
"Language-Team: German\n" "Language-Team: German\n"
"Language: de\n" "Language: de\n"
@ -5452,6 +5452,9 @@ msgstr ""
msgid "&Sticky mouse" msgid "&Sticky mouse"
msgstr "" msgstr ""
msgid "D&rag cards cursor"
msgstr ""
#: pysollib/ui/tktile/menubar.py:610 #: pysollib/ui/tktile/menubar.py:610
msgid "Use mouse for undo/redo" msgid "Use mouse for undo/redo"
msgstr "" msgstr ""

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: 1.02\n" "Project-Id-Version: 1.02\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2024-10-29 20:06-0400\n" "PO-Revision-Date: 2024-11-10 18:25-0500\n"
"Last-Translator: Eric Rausch <neelix570@gmail.com>\n" "Last-Translator: Eric Rausch <neelix570@gmail.com>\n"
"Language-Team: French\n" "Language-Team: French\n"
"Language: fr\n" "Language: fr\n"
@ -5498,6 +5498,9 @@ msgstr "&Pointer/Cliquer"
msgid "&Sticky mouse" msgid "&Sticky mouse"
msgstr "&Sélection" msgstr "&Sélection"
msgid "D&rag cards cursor"
msgstr ""
#: pysollib/ui/tktile/menubar.py:610 #: pysollib/ui/tktile/menubar.py:610
msgid "Use mouse for undo/redo" msgid "Use mouse for undo/redo"
msgstr "Souris pour annuler/répéter" msgstr "Souris pour annuler/répéter"

View file

@ -12,7 +12,7 @@ msgstr ""
"Project-Id-Version: it_pysol\n" "Project-Id-Version: it_pysol\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2024-10-29 20:06-0400\n" "PO-Revision-Date: 2024-11-10 18:25-0500\n"
"Last-Translator: Giuliano Colla <giuliano.colla@gmail.com>\n" "Last-Translator: Giuliano Colla <giuliano.colla@gmail.com>\n"
"Language-Team: Italiano <it@li.org>\n" "Language-Team: Italiano <it@li.org>\n"
"Language: it\n" "Language: it\n"
@ -5563,6 +5563,9 @@ msgstr "&Punta e clicca"
msgid "&Sticky mouse" msgid "&Sticky mouse"
msgstr "Mouse &appiccicoso" msgstr "Mouse &appiccicoso"
msgid "D&rag cards cursor"
msgstr ""
#: pysollib/ui/tktile/menubar.py:610 #: pysollib/ui/tktile/menubar.py:610
msgid "Use mouse for undo/redo" msgid "Use mouse for undo/redo"
msgstr "Usa il mouse per annulla/ripristina" msgstr "Usa il mouse per annulla/ripristina"

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: PySolFC\n" "Project-Id-Version: PySolFC\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2024-10-29 20:06-0400\n" "PO-Revision-Date: 2024-11-10 18:25-0500\n"
"Last-Translator: Jerzy Trzeciak <artusek@wp.pl>\n" "Last-Translator: Jerzy Trzeciak <artusek@wp.pl>\n"
"Language-Team: Polish <pl@li.org>\n" "Language-Team: Polish <pl@li.org>\n"
"Language: pl\n" "Language: pl\n"
@ -5514,6 +5514,9 @@ msgstr "Wskaż i kliknij"
msgid "&Sticky mouse" msgid "&Sticky mouse"
msgstr "Lepka my&sz" msgstr "Lepka my&sz"
msgid "D&rag cards cursor"
msgstr ""
#: pysollib/ui/tktile/menubar.py:610 #: pysollib/ui/tktile/menubar.py:610
msgid "Use mouse for undo/redo" msgid "Use mouse for undo/redo"
msgstr "Użyj myszy do cofania/powtarzania" msgstr "Użyj myszy do cofania/powtarzania"

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2024-10-29 20:07-0400\n" "PO-Revision-Date: 2024-11-10 18:26-0500\n"
"Last-Translator: Matheus Knack <mtknack555@gmail.com>\n" "Last-Translator: Matheus Knack <mtknack555@gmail.com>\n"
"Language-Team: \n" "Language-Team: \n"
"Language: pt_BR\n" "Language: pt_BR\n"
@ -5520,6 +5520,9 @@ msgstr "&Aponar-e-Clicar"
msgid "&Sticky mouse" msgid "&Sticky mouse"
msgstr "&Seleção" msgstr "&Seleção"
msgid "D&rag cards cursor"
msgstr ""
#: pysollib/ui/tktile/menubar.py:610 #: pysollib/ui/tktile/menubar.py:610
msgid "Use mouse for undo/redo" msgid "Use mouse for undo/redo"
msgstr "Use mouse para desfazer/refazer" msgstr "Use mouse para desfazer/refazer"

View file

@ -5246,6 +5246,9 @@ msgstr ""
msgid "&Sticky mouse" msgid "&Sticky mouse"
msgstr "" msgstr ""
msgid "D&rag cards cursor"
msgstr ""
#: pysollib/ui/tktile/menubar.py:610 #: pysollib/ui/tktile/menubar.py:610
msgid "Use mouse for undo/redo" msgid "Use mouse for undo/redo"
msgstr "" msgstr ""

View file

@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2024-10-29 20:07-0400\n" "PO-Revision-Date: 2024-11-10 18:24-0500\n"
"Last-Translator: Skomoroh <skomoroh@gmail.com>\n" "Last-Translator: Skomoroh <skomoroh@gmail.com>\n"
"Language-Team: Russian <ru@li.org>\n" "Language-Team: Russian <ru@li.org>\n"
"Language: ru\n" "Language: ru\n"
@ -5588,6 +5588,9 @@ msgstr ""
msgid "&Sticky mouse" msgid "&Sticky mouse"
msgstr "&Липкая мышь" msgstr "&Липкая мышь"
msgid "D&rag cards cursor"
msgstr ""
#: pysollib/ui/tktile/menubar.py:610 #: pysollib/ui/tktile/menubar.py:610
msgid "Use mouse for undo/redo" msgid "Use mouse for undo/redo"
msgstr "Использовать мышь для отмены/повтора" msgstr "Использовать мышь для отмены/повтора"

View file

@ -348,6 +348,7 @@ class PysolMenubarTkCommon:
tree_icon_style=tkinter.StringVar(), tree_icon_style=tkinter.StringVar(),
mouse_type=tkinter.StringVar(), mouse_type=tkinter.StringVar(),
mouse_undo=tkinter.BooleanVar(), mouse_undo=tkinter.BooleanVar(),
mouse_dragcursor=tkinter.BooleanVar(),
negative_bottom=tkinter.BooleanVar(), negative_bottom=tkinter.BooleanVar(),
pause=tkinter.BooleanVar(), pause=tkinter.BooleanVar(),
theme=tkinter.StringVar(), theme=tkinter.StringVar(),
@ -422,6 +423,7 @@ class PysolMenubarTkCommon:
tkopt.splashscreen.set(opt.splashscreen) tkopt.splashscreen.set(opt.splashscreen)
tkopt.mouse_type.set(opt.mouse_type) tkopt.mouse_type.set(opt.mouse_type)
tkopt.mouse_undo.set(opt.mouse_undo) tkopt.mouse_undo.set(opt.mouse_undo)
tkopt.mouse_dragcursor.set(opt.dragcursor)
tkopt.negative_bottom.set(opt.negative_bottom) tkopt.negative_bottom.set(opt.negative_bottom)
for w in TOOLBAR_BUTTONS: for w in TOOLBAR_BUTTONS:
tkopt.toolbar_vars[w].set(opt.toolbar_vars.get(w, False)) tkopt.toolbar_vars[w].set(opt.toolbar_vars.get(w, False))
@ -851,6 +853,10 @@ class PysolMenubarTkCommon:
value='sticky-mouse', value='sticky-mouse',
command=self.mOptMouseType) command=self.mOptMouseType)
submenu.add_separator() submenu.add_separator()
submenu.add_checkbutton(
label=n_("D&rag cards cursor"),
variable=self.tkopt.mouse_dragcursor,
command=self.mOptMouseDragCursor)
submenu.add_checkbutton( submenu.add_checkbutton(
label=n_("Use mouse for undo/redo"), label=n_("Use mouse for undo/redo"),
variable=self.tkopt.mouse_undo, variable=self.tkopt.mouse_undo,
@ -2013,6 +2019,11 @@ Unsupported game for import.
return return
self.app.opt.mouse_type = self.tkopt.mouse_type.get() self.app.opt.mouse_type = self.tkopt.mouse_type.get()
def mOptMouseDragCursor(self, *event):
if self._cancelDrag(break_pause=False):
return
self.app.opt.dragcursor = self.tkopt.mouse_dragcursor.get()
def mOptMouseUndo(self, *event): def mOptMouseUndo(self, *event):
if self._cancelDrag(break_pause=False): if self._cancelDrag(break_pause=False):
return return