App: Prepare for clang-format

This commit is contained in:
wmayer
2024-06-03 10:34:17 +02:00
committed by wwmayer
parent fd7f6039b6
commit 6fb7c51c18
15 changed files with 55 additions and 11 deletions

View File

@@ -136,13 +136,16 @@ void Origin::setupObject () {
const char *role;
const QString label;
Base::Rotation rot;
} setupData [] = {
}
setupData [] = {
// clang-format off
{App::Line::getClassTypeId(), AxisRoles[0], tr("X-axis"), Base::Rotation()},
{App::Line::getClassTypeId(), AxisRoles[1], tr("Y-axis"), Base::Rotation(Base::Vector3d(1,1,1), M_PI*2/3)},
{App::Line::getClassTypeId(), AxisRoles[2], tr("Z-axis"), Base::Rotation(Base::Vector3d(1,-1,1), M_PI*2/3)},
{App::Plane::getClassTypeId(), PlaneRoles[0], tr("XY-plane"), Base::Rotation()},
{App::Plane::getClassTypeId(), PlaneRoles[1], tr("XZ-plane"), Base::Rotation(1.0, 0.0, 0.0, 1.0 )},
{App::Plane::getClassTypeId(), PlaneRoles[2], tr("YZ-plane"), Base::Rotation(Base::Vector3d(1,1,1), M_PI*2/3)}
// clang-format on
};
App::Document *doc = getDocument ();