QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgisgui.h
Go to the documentation of this file.
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 #ifndef QGISGUI_H
16 #define QGISGUI_H
17 
18 #include <Qt>
19 #include <QPair>
20 #include <QStringList>
21 
22 class QFont;
23 
28 namespace QgisGui
29 {
30 
48  static const Qt::WindowFlags ModalDialogFlags = 0;
49 
73  bool GUI_EXPORT openFilesRememberingFilter( QString const &filterName,
74  QString const &filters, QStringList & selectedFiles, QString& enc, QString &title,
75  bool cancelAll = false );
76 
85  QPair<QString, QString> GUI_EXPORT getSaveAsImageName( QWidget * theParent, QString theMessage, QString defaultFilename = QString::null );
86 
95  QString GUI_EXPORT createFileFilter_( QString const &longName, QString const &glob );
96 
103  QString GUI_EXPORT createFileFilter_( QString const &format );
104 
112  QFont GUI_EXPORT getFont( bool &ok, const QFont &initial, const QString &title = QString() );
113 }
114 
115 #endif