Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add QgisGui namespace for application-wide gui constants.
- Add QgisGui::ModalDialogFlags for creating modal dialogs. This allows occurrances of the deprecated Qt3-style QDialog constructor to be replaced with the Qt4-style constructor and create Mac modal dialogs which corectly interact with QMessageBox modal dialogs. - Use new ModalDialogFlags in DBSourceSelect dialog to elminiate Mac dialog layering problems. (This update will soon be made to all modal dialogs.) git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4681 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
telwertowski
committed
Jan 14, 2006
1 parent
44f4e79
commit f40fda5
Showing
3 changed files
with
67 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/*************************************************************************** | ||
qgisgui.h - Constants used throughout the QGIS GUI. | ||
-------------------------------------- | ||
Date : 11-Jan-2006 | ||
Copyright : (C) 2006 by Tom Elwertowski | ||
Email : telwertowski at users dot sourceforge dot net | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
/* $Id$ */ | ||
#ifndef QGISGUI_H | ||
#define QGISGUI_H | ||
|
||
#include <Qt> | ||
|
||
/*! | ||
* /namespace QgisGui | ||
* /brief The QgisGui namespace contains constants used throughout the QGIS GUI. | ||
*/ | ||
namespace QgisGui | ||
{ | ||
|
||
/*! | ||
* /var ModalDialogFlags | ||
* /brief Flags used to create a modal dialog (adapted from QMessageBox). | ||
* | ||
* Using these flags for all modal dialogs throughout QGIS ensures that | ||
* for platforms such as the Mac where modal and modeless dialogs have | ||
* different looks, QGIS modal dialogs will look the same as Qt modal | ||
* dialogs and all modal dialogs will look distinct from modeless dialogs. | ||
* Althought not the standard Mac modal look, it does lack the minimize | ||
* control which makes sense only for modeless dislogs. | ||
* | ||
* The Qt3 method of creating a true Mac modal dialog is deprecated in Qt4 | ||
* and should not be used due to conflicts with QMessageBox style dialogs. | ||
* | ||
* Qt::WindowMaximizeButtonHint is included but will be ignored if | ||
* the dialog is a fixed size and does not have a size grip. | ||
*/ | ||
Qt::WFlags ModalDialogFlags = | ||
Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMaximizeButtonHint; | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters