- Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.
61 lines
2.2 KiB
C++
61 lines
2.2 KiB
C++
/***************************************************************************
|
|
* Copyright (c) 2020 WandererFan <wandererfan@gmail.com> *
|
|
* *
|
|
* This file is part of the FreeCAD CAx development system. *
|
|
* *
|
|
* This library is free software; you can redistribute it and/or *
|
|
* modify it under the terms of the GNU Library General Public *
|
|
* License as published by the Free Software Foundation; either *
|
|
* version 2 of the License, or (at your option) any later version. *
|
|
* *
|
|
* This library is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU Library General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU Library General Public *
|
|
* License along with this library; see the file COPYING.LIB. If not, *
|
|
* write to the Free Software Foundation, Inc., 59 Temple Place, *
|
|
* Suite 330, Boston, MA 02111-1307, USA *
|
|
* *
|
|
***************************************************************************/
|
|
|
|
#ifndef BALLOONENUMS_H_
|
|
#define BALLOONENUMS_H_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <QCoreApplication>
|
|
|
|
#include <Mod/TechDraw/TechDrawGlobal.h>
|
|
|
|
|
|
namespace TechDraw
|
|
{
|
|
|
|
enum class BalloonType {
|
|
Circular = 0,
|
|
None,
|
|
Triangle,
|
|
Inspection,
|
|
Hexagon,
|
|
Square,
|
|
Rectangle,
|
|
Line
|
|
};
|
|
|
|
class TechDrawExport BalloonPropEnum {
|
|
Q_DECLARE_TR_FUNCTIONS(TechDraw::BalloonPropEnum)
|
|
|
|
public:
|
|
static const char* BalloonTypeEnums[];
|
|
static const int BalloonCount;
|
|
static const std::vector<std::string> BalloonTypeIcons;
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
} //end namespace TechDraw
|
|
#endif
|