1
/***************************************************************************
2
qgisgui.h - Constants used throughout the QGIS GUI.
3
--------------------------------------
5
Copyright : (C) 2006 by Tom Elwertowski
6
Email : telwertowski at users dot sourceforge dot net
7
***************************************************************************
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
14
***************************************************************************/
15
/* $Id: qgisgui.h 6122 2006-11-25 07:19:13Z telwertowski $ */
23
* /brief The QgisGui namespace contains constants used throughout the QGIS GUI.
29
* /var ModalDialogFlags
30
* /brief Flags used to create a modal dialog (adapted from QMessageBox).
32
* Using these flags for all modal dialogs throughout QGIS ensures that
33
* for platforms such as the Mac where modal and modeless dialogs have
34
* different looks, QGIS modal dialogs will look the same as Qt modal
35
* dialogs and all modal dialogs will look distinct from modeless dialogs.
36
* Althought not the standard Mac modal look, it does lack the minimize
37
* control which makes sense only for modeless dislogs.
39
* The Qt3 method of creating a true Mac modal dialog is deprecated in Qt4
40
* and should not be used due to conflicts with QMessageBox style dialogs.
42
* Qt::WindowMaximizeButtonHint is included but will be ignored if
43
* the dialog is a fixed size and does not have a size grip.
45
static const Qt::WFlags ModalDialogFlags =
46
#if QT_VERSION < 0x040200
47
Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMaximizeButtonHint;