+ fix whitespaces

This commit is contained in:
wmayer 2015-05-26 17:55:38 +02:00
parent cd4952dee4
commit 24b71377e1
6 changed files with 314 additions and 318 deletions

View File

@ -29,10 +29,11 @@
namespace Fem {
class AppFemExport ConstraintPressure : public Fem::Constraint {
class AppFemExport ConstraintPressure : public Fem::Constraint
{
PROPERTY_HEADER(Fem::ConstraintPressure);
public:
public:
ConstraintPressure(void);
App::PropertyFloat Pressure;
@ -46,9 +47,9 @@ namespace Fem {
/// returns the type name of the ViewProvider
const char* getViewProviderName(void) const;
protected:
protected:
virtual void onChanged(const App::Property* prop);
};
};
}

View File

@ -148,13 +148,15 @@ void TaskFemConstraintPressure::onSelectionChanged(const Gui::SelectionChanges&
}
// Avoid duplicates
std::size_t pos = 0;
for (; pos < Objects.size(); pos++)
for (; pos < Objects.size(); pos++) {
if (obj == Objects[pos])
break;
}
if (pos != Objects.size())
if (pos != Objects.size()) {
if (subName == SubElements[pos])
return;
}
// add the new reference
Objects.push_back(obj);

View File

@ -34,45 +34,43 @@
class Ui_TaskFemConstraintPressure;
namespace App {
class Property;
}
namespace Gui {
class ViewProvider;
}
namespace FemGui {
class TaskFemConstraintPressure : public TaskFemConstraint {
Q_OBJECT public:
class TaskFemConstraintPressure : public TaskFemConstraint
{
Q_OBJECT
public:
TaskFemConstraintPressure(ViewProviderFemConstraintPressure *ConstraintView,QWidget *parent = 0);
virtual ~TaskFemConstraintPressure();
double getPressure(void) const;
virtual const std::string getReferences() const;
bool getReverse(void) const;
private Q_SLOTS:
private Q_SLOTS:
void onReferenceDeleted(void);
void onPressureChanged(const Base::Quantity & f);
void onCheckReverse(bool);
protected:
protected:
virtual void changeEvent(QEvent *e);
private:
private:
virtual void onSelectionChanged(const Gui::SelectionChanges& msg);
void updateUI();
Ui_TaskFemConstraintPressure* ui;
};
};
class TaskDlgFemConstraintPressure : public TaskDlgFemConstraint {
Q_OBJECT public:
class TaskDlgFemConstraintPressure : public TaskDlgFemConstraint
{
Q_OBJECT
public:
TaskDlgFemConstraintPressure(ViewProviderFemConstraintPressure *ConstraintView);
virtual void open();
virtual bool accept();
virtual bool reject();
};
};
} //namespace FemGui
#endif // GUI_TASKVIEW_TaskFemConstraintPressure_H

View File

@ -28,25 +28,20 @@
#include <TopoDS_Shape.hxx>
#include "ViewProviderFemConstraint.h"
namespace Gui {
class View3DInventorViewer;
namespace TaskView {
class TaskDialog;
}
}
namespace FemGui {
class FemGuiExport ViewProviderFemConstraintPressure : public FemGui::ViewProviderFemConstraint {
class FemGuiExport ViewProviderFemConstraintPressure : public FemGui::ViewProviderFemConstraint
{
PROPERTY_HEADER(FemGui::ViewProviderFemConstraintPressure);
public:
public:
ViewProviderFemConstraintPressure();
virtual ~ViewProviderFemConstraintPressure();
virtual void updateData(const App::Property*);
protected:
protected:
virtual bool setEdit(int ModNum);
};
};
}
#endif // GUI_VIEWPROVIDERFEMCONSTRAINTPRESSURE_H