![]() |
XML Mill
1.0.0
A GUI based XML editor with a memory.
|
00001 /* Copyright (c) 2012 - 2013 by William Hallatt. 00002 * 00003 * This file forms part of "XML Mill". 00004 * 00005 * The official website for this project is <http://www.goblincoding.com> and, 00006 * although not compulsory, it would be appreciated if all works of whatever 00007 * nature using this source code (in whole or in part) include a reference to 00008 * this site. 00009 * 00010 * Should you wish to contact me for whatever reason, please do so via: 00011 * 00012 * <http://www.goblincoding.com/contact> 00013 * 00014 * This program is free software: you can redistribute it and/or modify it under 00015 * the terms of the GNU General Public License as published by the Free Software 00016 * Foundation, either version 3 of the License, or (at your option) any later 00017 * version. 00018 * 00019 * This program is distributed in the hope that it will be useful, but WITHOUT 00020 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00021 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU General Public License along with 00024 * this program (GNUGPL.txt). If not, see 00025 * 00026 * <http://www.gnu.org/licenses/> 00027 */ 00028 00029 #ifndef GCGLOBALS_H 00030 #define GCGLOBALS_H 00031 00032 #include <QString> 00033 #include <QFile> 00034 #include <QTextStream> 00035 00037 00038 namespace GCGlobalSpace 00039 { 00040 /*--------------------------------------------------------------------------------------*/ 00041 00042 const QString& getOrganisationName(); 00043 const QString& getApplicationName(); 00044 00045 /*--------------------------------------------------------------------------------------*/ 00046 00048 bool showHelpButtons(); 00049 00051 void setShowHelpButtons( bool show ); 00052 00053 /*--------------------------------------------------------------------------------------*/ 00054 00056 bool showTreeItemsVerbose(); 00057 00059 void setShowTreeItemsVerbose( bool show ); 00060 00061 /*--------------------------------------------------------------------------------------*/ 00062 00064 QString lastUserSelectedDirectory(); 00065 00067 void setLastUserSelectedDirectory( const QString& dir ); 00068 00069 /*--------------------------------------------------------------------------------------*/ 00070 00072 QByteArray windowGeometry(); 00073 00075 void setWindowGeometry( const QByteArray& geometry ); 00076 00078 QByteArray windowState(); 00079 00081 void setWindowState( const QByteArray& state ); 00082 00084 void removeWindowInfo(); 00085 00086 /*--------------------------------------------------------------------------------------*/ 00087 00089 bool useDarkTheme(); 00090 00092 void setUseDarkTheme( bool use ); 00093 00095 bool useWindowSettings(); 00096 00098 void setUseWindowSettings( bool use ); 00099 00100 /*--------------------------------------------------------------------------------------*/ 00101 00103 const QString FONT = "Courier New"; 00104 00106 const int FONTSIZE = 10; 00107 00108 /*--------------------------------------------------------------------------------------*/ 00109 } 00110 00111 #endif // GCGLOBALS_H