LibEngsas
eglobal.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 - 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17  MA 02110-1301 USA.
18 */
19 
101 #ifndef EGLOBAL_H
102 #define EGLOBAL_H
103 
104 #ifdef E_BUILD_CORE_LIB
105  #define E_CORE_EXPORT Q_DECL_EXPORT
106 #else
107  #define E_CORE_EXPORT Q_DECL_IMPORT
108 #endif
109 
110 #include <QObject>
111 
112 class ECmdLineOption;
113 class EAboutPerson;
114 class ESetupWizardObject;
116 class ESpreadsheet;
117 
121 namespace EngSaS {
128  };
129 
130  Q_FLAGS(AvailableActions)
136  {
137  FileNew = 0x0001,
138  FileOpen = 0x0002,
139  FileSave = 0x0004,
140  FileSaveAs = 0x0008,
141  FilePrint = 0x0016,
142  EditUndo = 0x0032,
143  EditRedo = 0x0064,
144  EditCut = 0x0128,
145  EditCopy = 0x0256,
146  EditPaste = 0x0512,
147  ViewReload = 0x1024
148  };
149  Q_DECLARE_FLAGS(AvailableActions, AvailableAction)
150  Q_ENUMS(AvailableAction)
151 
160  typedef QList<EAboutPerson*> AboutPersons;
172  typedef QList<ESpreadsheet*> Spreadsheets;
173 
177  namespace SQL {
184  };
185  };
186 };
187 
188 Q_DECLARE_OPERATORS_FOR_FLAGS(EngSaS::AvailableActions)
189 
190 #endif // EGLOBAL_H