Basile Clement
00c9efe541
Enable buttons for current game when receiving server response ( #4737 )
...
* Enable buttons for current game when receiving server response
Previously, upon joining a game, we were unconditionally re-enabling the
"Join" button in the lobby, even if it was not enabled in the first
place, causing #4698 . This could also lead to issues where if the user
selects a different game after joining (which they can do in case of
e.g. network connectivity issues), the "Join as spectator" button could
get incorrectly disabled.
This fixes #4698 by re-enabling the buttons based on the state of the
currently selected game at the time the response is received. This also
avoids inconsistencies if a different game has been selected in between
joining and receiving a response from the server.
* Typo: enable gameButton in enableButtons
The "create game" button was incorrectly being disabled in enableButtons
whereas (as the name indicates) it should have been enabled
* Remove misleading comment about race conditions
2023-02-06 13:49:45 +01:00
Antoine Dahan
72743e834e
Selecting game already open in a tab brings user to that tab. ( #4653 )
...
* When trying to join a game from GameSelector that's already been joined by you, navigate to its game tab.
* return immediately, do not change button states
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
2022-10-29 15:46:50 +02:00
ebbit1q
994704d353
implement max lengths for input dialogs that are sent to the server ( #4522 )
...
* implement max lengths for input dialogs that are sent to the server
* missed a double setMaxLength
* implement max string lengths server side
* add custom getText dialog with max length
* fix deck storage tab and miscellaneous server side
* add max size for deck uploads
* final pass on client side limits
2022-01-16 17:57:01 -05:00
Kaitlin
a49c4865bb
Add game filtering for spectator attributes ( #4127 )
2020-10-27 15:49:02 -04:00
tooomm
5df069ab19
userlists --> account ( #4139 )
2020-10-12 17:18:11 -04:00
Kaitlin
eba9c097f6
Add dropdown for game age filtering ( #4092 )
...
* Part 1 for #3067 : Basic combo box (dropdown) filtering mechanism for game age.
* Apply suggestions from draft review
# Conflicts:
# cockatrice/src/gamesmodel.cpp
# cockatrice/src/gamesmodel.h
* switch to using QTime
* check for games older than a day
* formatting for casts and more unnecessary cosmetic changes
* ebbit1q fixes
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
2020-09-30 23:46:10 -04:00
Kaitlin
79f590c99a
Fix #3957 : Properly set filters to defaults on initial load and disable "Clear filters" button if filters are set to defaults. ( #4088 )
...
* Fix #3957 : Properly set filters to defaults on initial load and disable "Clear filters" button if filters are set to defaults
* Reuse resetFilterParameters() in GamesProxyModel constructor, and remove "off" designation for player min/max (as a default of 1/99 is enforced by the UI).
2020-09-09 11:24:54 -04:00
Kaitlin
ade3e81682
Move "Games shown" text to top, to match user count list. ( #4089 )
...
Fixes last part of #3068 that isn't already handled by #4088 .
2020-09-08 14:34:36 -04:00
Kaitlin
1988e4558f
Change filter hint text to "Games shown: X / Y" and fix user-game segfault ( #3973 )
2020-05-08 15:15:54 -04:00
Kaitlin
2c3eab9b0c
Fix #3068 : Add hint text about game list filters ( #3946 )
...
Kaitlin Huben <kaitlin.huben+gitlab@gmail.com>
2020-04-07 17:55:36 -04:00
ebbit1q
18a07274d4
clangify everything with the new header sorting ( #3908 )
2020-03-18 17:36:02 -04:00
Phillip Wheatley
0f18fa9546
Hide games created/hosted by people on your Ignore List ( #3883 )
...
* Implement filter for games created by ignored users.
2020-01-13 10:13:36 -05:00
Rob Blanckaert
ea8201af5c
Judge mode ( #3531 )
...
* Judge mode
* Use seperate judge icon
* Fix clang init ordering complaint
* Create gavel.svg
* Add judge level
* Adjust judge permissions.
* - Tag events caused by judges
- Allow judges access to card right click menus.
* Allow judges to change phase / turn.
* Remove gavel from pawn
* Make judge action text black.
* Create scales
* Rename scales to scales.svg
* Use scales
* remove gavel
* - Address PR feedback
- Fix sort order
* Zach
* add option to servatrice.ini
2019-02-21 14:00:00 -05:00
ctrlaltca
b29bd9e070
Clang-format ( #3028 )
...
* 1/3 Add .clang-format file and travis compilation check
* 2/3 Run clang-format
* 3/3 Fix compilation problems due to include reordering
* 3bis/3 AfterControlStatement: false
2018-01-27 10:41:32 +01:00
ctrlaltca
acb40bc738
Fix #2608 ; fix #2609 ; fix #2611 ( #2636 )
2017-04-24 22:20:44 +02:00
Zach H
e2e9c5ab96
disable join if spec disabled ( #2605 )
2017-04-20 03:01:28 -04:00
Gavin Bisesi
a3f4012d1a
Reduce TabSupervisor direct usage in UserContextMenu
2017-03-22 20:44:05 -04:00
Gavin Bisesi
c5aa75d4d1
Reduce data dependency for GamesProxyModel
2017-03-22 20:44:05 -04:00
Zach H
0da2bdd7aa
additional null checks in player, gameselector, remoteclient, log ( #2514 )
2017-03-19 12:55:55 -04:00
poixen
a729b1c966
updated game created coloumn text
2016-07-12 09:31:27 +02:00
poixen
089edc53d0
filter buddies only
2016-07-03 21:48:21 +02:00
Fabio Bas
bb5292aa8d
Drop Qt4, libgcrypt, qtmobility dependencies
2016-05-11 12:45:58 +02:00
Fabio Bas
00e3e63f41
Themes: remove all hardcoded extensions
2015-09-13 00:14:36 +02:00
Fabio Bas
5cfb034452
merged with master
2015-08-31 22:48:14 +02:00
Jeff
3f22024281
Joining a full game joins you as spectator
2015-07-18 01:33:15 -04:00
Fabio Bas
f17dec29f6
Reorganized images in subfolders
...
As per @daenyth’s comment:
https://github.com/Cockatrice/Cockatrice/pull/792#issuecomment-76593730
2015-06-15 14:37:19 +02:00
Fabio Bas
6b8ebe54e9
Theme manager
...
This is the first implementation of a theme manager. It’s a rebased and
revisited version of #792 .
2015-06-15 14:35:58 +02:00
Matt Lowe
f2a53abcd8
Updated filter svgs
...
Now uses the same as in the deck editor
2015-05-06 13:25:06 +02:00
Matt Lowe
8938d291f8
Filter password games consistancy
2015-04-15 22:00:52 +02:00
Matt Lowe
39482534c0
Resized game view columns
...
Previously all columns were the same width, making it cramped. I have
resized them to give a better initial width.
2015-03-16 11:21:15 +01:00
Fabio Bas
0d974914a3
Disable filters in "show user's games" dialog
...
Hide filters-related buttons
Bypass the proxy model
2015-02-08 22:35:37 +01:00
Gavin Bises
86b92a25de
Merge remote-tracking branch 'origin/master' into show-password-games-by-default
2015-02-05 21:46:29 -05:00
Gavin Bises
975c5e0db3
Show password protected games by default
2015-02-02 19:14:23 -05:00
Jeffrey Oliver
223b38c27b
Add a bool to the gameselector constructor to choose whether or not we should
...
load settings from saved values or use defaults.
2015-01-27 12:40:13 -08:00
Jeffrey Oliver
bb317003b4
Save filters after a filter clear.
...
Remove some duplicated code.
2015-01-02 17:23:15 -08:00
Jeffrey Oliver
f01d26bf96
Enable the clear filter button by default.
2015-01-02 17:10:55 -08:00
Jeffrey Oliver
f1803fe879
Remove some debug.
2015-01-02 17:06:30 -08:00
Jeffrey Oliver
dbfbfcc837
WIP: refactor filters to save to persistence from within model.
2015-01-02 15:19:36 -08:00
Jeffrey Oliver
6a4384f903
WIP: Refactor gamesproxymodel to own the persistence layer.
2015-01-02 15:05:33 -08:00
Matt Lowe
0f6dc6be6c
Fix for #460
2014-11-27 09:52:27 +01:00
Gavin Bisesi
f71cfb1240
Merge pull request #436 from mitchellwrosen/master
...
Add 'Start time' column to game list
2014-11-25 09:01:24 -05:00
Matt Lowe
9e349d8b88
Added "ENTER" to join a room
...
Can now join a room by highlighting a room and pressing ENTER. Works
nice with arrow navigation.
2014-11-23 00:46:54 +01:00
Matt Lowe
6a44855a5c
Added double click to join a room
...
Can now double click on a room in the lobby to join
2014-11-23 00:36:50 +01:00
Mitchell Rosen
93ab9f9691
Add 'Start time' column to game list
2014-11-22 00:06:13 -08:00
Fabio Bas
ea8c55b2c9
Merge remote-tracking branch 'upstream/master' into cmake_qt5
2014-07-09 17:44:21 +02:00
arxanas
8141901679
Fix #137 : Game filter preferences are saved.
2014-07-07 17:41:16 -04:00
Fabio Bas
6dbdaafb33
Ported cockatrice
2014-06-24 19:13:47 +02:00
Matt Kelly
1bc48a7849
Convert rest of source to 4-space indent
2014-02-11 11:14:19 -05:00
Max-Wilhelm Bruker
7736f7b5f8
fixed #101 : added option to filter password protected games
2013-01-19 17:16:04 +01:00
Max-Wilhelm Bruker
95cd293b9c
context menu for a message sender's name in chat; also display the user level icon next to the name; minor consistency and type-safety changes
2012-04-08 23:48:02 +02:00