mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Added recent and favorite games filters to advanced search.
This commit is contained in:
parent
af2f730816
commit
9e90157d3e
8 changed files with 83 additions and 13 deletions
|
@ -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-01-15 22:12-0500\n"
|
"PO-Revision-Date: 2024-02-11 11:04-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"
|
||||||
|
@ -3625,6 +3625,12 @@ msgstr ""
|
||||||
msgid "Popular"
|
msgid "Popular"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Recent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Favorite"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Children's"
|
msgid "Children's"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -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-01-15 22:13-0500\n"
|
"PO-Revision-Date: 2024-02-11 11:04-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"
|
||||||
|
@ -3669,6 +3669,12 @@ msgstr ""
|
||||||
msgid "Popular"
|
msgid "Popular"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Recent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Favorite"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Children's"
|
msgid "Children's"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -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-01-15 22:58-0500\n"
|
"PO-Revision-Date: 2024-02-11 11:03-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"
|
||||||
|
@ -3731,6 +3731,12 @@ msgstr ""
|
||||||
msgid "Popular"
|
msgid "Popular"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Recent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Favorite"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Children's"
|
msgid "Children's"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -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-01-15 22:13-0500\n"
|
"PO-Revision-Date: 2024-02-11 11:03-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"
|
||||||
|
@ -3686,6 +3686,12 @@ msgstr ""
|
||||||
msgid "Popular"
|
msgid "Popular"
|
||||||
msgstr "Popularny"
|
msgstr "Popularny"
|
||||||
|
|
||||||
|
msgid "Recent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Favorite"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Children's"
|
msgid "Children's"
|
||||||
msgstr "Dziecięcy"
|
msgstr "Dziecięcy"
|
||||||
|
|
||||||
|
|
|
@ -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-01-15 22:14-0500\n"
|
"PO-Revision-Date: 2024-02-11 11:02-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"
|
||||||
|
@ -3692,6 +3692,12 @@ msgstr ""
|
||||||
msgid "Popular"
|
msgid "Popular"
|
||||||
msgstr "Popular"
|
msgstr "Popular"
|
||||||
|
|
||||||
|
msgid "Recent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Favorite"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Children's"
|
msgid "Children's"
|
||||||
msgstr "Filhos de"
|
msgstr "Filhos de"
|
||||||
|
|
||||||
|
|
|
@ -3491,6 +3491,12 @@ msgstr ""
|
||||||
msgid "Popular"
|
msgid "Popular"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Recent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Favorite"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Children's"
|
msgid "Children's"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -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-01-15 22:14-0500\n"
|
"PO-Revision-Date: 2024-02-11 11:02-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"
|
||||||
|
@ -3741,6 +3741,12 @@ msgstr ""
|
||||||
msgid "Popular"
|
msgid "Popular"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Recent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Favorite"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Children's"
|
msgid "Children's"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -619,6 +619,12 @@ class SelectGameDialogWithPreview(SelectGameDialog):
|
||||||
if (self.criteria.popular and
|
if (self.criteria.popular and
|
||||||
not (game.si.game_flags & GI.GT_POPULAR)):
|
not (game.si.game_flags & GI.GT_POPULAR)):
|
||||||
continue
|
continue
|
||||||
|
if (self.criteria.recent and
|
||||||
|
not (game.id in self.app.opt.recent_gameid)):
|
||||||
|
continue
|
||||||
|
if (self.criteria.favorite and
|
||||||
|
not (game.id in self.app.opt.favorite_gameid)):
|
||||||
|
continue
|
||||||
if (self.criteria.children and
|
if (self.criteria.children and
|
||||||
not (game.si.game_flags & GI.GT_CHILDREN)):
|
not (game.si.game_flags & GI.GT_CHILDREN)):
|
||||||
continue
|
continue
|
||||||
|
@ -674,6 +680,8 @@ class SelectGameDialogWithPreview(SelectGameDialog):
|
||||||
self.criteria.statistics = d.statistics.get()
|
self.criteria.statistics = d.statistics.get()
|
||||||
|
|
||||||
self.criteria.popular = d.popular.get()
|
self.criteria.popular = d.popular.get()
|
||||||
|
self.criteria.recent = d.recent.get()
|
||||||
|
self.criteria.favorite = d.favorite.get()
|
||||||
self.criteria.children = d.children.get()
|
self.criteria.children = d.children.get()
|
||||||
self.criteria.scoring = d.scoring.get()
|
self.criteria.scoring = d.scoring.get()
|
||||||
self.criteria.stripped = d.stripped.get()
|
self.criteria.stripped = d.stripped.get()
|
||||||
|
@ -865,6 +873,8 @@ class SearchCriteria:
|
||||||
self.statistics = ""
|
self.statistics = ""
|
||||||
|
|
||||||
self.popular = False
|
self.popular = False
|
||||||
|
self.recent = False
|
||||||
|
self.favorite = False
|
||||||
self.children = False
|
self.children = False
|
||||||
self.scoring = False
|
self.scoring = False
|
||||||
self.stripped = False
|
self.stripped = False
|
||||||
|
@ -946,6 +956,10 @@ class SelectGameAdvancedSearch(MfxDialog):
|
||||||
|
|
||||||
self.popular = tkinter.BooleanVar()
|
self.popular = tkinter.BooleanVar()
|
||||||
self.popular.set(criteria.popular)
|
self.popular.set(criteria.popular)
|
||||||
|
self.recent = tkinter.BooleanVar()
|
||||||
|
self.recent.set(criteria.recent)
|
||||||
|
self.favorite = tkinter.BooleanVar()
|
||||||
|
self.favorite.set(criteria.favorite)
|
||||||
self.children = tkinter.BooleanVar()
|
self.children = tkinter.BooleanVar()
|
||||||
self.children.set(criteria.children)
|
self.children.set(criteria.children)
|
||||||
self.scoring = tkinter.BooleanVar()
|
self.scoring = tkinter.BooleanVar()
|
||||||
|
@ -1101,19 +1115,33 @@ class SelectGameAdvancedSearch(MfxDialog):
|
||||||
text=_("Popular"), anchor="w")
|
text=_("Popular"), anchor="w")
|
||||||
popularCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
popularCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
||||||
padx=1, pady=1)
|
padx=1, pady=1)
|
||||||
col += 1
|
col += 2
|
||||||
|
|
||||||
|
recentCheck = tkinter.Checkbutton(top_frame, variable=self.recent,
|
||||||
|
text=_("Recent"), anchor="w")
|
||||||
|
recentCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
||||||
|
padx=1, pady=1)
|
||||||
|
col += 2
|
||||||
|
|
||||||
|
favoriteCheck = tkinter.Checkbutton(top_frame, variable=self.favorite,
|
||||||
|
text=_("Favorite"), anchor="w")
|
||||||
|
favoriteCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
||||||
|
padx=1, pady=1)
|
||||||
|
|
||||||
|
row += 1
|
||||||
|
col = 0
|
||||||
|
|
||||||
childCheck = tkinter.Checkbutton(top_frame, variable=self.children,
|
childCheck = tkinter.Checkbutton(top_frame, variable=self.children,
|
||||||
text=_("Children's"), anchor="w")
|
text=_("Children's"), anchor="w")
|
||||||
childCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
childCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
||||||
padx=1, pady=1)
|
padx=1, pady=1)
|
||||||
col += 1
|
col += 2
|
||||||
|
|
||||||
scoreCheck = tkinter.Checkbutton(top_frame, variable=self.scoring,
|
scoreCheck = tkinter.Checkbutton(top_frame, variable=self.scoring,
|
||||||
text=_("Scored"), anchor="w")
|
text=_("Scored"), anchor="w")
|
||||||
scoreCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
scoreCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
||||||
padx=1, pady=1)
|
padx=1, pady=1)
|
||||||
col += 1
|
col += 2
|
||||||
|
|
||||||
stripCheck = tkinter.Checkbutton(top_frame, variable=self.stripped,
|
stripCheck = tkinter.Checkbutton(top_frame, variable=self.stripped,
|
||||||
text=_("Stripped Deck"), anchor="w")
|
text=_("Stripped Deck"), anchor="w")
|
||||||
|
@ -1126,25 +1154,25 @@ class SelectGameAdvancedSearch(MfxDialog):
|
||||||
text=_("Separate Decks"), anchor="w")
|
text=_("Separate Decks"), anchor="w")
|
||||||
sepCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
sepCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
||||||
padx=1, pady=1)
|
padx=1, pady=1)
|
||||||
col += 1
|
col += 2
|
||||||
|
|
||||||
openCheck = tkinter.Checkbutton(top_frame, variable=self.open,
|
openCheck = tkinter.Checkbutton(top_frame, variable=self.open,
|
||||||
text=_("Open"), anchor="w")
|
text=_("Open"), anchor="w")
|
||||||
openCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
openCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
||||||
padx=1, pady=1)
|
padx=1, pady=1)
|
||||||
col += 1
|
col += 2
|
||||||
|
|
||||||
relaxedCheck = tkinter.Checkbutton(top_frame, variable=self.relaxed,
|
relaxedCheck = tkinter.Checkbutton(top_frame, variable=self.relaxed,
|
||||||
text=_("Relaxed"), anchor="w")
|
text=_("Relaxed"), anchor="w")
|
||||||
relaxedCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
relaxedCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
||||||
padx=1, pady=1)
|
padx=1, pady=1)
|
||||||
col += 1
|
row += 1
|
||||||
|
col = 0
|
||||||
|
|
||||||
originalCheck = tkinter.Checkbutton(top_frame, variable=self.original,
|
originalCheck = tkinter.Checkbutton(top_frame, variable=self.original,
|
||||||
text=_("Original"), anchor="w")
|
text=_("Original"), anchor="w")
|
||||||
originalCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
originalCheck.grid(row=row, column=col, columnspan=1, sticky='ew',
|
||||||
padx=1, pady=1)
|
padx=1, pady=1)
|
||||||
col += 1
|
|
||||||
|
|
||||||
focus = self.createButtons(bottom_frame, kw)
|
focus = self.createButtons(bottom_frame, kw)
|
||||||
# focus = text_w
|
# focus = text_w
|
||||||
|
|
Loading…
Add table
Reference in a new issue