RickyRister
57c6f2716f
Add setting for which deck editor tab to open deck in ( #5895 )
...
* Create new setting
* Update settings dlg
* implement functionality
* Make setting into an enum
2025-05-02 13:00:32 -04:00
RickyRister
44ac782978
Move card_item and related to src/game/board ( #5867 )
...
* move files
* update includes
* update cmake
2025-04-20 14:37:52 +00:00
BruebachL
3b1d6e394d
[EDHRec] Display name above card, add bars for inclusion and synergy instead of coloring the whole label, card size slider ( #5851 )
...
* Display name above card, add bars for inclusion and synergy instead of coloring the whole label.
* Re-add commander label.
* Add a card size slider.
* Lint.
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-04-18 22:28:44 +00:00
BruebachL
653362567b
Refactor Tab EDHRec into folders, add navigation for budget and GC, add card prices ( #5845 )
...
* Refactor things into more sensible folders.
* Add navigation widget for budget and game changers.
* Lint.
* Add a card price display widget.
* Qt version check.
* Lint some thangs.
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-04-18 03:28:04 +00:00
BruebachL
ca538399f6
Improved EDHrec tab ( #5840 )
2025-04-17 10:10:38 -04:00
RickyRister
2189fc0a96
Include card_info.h over card_database.h if able ( #5841 )
...
* Move a typedef to card_info.h
* Include card_info.h over card_database.h if able
2025-04-17 00:38:57 -04:00
BruebachL
854208ea0a
Implement deck analytics widgets. ( #5837 )
...
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-04-16 14:23:13 +00:00
BruebachL
42c56898d5
Visual Deck Editor Base ( #5834 )
...
* Visual Deck Editor.
* Lint.
* Address comments.
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-04-16 12:02:53 +00:00
RickyRister
686717e544
Refactor files in src/client/tabs to new Qt Slot/Signal syntax ( #5833 )
...
* Refactor files in src/client/tabs to new Qt Slot/Signal syntax
* Refactor DeckEditorMenu to use new signal/slot syntax
Add DeckEditorMenu as friend class to AbstractTabDeckEditor since the slots are protected
* fix build failure
2025-04-15 22:05:52 +00:00
BruebachL
c4d0921a15
Visual Database Display Tab. ( #5822 )
...
* Visual Database Display Tab.
* Address comments.
* Readd dropped method.
* Update filterTree properly in case the filter is empty after modification.
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-04-15 01:25:49 +00:00
BruebachL
0bd53d6dc7
Try to find the card again without providerId when searching fails during swap card. ( #5814 )
...
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-04-09 11:19:21 -04:00
BruebachL
61cb3d1d7c
Remove unnecessary parent argument from deck_editor_menu ( #5813 )
...
* Remove unnecessary parent argument.
* Correctly invoke new instance now.
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-04-09 11:16:56 -04:00
RickyRister
d662152088
Change default log level to info ( #5779 )
...
* update qtlogging.ini
* bump some qCDebug to qCInfo and qCWarning
2025-04-03 00:17:10 -04:00
RickyRister
99376e75d6
Support exporting to decklist.xyz website ( #5756 )
...
* Support exporting to decklist.xyz
* fix typo
2025-03-21 00:28:15 +00:00
RickyRister
0fa744f6ec
Consolidate accepted decklist file extensions ( #5749 )
...
* Consolidate accepted decklist file extensions
* rename the other const
2025-03-19 01:53:14 +00:00
Basile Clement
c219d8bdbb
hotfix: Remove menus when closing game ( #5744 )
...
Version of #5740 that doesn't leave freed `QMenu`s lying around.
2025-03-17 22:54:16 -04:00
Basile Clement
4812508afc
DeckEditor: Initialize the modified flag ( #5743 )
...
C++ does not require compilers to zero-initialize value types, so
depending on the platform (here: Linux), the deck editor starts up with
an uninitialized value in the `modified` flag, which is usually not
zero.
2025-03-17 21:43:14 -04:00
Basile Clement
37382dea44
Close the TabGames when closing the TabSupervisor ( #5735 )
...
* Close the `TabGame`s when closing the `TabSupervisor`
This ensures that we go through the same code path (in terms of Qt
events) when closing the whole supervisor as when closing a single tab.
Also, use the `close` event instead of the `hide` event to detect when
we are closing a game.
Fixes #5697
* Compat with old Qt versions
* Old Qt, reloaded
* Review: use hideEvent and call super
2025-03-16 23:05:04 +00:00
RickyRister
eb4b1c2a07
Fix extra .cod in "save deck as" default name ( #5720 )
2025-03-15 18:44:03 +00:00
RickyRister
2d44c9ad2f
Rename some save to clipboard actions
2025-03-08 20:02:32 -08:00
RickyRister
2ba7c1ff9a
Fix incorrect deck modified state ( #5698 )
2025-03-08 02:16:59 +00:00
RickyRister
6bb9ae92bf
Update recently opened decks regardless of where the deck is opened from ( #5691 )
2025-03-05 21:04:53 -05:00
RickyRister
2f415dcc6e
Add action to Edit Deck via Clipboard ( #5681 )
...
* implement functionality in dlg
* add action to deck editor
* refactor and comments
* is this refactor even a good idea?
* remove the friend class stuff
* reorder
* add option for not annotated
2025-03-05 00:55:05 +00:00
RickyRister
e1964f21de
Fix memory leaks from DeckLoader usage ( #5665 )
...
* add comment
* stack allocate DeckLoader for loading tags
* deckModel now takes ownership of DeckLoader
* fix remaining
* add comment
2025-03-02 18:57:30 -05:00
RickyRister
87c5d07807
Switch current tab when opening a single-instance tab ( #5651 )
2025-03-02 09:30:55 -05:00
lilyhuang-github
3d0f4868df
Focus tab for quit game dialog ( #5670 )
2025-03-02 09:29:17 -05:00
BruebachL
56bd11794e
Set modification state correctly. ( #5678 )
...
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-03-02 09:28:16 -05:00
RickyRister
2a9599eed8
refactor saveDeckToClipboard in AbstractTabDeckEditor ( #5671 )
...
* refactor saveDeckToClipboard in AbstractTabDeckEditor
* make deckloader functions const
* use const
* move method into DeckLoader
2025-03-01 09:21:31 -05:00
BruebachL
3620664a9f
Cache correct providerId cards on deck load ( #5668 )
...
* Implement new method for DeckList to return cardlist with providerId, a new carddatabase method to fetch a cardlist with name and providerId and changed PictureLoader to use providerId versions of cards for caching.
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-02-28 11:10:06 -05:00
BruebachL
93d28717e0
Abstract deck editor ( #5646 )
...
* Generify TabDeckEditor.
* Connect dockTopLevelChanged signals.
* Connect eventFilters.
* Remove comments.
* Fix ze build (accidentally deleted a line)
* Fix some pointer chaining.
* Be a lot saner about some signals/slots, as in, individual Deck Editor widgets now internally determine their CardInfo and then simply communicate this to the DeckEditor
* Lint.
* DeckDock can handle its own menu.
* DeckDock can handle its own decrement.
* DeckDock now notifies the deck editor on deck change, instead of individually modifying menu items and modification status.
* Rename.
* Include pixelmap generator for icon.
* Directly use an AbstractTabDeckEditor as parent.
* Move clearing database filter into signal/slot relation.
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-02-27 10:57:58 -05:00
RickyRister
e8574641b0
use new rename icon in replays tab ( #5658 )
2025-02-26 00:14:27 -05:00
RickyRister
4543038fd8
add "open in deck editor" to VDS right-click menu ( #5634 )
2025-02-25 18:35:56 -05:00
RickyRister
345f8b772c
show error message when open deck fails in VDS ( #5642 )
2025-02-25 18:33:16 -05:00
RickyRister
21e22ed5fb
Destroy VDS in game lobby once game starts ( #5643 )
...
* push back setting change
* rename method and make it public
* destroy vds on game start
2025-02-25 18:31:44 -05:00
RickyRister
0d6497fcdc
Fix banner card changing when opening deck in new tab ( #5649 )
2025-02-25 18:30:53 -05:00
RickyRister
af68a95964
Add rename action to deck storage tab ( #5656 )
...
* add icon
* add rename action
2025-02-25 18:29:07 -05:00
RickyRister
959a268f91
Mark deck as modified when banner card is changed ( #5641 )
...
* Mark deck as modified when banner card is changed
* set modified inside setBannerCard
2025-02-22 13:56:48 +00:00
RickyRister
0666483756
refactor saveDeckToClipboard in TabDeckEditor ( #5623 )
2025-02-16 02:43:44 +00:00
RickyRister
2247c66ea6
refactor how double click signal gets passed up in VDS ( #5621 )
2025-02-15 19:06:11 -05:00
BruebachL
23f4c9c4e4
Tags in deck editor ( #5608 )
2025-02-12 03:18:00 +00:00
RickyRister
b509eed3e0
support shortcuts for tab menu actions ( #5564 )
...
* support shortcuts for tab menu actions
* refactor
* add migration
2025-02-06 04:00:43 +00:00
RickyRister
1de09deb59
Fix size and image quality issues with new user icons ( #5546 )
2025-02-02 15:08:23 +00:00
RickyRister
95cea0f191
Add custom server-side pawn colors ( #5543 )
2025-02-02 03:25:25 +00:00
RickyRister
0fc05e15cd
pass ServerInfo_User down the chain ( #5542 )
2025-02-02 01:04:49 +00:00
BruebachL
33d8edeb9a
Get file format from name. ( #5532 )
...
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2025-01-27 19:41:29 -05:00
BruebachL
4d791f4d7a
Edhrec tab ( #5512 )
...
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
Co-authored-by: Zach H <zahalpern+github@gmail.com>
2025-01-25 22:29:27 +00:00
Zach H
b48fe8b99c
Better capitalization & Deck open first ( #5520 )
2025-01-25 05:45:44 +00:00
RickyRister
19b758591b
Allow offline Replays tab ( #5519 )
2025-01-25 05:44:48 +00:00
RickyRister
f428148f64
Allow offline Deck Storage tab ( #5518 )
...
* make deck storage tab no longer close on disconnect
* add method for clearing remote decklist model
* handle connect/disconnect in deck storage tab
2025-01-25 03:16:40 +00:00
RickyRister
aeb1b9fb4f
Fix segfault when game is closed while card view window is open ( #5507 )
2025-01-21 03:06:55 +00:00