+ fix whitespaces
This commit is contained in:
parent
cd4952dee4
commit
24b71377e1
|
@ -29,10 +29,11 @@
|
||||||
|
|
||||||
namespace Fem {
|
namespace Fem {
|
||||||
|
|
||||||
class AppFemExport ConstraintPressure : public Fem::Constraint {
|
class AppFemExport ConstraintPressure : public Fem::Constraint
|
||||||
|
{
|
||||||
PROPERTY_HEADER(Fem::ConstraintPressure);
|
PROPERTY_HEADER(Fem::ConstraintPressure);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ConstraintPressure(void);
|
ConstraintPressure(void);
|
||||||
|
|
||||||
App::PropertyFloat Pressure;
|
App::PropertyFloat Pressure;
|
||||||
|
@ -46,9 +47,9 @@ namespace Fem {
|
||||||
/// returns the type name of the ViewProvider
|
/// returns the type name of the ViewProvider
|
||||||
const char* getViewProviderName(void) const;
|
const char* getViewProviderName(void) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void onChanged(const App::Property* prop);
|
virtual void onChanged(const App::Property* prop);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -148,13 +148,15 @@ void TaskFemConstraintPressure::onSelectionChanged(const Gui::SelectionChanges&
|
||||||
}
|
}
|
||||||
// Avoid duplicates
|
// Avoid duplicates
|
||||||
std::size_t pos = 0;
|
std::size_t pos = 0;
|
||||||
for (; pos < Objects.size(); pos++)
|
for (; pos < Objects.size(); pos++) {
|
||||||
if (obj == Objects[pos])
|
if (obj == Objects[pos])
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (pos != Objects.size())
|
if (pos != Objects.size()) {
|
||||||
if (subName == SubElements[pos])
|
if (subName == SubElements[pos])
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// add the new reference
|
// add the new reference
|
||||||
Objects.push_back(obj);
|
Objects.push_back(obj);
|
||||||
|
|
|
@ -34,45 +34,43 @@
|
||||||
|
|
||||||
class Ui_TaskFemConstraintPressure;
|
class Ui_TaskFemConstraintPressure;
|
||||||
|
|
||||||
namespace App {
|
|
||||||
class Property;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Gui {
|
|
||||||
class ViewProvider;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace FemGui {
|
namespace FemGui {
|
||||||
class TaskFemConstraintPressure : public TaskFemConstraint {
|
class TaskFemConstraintPressure : public TaskFemConstraint
|
||||||
Q_OBJECT public:
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
TaskFemConstraintPressure(ViewProviderFemConstraintPressure *ConstraintView,QWidget *parent = 0);
|
TaskFemConstraintPressure(ViewProviderFemConstraintPressure *ConstraintView,QWidget *parent = 0);
|
||||||
virtual ~TaskFemConstraintPressure();
|
virtual ~TaskFemConstraintPressure();
|
||||||
double getPressure(void) const;
|
double getPressure(void) const;
|
||||||
virtual const std::string getReferences() const;
|
virtual const std::string getReferences() const;
|
||||||
bool getReverse(void) const;
|
bool getReverse(void) const;
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void onReferenceDeleted(void);
|
void onReferenceDeleted(void);
|
||||||
void onPressureChanged(const Base::Quantity & f);
|
void onPressureChanged(const Base::Quantity & f);
|
||||||
void onCheckReverse(bool);
|
void onCheckReverse(bool);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void changeEvent(QEvent *e);
|
virtual void changeEvent(QEvent *e);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void onSelectionChanged(const Gui::SelectionChanges& msg);
|
virtual void onSelectionChanged(const Gui::SelectionChanges& msg);
|
||||||
void updateUI();
|
void updateUI();
|
||||||
Ui_TaskFemConstraintPressure* ui;
|
Ui_TaskFemConstraintPressure* ui;
|
||||||
};
|
};
|
||||||
|
|
||||||
class TaskDlgFemConstraintPressure : public TaskDlgFemConstraint {
|
class TaskDlgFemConstraintPressure : public TaskDlgFemConstraint
|
||||||
Q_OBJECT public:
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
TaskDlgFemConstraintPressure(ViewProviderFemConstraintPressure *ConstraintView);
|
TaskDlgFemConstraintPressure(ViewProviderFemConstraintPressure *ConstraintView);
|
||||||
virtual void open();
|
virtual void open();
|
||||||
virtual bool accept();
|
virtual bool accept();
|
||||||
virtual bool reject();
|
virtual bool reject();
|
||||||
|
};
|
||||||
|
|
||||||
};
|
|
||||||
} //namespace FemGui
|
} //namespace FemGui
|
||||||
|
|
||||||
#endif // GUI_TASKVIEW_TaskFemConstraintPressure_H
|
#endif // GUI_TASKVIEW_TaskFemConstraintPressure_H
|
||||||
|
|
|
@ -28,25 +28,20 @@
|
||||||
#include <TopoDS_Shape.hxx>
|
#include <TopoDS_Shape.hxx>
|
||||||
#include "ViewProviderFemConstraint.h"
|
#include "ViewProviderFemConstraint.h"
|
||||||
|
|
||||||
namespace Gui {
|
|
||||||
class View3DInventorViewer;
|
|
||||||
namespace TaskView {
|
|
||||||
class TaskDialog;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace FemGui {
|
namespace FemGui {
|
||||||
class FemGuiExport ViewProviderFemConstraintPressure : public FemGui::ViewProviderFemConstraint {
|
class FemGuiExport ViewProviderFemConstraintPressure : public FemGui::ViewProviderFemConstraint
|
||||||
|
{
|
||||||
PROPERTY_HEADER(FemGui::ViewProviderFemConstraintPressure);
|
PROPERTY_HEADER(FemGui::ViewProviderFemConstraintPressure);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ViewProviderFemConstraintPressure();
|
ViewProviderFemConstraintPressure();
|
||||||
virtual ~ViewProviderFemConstraintPressure();
|
virtual ~ViewProviderFemConstraintPressure();
|
||||||
virtual void updateData(const App::Property*);
|
virtual void updateData(const App::Property*);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool setEdit(int ModNum);
|
virtual bool setEdit(int ModNum);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // GUI_VIEWPROVIDERFEMCONSTRAINTPRESSURE_H
|
#endif // GUI_VIEWPROVIDERFEMCONSTRAINTPRESSURE_H
|
||||||
|
|
Loading…
Reference in New Issue
Block a user