Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
7afb8669
Commit
7afb8669
authored
Apr 01, 2010
by
Max-Wilhelm Bruker
Browse files
confirmation dialog when closing main window with open games
parent
e7c4f759
Changes
4
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/tab_supervisor.h
View file @
7afb8669
...
@@ -31,6 +31,7 @@ public:
...
@@ -31,6 +31,7 @@ public:
void
retranslateUi
();
void
retranslateUi
();
void
start
(
Client
*
_client
);
void
start
(
Client
*
_client
);
void
stop
();
void
stop
();
int
getGameCount
()
const
{
return
gameTabs
.
size
();
}
signals:
signals:
void
setMenu
(
QMenu
*
menu
);
void
setMenu
(
QMenu
*
menu
);
private
slots
:
private
slots
:
...
...
cockatrice/src/window_main.cpp
View file @
7afb8669
...
@@ -207,8 +207,15 @@ MainWindow::MainWindow(QWidget *parent)
...
@@ -207,8 +207,15 @@ MainWindow::MainWindow(QWidget *parent)
resize
(
900
,
700
);
resize
(
900
,
700
);
}
}
void
MainWindow
::
closeEvent
(
QCloseEvent
*/
*
event
*/
)
void
MainWindow
::
closeEvent
(
QCloseEvent
*
event
)
{
{
if
(
tabSupervisor
->
getGameCount
())
{
if
(
QMessageBox
::
question
(
this
,
tr
(
"Are you sure?"
),
tr
(
"There are still open games. Are you sure you want to quit?"
),
QMessageBox
::
Yes
|
QMessageBox
::
No
,
QMessageBox
::
No
)
==
QMessageBox
::
No
)
{
event
->
ignore
();
return
;
}
}
event
->
accept
();
delete
tabSupervisor
;
delete
tabSupervisor
;
}
}
...
...
cockatrice/translations/cockatrice_de.ts
View file @
7afb8669
...
@@ -925,7 +925,7 @@
...
@@ -925,7 +925,7 @@
<
context
>
<
context
>
<
name
>
GameView
<
/name
>
<
name
>
GameView
<
/name
>
<
message
>
<
message
>
<
location
filename
=
"
../src/gameview.cpp
"
line
=
"
1
5
"
/>
<
location
filename
=
"
../src/gameview.cpp
"
line
=
"
1
6
"
/>
<
source
>
Esc
<
/source
>
<
source
>
Esc
<
/source
>
<
translation
>
Esc
<
/translation
>
<
translation
>
Esc
<
/translation
>
<
/message
>
<
/message
>
...
@@ -1084,6 +1084,16 @@
...
@@ -1084,6 +1084,16 @@
<
source
>&
amp
;
Disconnect
<
/source
>
<
source
>&
amp
;
Disconnect
<
/source
>
<
translation
>
Verbindung
&
amp
;
trennen
<
/translation
>
<
translation
>
Verbindung
&
amp
;
trennen
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
location
filename
=
"
../src/window_main.cpp
"
line
=
"
213
"
/>
<
source
>
Are
you
sure
?
<
/source
>
<
translation
>
Sind
Sie
sicher
?
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../src/window_main.cpp
"
line
=
"
213
"
/>
<
source
>
There
are
still
open
games
.
Are
you
sure
you
want
to
quit
?
<
/source
>
<
translation
>
Es
gibt
noch
offene
Spiele
.
Wollen
Sie
das
Programm
wirklich
beenden
?
<
/translation
>
<
/message
>
<
message
>
<
message
>
<
source
>&
amp
;
Restart
game
...
<
/source
>
<
source
>&
amp
;
Restart
game
...
<
/source
>
<
translation
type
=
"
obsolete
"
>
Spiel
neu
sta
&
amp
;
rten
...
<
/translation
>
<
translation
type
=
"
obsolete
"
>
Spiel
neu
sta
&
amp
;
rten
...
<
/translation
>
...
@@ -1784,57 +1794,57 @@
...
@@ -1784,57 +1794,57 @@
<
context
>
<
context
>
<
name
>
PhasesToolbar
<
/name
>
<
name
>
PhasesToolbar
<
/name
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
5
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
7
"
/>
<
source
>
Untap
step
<
/source
>
<
source
>
Untap
step
<
/source
>
<
translation
>
Enttappsegment
<
/translation
>
<
translation
>
Enttappsegment
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
6
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
8
"
/>
<
source
>
Upkeep
step
<
/source
>
<
source
>
Upkeep
step
<
/source
>
<
translation
>
Versorgungssegment
<
/translation
>
<
translation
>
Versorgungssegment
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
7
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
9
"
/>
<
source
>
Draw
step
<
/source
>
<
source
>
Draw
step
<
/source
>
<
translation
>
Ziehsegment
<
/translation
>
<
translation
>
Ziehsegment
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
1
18
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
1
20
"
/>
<
source
>
First
main
phase
<
/source
>
<
source
>
First
main
phase
<
/source
>
<
translation
>
erste
Hauptphase
<
/translation
>
<
translation
>
erste
Hauptphase
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
9
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
1
2
1
"
/>
<
source
>
Beginning
of
combat
step
<
/source
>
<
source
>
Beginning
of
combat
step
<
/source
>
<
translation
>
Anfangssegment
der
Kampfphase
<
/translation
>
<
translation
>
Anfangssegment
der
Kampfphase
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
0
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
2
"
/>
<
source
>
Declare
attackers
step
<
/source
>
<
source
>
Declare
attackers
step
<
/source
>
<
translation
>
Angreifer
-
Deklarieren
-
Segment
<
/translation
>
<
translation
>
Angreifer
-
Deklarieren
-
Segment
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
1
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
3
"
/>
<
source
>
Declare
blockers
step
<
/source
>
<
source
>
Declare
blockers
step
<
/source
>
<
translation
>
Blocker
-
Deklarieren
-
Segment
<
/translation
>
<
translation
>
Blocker
-
Deklarieren
-
Segment
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
2
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
4
"
/>
<
source
>
Combat
damage
step
<
/source
>
<
source
>
Combat
damage
step
<
/source
>
<
translation
>
Kampfschadenssegment
<
/translation
>
<
translation
>
Kampfschadenssegment
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
3
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
5
"
/>
<
source
>
End
of
combat
step
<
/source
>
<
source
>
End
of
combat
step
<
/source
>
<
translation
>
Endsegment
der
Kampfphase
<
/translation
>
<
translation
>
Endsegment
der
Kampfphase
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
4
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
6
"
/>
<
source
>
Second
main
phase
<
/source
>
<
source
>
Second
main
phase
<
/source
>
<
translation
>
zweite
Hauptphase
<
/translation
>
<
translation
>
zweite
Hauptphase
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
5
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
7
"
/>
<
source
>
End
of
turn
step
<
/source
>
<
source
>
End
of
turn
step
<
/source
>
<
translation
>
Ende
-
des
-
Zuges
-
Segment
<
/translation
>
<
translation
>
Ende
-
des
-
Zuges
-
Segment
<
/translation
>
<
/message
>
<
/message
>
...
@@ -2176,12 +2186,12 @@
...
@@ -2176,12 +2186,12 @@
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/player.cpp
"
line
=
"
430
"
/>
<
location
filename
=
"
../src/player.cpp
"
line
=
"
430
"
/>
<
location
filename
=
"
../src/player.cpp
"
line
=
"
96
5
"
/>
<
location
filename
=
"
../src/player.cpp
"
line
=
"
96
4
"
/>
<
source
>
Number
:
<
/source
>
<
source
>
Number
:
<
/source
>
<
translation
>
Anzahl
:
<
/translation
>
<
translation
>
Anzahl
:
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/player.cpp
"
line
=
"
96
5
"
/>
<
location
filename
=
"
../src/player.cpp
"
line
=
"
96
4
"
/>
<
source
>
Set
counters
<
/source
>
<
source
>
Set
counters
<
/source
>
<
translation
>
Setze
Zählmarken
<
/translation
>
<
translation
>
Setze
Zählmarken
<
/translation
>
<
/message
>
<
/message
>
...
@@ -2285,17 +2295,17 @@
...
@@ -2285,17 +2295,17 @@
<
context
>
<
context
>
<
name
>
RemoteDeckList_TreeModel
<
/name
>
<
name
>
RemoteDeckList_TreeModel
<
/name
>
<
message
>
<
message
>
<
location
filename
=
"
../src/remotedecklist_treewidget.cpp
"
line
=
"
15
3
"
/>
<
location
filename
=
"
../src/remotedecklist_treewidget.cpp
"
line
=
"
15
7
"
/>
<
source
>
Name
<
/source
>
<
source
>
Name
<
/source
>
<
translation
>
Name
<
/translation
>
<
translation
>
Name
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/remotedecklist_treewidget.cpp
"
line
=
"
15
4
"
/>
<
location
filename
=
"
../src/remotedecklist_treewidget.cpp
"
line
=
"
15
8
"
/>
<
source
>
ID
<
/source
>
<
source
>
ID
<
/source
>
<
translation
>
ID
<
/translation
>
<
translation
>
ID
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/remotedecklist_treewidget.cpp
"
line
=
"
15
5
"
/>
<
location
filename
=
"
../src/remotedecklist_treewidget.cpp
"
line
=
"
15
9
"
/>
<
source
>
Upload
time
<
/source
>
<
source
>
Upload
time
<
/source
>
<
translation
>
Änderungsdatum
<
/translation
>
<
translation
>
Änderungsdatum
<
/translation
>
<
/message
>
<
/message
>
...
...
cockatrice/translations/cockatrice_en.ts
View file @
7afb8669
...
@@ -552,7 +552,7 @@
...
@@ -552,7 +552,7 @@
<
context
>
<
context
>
<
name
>
GameView
<
/name
>
<
name
>
GameView
<
/name
>
<
message
>
<
message
>
<
location
filename
=
"
../src/gameview.cpp
"
line
=
"
1
5
"
/>
<
location
filename
=
"
../src/gameview.cpp
"
line
=
"
1
6
"
/>
<
source
>
Esc
<
/source
>
<
source
>
Esc
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
...
@@ -737,6 +737,16 @@
...
@@ -737,6 +737,16 @@
<
source
>&
amp
;
Cockatrice
<
/source
>
<
source
>&
amp
;
Cockatrice
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
location
filename
=
"
../src/window_main.cpp
"
line
=
"
213
"
/>
<
source
>
Are
you
sure
?
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../src/window_main.cpp
"
line
=
"
213
"
/>
<
source
>
There
are
still
open
games
.
Are
you
sure
you
want
to
quit
?
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
/context
>
<
context
>
<
context
>
<
name
>
MessageLogWidget
<
/name
>
<
name
>
MessageLogWidget
<
/name
>
...
@@ -1107,57 +1117,57 @@
...
@@ -1107,57 +1117,57 @@
<
context
>
<
context
>
<
name
>
PhasesToolbar
<
/name
>
<
name
>
PhasesToolbar
<
/name
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
5
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
7
"
/>
<
source
>
Untap
step
<
/source
>
<
source
>
Untap
step
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
6
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
8
"
/>
<
source
>
Upkeep
step
<
/source
>
<
source
>
Upkeep
step
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
7
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
9
"
/>
<
source
>
Draw
step
<
/source
>
<
source
>
Draw
step
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
1
18
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
1
20
"
/>
<
source
>
First
main
phase
<
/source
>
<
source
>
First
main
phase
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
11
9
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
1
2
1
"
/>
<
source
>
Beginning
of
combat
step
<
/source
>
<
source
>
Beginning
of
combat
step
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
0
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
2
"
/>
<
source
>
Declare
attackers
step
<
/source
>
<
source
>
Declare
attackers
step
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
1
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
3
"
/>
<
source
>
Declare
blockers
step
<
/source
>
<
source
>
Declare
blockers
step
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
2
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
4
"
/>
<
source
>
Combat
damage
step
<
/source
>
<
source
>
Combat
damage
step
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
3
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
5
"
/>
<
source
>
End
of
combat
step
<
/source
>
<
source
>
End
of
combat
step
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
4
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
6
"
/>
<
source
>
Second
main
phase
<
/source
>
<
source
>
Second
main
phase
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
5
"
/>
<
location
filename
=
"
../src/phasestoolbar.cpp
"
line
=
"
12
7
"
/>
<
source
>
End
of
turn
step
<
/source
>
<
source
>
End
of
turn
step
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
...
@@ -1463,7 +1473,7 @@
...
@@ -1463,7 +1473,7 @@
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/player.cpp
"
line
=
"
430
"
/>
<
location
filename
=
"
../src/player.cpp
"
line
=
"
430
"
/>
<
location
filename
=
"
../src/player.cpp
"
line
=
"
96
5
"
/>
<
location
filename
=
"
../src/player.cpp
"
line
=
"
96
4
"
/>
<
source
>
Number
:
<
/source
>
<
source
>
Number
:
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
...
@@ -1488,7 +1498,7 @@
...
@@ -1488,7 +1498,7 @@
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/player.cpp
"
line
=
"
96
5
"
/>
<
location
filename
=
"
../src/player.cpp
"
line
=
"
96
4
"
/>
<
source
>
Set
counters
<
/source
>
<
source
>
Set
counters
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
...
@@ -1552,17 +1562,17 @@
...
@@ -1552,17 +1562,17 @@
<
context
>
<
context
>
<
name
>
RemoteDeckList_TreeModel
<
/name
>
<
name
>
RemoteDeckList_TreeModel
<
/name
>
<
message
>
<
message
>
<
location
filename
=
"
../src/remotedecklist_treewidget.cpp
"
line
=
"
15
3
"
/>
<
location
filename
=
"
../src/remotedecklist_treewidget.cpp
"
line
=
"
15
7
"
/>
<
source
>
Name
<
/source
>
<
source
>
Name
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/remotedecklist_treewidget.cpp
"
line
=
"
15
4
"
/>
<
location
filename
=
"
../src/remotedecklist_treewidget.cpp
"
line
=
"
15
8
"
/>
<
source
>
ID
<
/source
>
<
source
>
ID
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
<
message
>
<
message
>
<
location
filename
=
"
../src/remotedecklist_treewidget.cpp
"
line
=
"
15
5
"
/>
<
location
filename
=
"
../src/remotedecklist_treewidget.cpp
"
line
=
"
15
9
"
/>
<
source
>
Upload
time
<
/source
>
<
source
>
Upload
time
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/message
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment