Freeciv-3.3
Loading...
Searching...
No Matches
client
gui-qt
gui_main.h
Go to the documentation of this file.
1
/***********************************************************************
2
Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; either version 2, or (at your option)
6
any later version.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
***********************************************************************/
13
14
#ifndef FC__GUI_MAIN_H
15
#define FC__GUI_MAIN_H
16
17
void
popup_quit_dialog
();
18
QApplication
*
current_app
();
19
20
// Compatibility layer between Qt5 and Qt6 while we support
21
// also the former.
22
#ifndef FC_QT5_MODE
23
#define mevent_gpos(__ev__) (__ev__)->globalPosition().toPoint()
24
#else
// FC_QT5_MODE
25
#define mevent_gpos(__ev__) (__ev__)->globalPos()
26
#endif
// FC_QT5_MODE
27
28
#ifdef FREECIV_HAVE_CXX20_CAPTURE_THIS
29
#define CAPTURE_DEFAULT_THIS [=, this]
30
#else
// FREECIV_HAVE_CXX20_CAPTURE_THIS
31
#define CAPTURE_DEFAULT_THIS [=]
32
#endif
// FREECIV_HAVE_CXX20_CAPTURE_THIS
33
34
#endif
// FC__GUI_MAIN_H
incite_cost
char * incite_cost
Definition
comments.c:76
popup_quit_dialog
void popup_quit_dialog(void)
Definition
gui_main.c:2350
current_app
QApplication * current_app()
Definition
gui_main.cpp:227
Generated on Sun Dec 22 2024 22:30:34 for Freeciv-3.3 by
1.9.8