mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-25 12:24:26 -08:00
* Squashed Commits Lint things. Set focus back to deckView after selecting a card to enable keyboard navigation. Bump scrollbar to top when selecting a new card. Update card info on hover. Layout cleanups Add +- to buttons. Merge buttons into card picture. Cleanup size, min 2 cards by default in rows Support layout settings config and set min to 525 so two cols are visible by default for printings, when opened Move Printing Selector to before Deck, and visible true Null safety for setCard. Turn down the dropshadow a little. Make PrintingSelector dockable, don't duplicate sets when bumping them to the front of the list. When swapping cards between mainboard and sideboard, use preferred printing if no uuid is available (i.e. null). Reorder includes... Unwonk an include. Give the card widget a snazzy drop shadow, appease the linter gods. Handle jumping between segments Remember scale factor when initializing new widgets. Cleanup Select Card works (Not M->SB tho) Resize word-wrapped label properly. Fix the layouting, mostly. remove tx Build Fix Squashed Commits Load and store redirects properly. Layouting is fun :) * Group PrintingSelectorCardDisplayWidgets into distinct containers for alignment purposes. Override resizeEvent() properly. Word wrap properly. Keep widget sizes uniform for aesthetic reasons (grid pattern). Label stuff, center card picture widget, allow cardSizeSlider to scale down. Replace cards which have no uuid in the decklist when first selecting a printing. Add buttons for previous and next card in DeckList. Add a card size slider. Move sort options initialization to implementation file. Explicitly nullptr the parent for the PrintingSelector. Address PR comments (minor cleanups). Hook up to the rows removed signal to update card counts properly. Include QDebug. Add labels to the mainboard/sideboard button boxes. Implement a search bar. Expand node recursively when we add a new card. Only create image widgets for the printing selector if it is visible in order to not slow down image loading. Minor Tweaks Invert decklist export logic to write out setName, collectorNumber, providerId value if it is NOT empty. Linting. Update CardCounts properly, update PrintingSelector on Database selection. Initialize sideboard card count label properly. Split mainboard/sideboard display and increment/decrement buttons. Add button to sort all sortOptions by ascending or descending order. Add option to sort by release date in ascending or descending order. Add PrintingSelector to database view. Display placeholder image before loading. Fix deckEditor crash on mainboard/sideboard swap by correcting column index to providerId instead of shortName. Include currentZoneName, fix the column when updating from DeckView indexChanged to be UUID and not setShortName so cards are properly fetched again. The most minor linter change you've ever seen. Null checks are important. Linter again. Linter and refactor to providerId. Sort properly, (We don't need a map, we need a list, a map won't be ordered right [i.e. 1, 10, 11, 2, 3, 4, ..., 9]) Sort alphabetically or by preference. Hook printingSelector up to the CardInfoFrameWidget. Allow info from CardFrame to be retrieved, properly initialize PrintingSelector again. Refactors to reflect CardInfoPicture becoming CardInfoPictureWidget. Make PrintingSelector re-usable by introducing setCard(). Make PrintingSelector use the CardFrame, not the database index. Add a new selector widget for printings. * Support multiple <set> tags per card within the database This will allow us to show off all different printings for cards that might appear multiple times in a set (alt arts, Secret Lairs, etc.) * Support Flip Cards with related art * Minor Cleanup * Minor Cleanup * Release Date DESC default * Load widgets in batches. * Refactor local batch variables to be class variables/defines. * Clear timer on updateDisplay. * Fix Timer & Builds on Qt5 * Not Override * Yes Override * Yes Override * Lint * Can't override in function definition. * Resize setName to picture width on initialization. Also add a new signal to card_info_picture_widget to emit when the scale factor changes. Hook this up to the setName resizing method to ensure card size updates trigger it appropriately after initialization. Clean up unused enter and resize methods that just delegated to base-class. * Add ability to force preferred set art to be loaded for every card. * Show related cards from printing selector by right-clicking card image. * fix build * Fix UST cards * Inc QDebug * Fix Qt5 Builds * Fix Qt5 Builds * Fix Qt5 Builds * Fix Qt5 Builds * Fix Qt5 Builds * Fix cards being able to jump between side and mainboard * Don't hide PrintingSelector button widgets if the deck contains a card from the set. * Update PrintingSelector properly on DeckListModel::dataChanged * Add option to disable bumping sets to the front of the list if the deck contains cards from the set. * Linter behave. * Linter behave. * Fix mocks. * Fix cards without providerIds being counted for all cards. * Flip preference sort so descending means "Most to least preferred". * Set the index correctly when removing a non-providerId printing for a providerId printing to avoid jumping to the next card. * Move the "Next/Previous" card buttons to their own widget. * Move the card size slider to its own widget. * Lint the makelist. * Linter * Crash fix * Move the sorting options to their own widget. * Move the search bar to its own widget. * Minor cleanup * Minor cleanup * Minor cleanup * Only overwrite card in deck if UUID _and_ Number missing * Adjust font size when adjusting card size. * Clean up some imports. * Pivot to a view options toolbar. * Persist sort options and change default to 'preference'. * Lint. * Remember how many cards were originally in deck when replacing with uuid version. * Relabel buttons for clarity. * Fix tests. * Fix tests properly. * Fix dbconverter mock. * Try to wrangle font sizes. * Update mainboard/sideboard labels correctly. * Initialize button sizes correctly. * Label texts are supposed to be white. * Adjust another deckModel->findCard call to include number parameter. * Style buttons again. * Negative currentSize means we don't render the widget yet, return a default value. * Clean up debug statements. * Boop the mainboard/sideboard label and the cardCount after a little bit of delay to make sure they initialize at the right size. * Persist card size slider selection in SettingsCache. * Good Lint Inc. * updateCardCount to get white color in initializer * Make the view display options functional. * Comment ALL the things. * Lint the things. * Brief accidentally nuked some constants. * Proper Qt slot for checkboxes. * Don't use timers, Qt provides ShowEvent for anything necessary before the widget is shown. * Cleanup from Reading * Cleanup Lints * Minor --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de> Co-authored-by: Zach Halpern <zahalpern+github@gmail.com>
9.4 KiB
9.4 KiB