Mod: redundant void 2
This commit is contained in:
@@ -72,7 +72,7 @@ App::PropertyFloatConstraint::Constraints DrawView::scaleRange = {Precision::Con
|
||||
|
||||
PROPERTY_SOURCE(TechDraw::DrawView, App::DocumentObject)
|
||||
|
||||
DrawView::DrawView(void):
|
||||
DrawView::DrawView():
|
||||
autoPos(true),
|
||||
mouseMove(false)
|
||||
{
|
||||
@@ -96,7 +96,7 @@ DrawView::~DrawView()
|
||||
{
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *DrawView::execute(void)
|
||||
App::DocumentObjectExecReturn *DrawView::execute()
|
||||
{
|
||||
// Base::Console().Message("DV::execute() - %s touched: %d\n", getNameInDocument(), isTouched());
|
||||
if (!findParentPage()) {
|
||||
@@ -109,7 +109,7 @@ App::DocumentObjectExecReturn *DrawView::execute(void)
|
||||
return App::DocumentObject::execute();
|
||||
}
|
||||
|
||||
void DrawView::checkScale(void)
|
||||
void DrawView::checkScale()
|
||||
{
|
||||
TechDraw::DrawPage *page = findParentPage();
|
||||
if(page) {
|
||||
@@ -164,18 +164,18 @@ void DrawView::onChanged(const App::Property* prop)
|
||||
App::DocumentObject::onChanged(prop);
|
||||
}
|
||||
|
||||
bool DrawView::isLocked(void) const
|
||||
bool DrawView::isLocked() const
|
||||
{
|
||||
return LockPosition.getValue();
|
||||
}
|
||||
|
||||
bool DrawView::showLock(void) const
|
||||
bool DrawView::showLock() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//override this for View inside a group (ex DPGI in DPG)
|
||||
void DrawView::handleXYLock(void)
|
||||
void DrawView::handleXYLock()
|
||||
{
|
||||
if (isLocked()) {
|
||||
if (!X.testStatus(App::Property::ReadOnly)) {
|
||||
@@ -335,7 +335,7 @@ bool DrawView::isInClip()
|
||||
return false;
|
||||
}
|
||||
|
||||
DrawViewClip* DrawView::getClipGroup(void)
|
||||
DrawViewClip* DrawView::getClipGroup()
|
||||
{
|
||||
std::vector<App::DocumentObject*> parent = getInList();
|
||||
App::DocumentObject* obj = nullptr;
|
||||
@@ -351,7 +351,7 @@ DrawViewClip* DrawView::getClipGroup(void)
|
||||
return result;
|
||||
}
|
||||
|
||||
double DrawView::autoScale(void) const
|
||||
double DrawView::autoScale() const
|
||||
{
|
||||
auto page = findParentPage();
|
||||
double w = page->getPageWidth();
|
||||
@@ -378,7 +378,7 @@ double DrawView::autoScale(double pw, double ph) const
|
||||
return sensibleScale;
|
||||
}
|
||||
|
||||
bool DrawView::checkFit(void) const
|
||||
bool DrawView::checkFit() const
|
||||
{
|
||||
auto page = findParentPage();
|
||||
return checkFit(page);
|
||||
@@ -424,7 +424,7 @@ void DrawView::setPosition(double x, double y, bool force)
|
||||
}
|
||||
}
|
||||
|
||||
double DrawView::getScale(void) const
|
||||
double DrawView::getScale() const
|
||||
{
|
||||
auto result = Scale.getValue();
|
||||
if (ScaleType.isValue("Page")) {
|
||||
@@ -531,7 +531,7 @@ void DrawView::handleChangedPropertyType(
|
||||
}
|
||||
}
|
||||
|
||||
bool DrawView::keepUpdated(void)
|
||||
bool DrawView::keepUpdated()
|
||||
{
|
||||
// Base::Console().Message("DV::keepUpdated() - %s\n", getNameInDocument());
|
||||
bool result = false;
|
||||
@@ -553,7 +553,7 @@ void DrawView::setScaleAttribute()
|
||||
}
|
||||
}
|
||||
|
||||
int DrawView::prefScaleType(void)
|
||||
int DrawView::prefScaleType()
|
||||
{
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
|
||||
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/General");
|
||||
@@ -561,7 +561,7 @@ int DrawView::prefScaleType(void)
|
||||
return result;
|
||||
}
|
||||
|
||||
double DrawView::prefScale(void)
|
||||
double DrawView::prefScale()
|
||||
{
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
|
||||
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/General");
|
||||
@@ -575,13 +575,13 @@ double DrawView::prefScale(void)
|
||||
return result;
|
||||
}
|
||||
|
||||
void DrawView::requestPaint(void)
|
||||
void DrawView::requestPaint()
|
||||
{
|
||||
// Base::Console().Message("DV::requestPaint() - %s\n", getNameInDocument());
|
||||
signalGuiPaint(this);
|
||||
}
|
||||
|
||||
PyObject *DrawView::getPyObject(void)
|
||||
PyObject *DrawView::getPyObject()
|
||||
{
|
||||
if (PythonObject.is(Py::_None())) {
|
||||
// ref counter is set to 1
|
||||
@@ -595,7 +595,7 @@ PyObject *DrawView::getPyObject(void)
|
||||
namespace App {
|
||||
/// @cond DOXERR
|
||||
PROPERTY_SOURCE_TEMPLATE(TechDraw::DrawViewPython, TechDraw::DrawView)
|
||||
template<> const char* TechDraw::DrawViewPython::getViewProviderName(void) const {
|
||||
template<> const char* TechDraw::DrawViewPython::getViewProviderName() const {
|
||||
return "TechDrawGui::ViewProviderDrawingView";
|
||||
}
|
||||
/// @endcond
|
||||
|
||||
Reference in New Issue
Block a user