~ubuntu-branches/ubuntu/hardy/qgis/hardy

« back to all changes in this revision

Viewing changes to src/gui/qgisgui.h

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-05-06 13:42:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070506134232-pyli6t388w5asd8x
Tags: 0.8.0-3ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules, debian/qgis.install, debian/qgis.dirs debian/qgis.desktop:
    Add and install .desktop.
* debian/qgis.desktop: Remove Applications category; it's not real.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
    qgisgui.h - Constants used throughout the QGIS GUI.
 
3
     --------------------------------------
 
4
    Date                 : 11-Jan-2006
 
5
    Copyright            : (C) 2006 by Tom Elwertowski
 
6
    Email                : telwertowski at users dot sourceforge dot net
 
7
 ***************************************************************************
 
8
 *                                                                         *
 
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.                                   *
 
13
 *                                                                         *
 
14
 ***************************************************************************/
 
15
/* $Id: qgisgui.h 6122 2006-11-25 07:19:13Z telwertowski $ */
 
16
#ifndef QGISGUI_H
 
17
#define QGISGUI_H
 
18
 
 
19
#include <Qt>
 
20
 
 
21
/*!
 
22
 * /namespace QgisGui
 
23
 * /brief The QgisGui namespace contains constants used throughout the QGIS GUI.
 
24
 */
 
25
namespace QgisGui
 
26
{
 
27
 
 
28
  /*!
 
29
   * /var ModalDialogFlags
 
30
   * /brief Flags used to create a modal dialog (adapted from QMessageBox).
 
31
   *
 
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.
 
38
   *
 
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.
 
41
   *
 
42
   * Qt::WindowMaximizeButtonHint is included but will be ignored if
 
43
   * the dialog is a fixed size and does not have a size grip.
 
44
   */
 
45
  static const Qt::WFlags ModalDialogFlags =
 
46
#if QT_VERSION < 0x040200
 
47
      Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMaximizeButtonHint;
 
48
#else
 
49
      0;
 
50
#endif
 
51
 
 
52
}
 
53
 
 
54
#endif