Files
create/src/Mod/TechDraw/Gui/PreferencesGui.h
Chris Hennes d41114589c Merge pull request #19411 from benj5378/enums2
TechDraw: hard type enums, part 2
2025-03-03 10:37:21 -06:00

102 lines
3.3 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 PreferencesGui_h_
#define PreferencesGui_h_
#include <Mod/TechDraw/TechDrawGlobal.h>
#include <QColor>
class QColor;
class QString;
namespace Base
{
class Color;
}
class QFont;
class QString;
#include <Mod/TechDraw/App/Preferences.h>
namespace TechDraw{
enum class ArrowType : int;
}
namespace TechDrawGui
{
//getters for parameters used in multiple places.
class TechDrawGuiExport PreferencesGui {
public:
static QFont labelFontQFont();
static int labelFontSizePX();
static int dimFontSizePX();
static QColor normalQColor();
static QColor selectQColor();
static QColor preselectQColor();
static Base::Color sectionLineColor();
static QColor sectionLineQColor();
static Base::Color centerColor();
static QColor centerQColor();
static QColor vertexQColor();
static Base::Color leaderColor();
static QColor leaderQColor();
static Base::Color dimColor();
static QColor dimQColor();
static Base::Color pageColor();
static QColor pageQColor();
static Base::Color breaklineColor();
static QColor breaklineQColor();
static TechDraw::ArrowType dimArrowStyle();
static double dimArrowSize();
static double edgeFuzz();
static QString weldingDirectory();
static bool showGrid();
static Base::Color gridColor();
static QColor gridQColor();
static double gridSpacing();
static bool multiSelection();
static QColor getAccessibleQColor(QColor orig);
static QColor lightTextQColor();
static QColor reverseColor(QColor orig);
static QColor lightenColor(QColor orig);
static double templateClickBoxSize();
static QColor templateClickBoxColor();
static int get3dMarkerSize();
};
} //end namespace TechDrawGui
#endif