All: Reformat according to new standard
This commit is contained in:
committed by
Kacper Donat
parent
eafd18dac0
commit
25c3ba7338
@@ -21,7 +21,6 @@
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <Gui/CommandT.h>
|
||||
#include <Mod/PartDesign/App/FeatureBase.h>
|
||||
@@ -31,7 +30,7 @@
|
||||
|
||||
using namespace PartDesignGui;
|
||||
|
||||
PROPERTY_SOURCE(PartDesignGui::ViewProviderBase,PartDesignGui::ViewProvider)
|
||||
PROPERTY_SOURCE(PartDesignGui::ViewProviderBase, PartDesignGui::ViewProvider)
|
||||
|
||||
ViewProviderBase::ViewProviderBase()
|
||||
{
|
||||
@@ -45,9 +44,9 @@ bool ViewProviderBase::doubleClicked()
|
||||
// If the Placement is mutable then open the transform panel.
|
||||
// If the Placement can't be modified then just do nothing on double-click.
|
||||
PartDesign::FeatureBase* base = getObject<PartDesign::FeatureBase>();
|
||||
if (!base->Placement.testStatus(App::Property::Immutable) &&
|
||||
!base->Placement.testStatus(App::Property::ReadOnly) &&
|
||||
!base->Placement.testStatus(App::Property::Hidden)) {
|
||||
if (!base->Placement.testStatus(App::Property::Immutable)
|
||||
&& !base->Placement.testStatus(App::Property::ReadOnly)
|
||||
&& !base->Placement.testStatus(App::Property::Hidden)) {
|
||||
|
||||
try {
|
||||
std::string Msg("Edit ");
|
||||
@@ -68,9 +67,9 @@ void ViewProviderBase::setupContextMenu(QMenu* menu, QObject* receiver, const ch
|
||||
{
|
||||
// If the Placement is mutable then show the context-menu of the base class.
|
||||
PartDesign::FeatureBase* base = getObject<PartDesign::FeatureBase>();
|
||||
if (!base->Placement.testStatus(App::Property::Immutable) &&
|
||||
!base->Placement.testStatus(App::Property::ReadOnly) &&
|
||||
!base->Placement.testStatus(App::Property::Hidden)) {
|
||||
if (!base->Placement.testStatus(App::Property::Immutable)
|
||||
&& !base->Placement.testStatus(App::Property::ReadOnly)
|
||||
&& !base->Placement.testStatus(App::Property::Hidden)) {
|
||||
|
||||
// Handling of the edge case where some base features are outside the body
|
||||
// that should not happen, but it was possible to do in older FreeCAD versions.
|
||||
@@ -94,9 +93,9 @@ Gui::ViewProvider* ViewProviderBase::startEditing(int ModNum)
|
||||
bool ViewProviderBase::setEdit(int ModNum)
|
||||
{
|
||||
PartDesign::FeatureBase* base = getObject<PartDesign::FeatureBase>();
|
||||
if (!base->Placement.testStatus(App::Property::Immutable) &&
|
||||
!base->Placement.testStatus(App::Property::ReadOnly) &&
|
||||
!base->Placement.testStatus(App::Property::Hidden)) {
|
||||
if (!base->Placement.testStatus(App::Property::Immutable)
|
||||
&& !base->Placement.testStatus(App::Property::ReadOnly)
|
||||
&& !base->Placement.testStatus(App::Property::Hidden)) {
|
||||
|
||||
// same as in setupContextMenu
|
||||
if (!getBodyViewProvider()) {
|
||||
|
||||
Reference in New Issue
Block a user