+ reorder definition of 'Geometry' and 'Constraints' in SketchObject

+ fix typo
+ fix whitespace


git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5040 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer 2011-10-19 16:15:11 +00:00
parent 4804818cfc
commit 32ee057a41
3 changed files with 5 additions and 5 deletions

View File

@ -322,7 +322,7 @@ void Document::abortTransaction()
{
if (d->activeUndoTransaction) {
d->rollback = true;
// applieing the so far made changes
// applying the so far made changes
d->activeUndoTransaction->apply(*this,false);
d->rollback = false;

View File

@ -909,7 +909,7 @@ void StdCmdDelete::activated(int iMsg)
// go through all documents
const SelectionSingleton& rSel = Selection();
const std::vector<App::Document*> docs = App::GetApplication().getDocuments();
for ( std::vector<App::Document*>::const_iterator it = docs.begin(); it != docs.end(); ++it) {
for (std::vector<App::Document*>::const_iterator it = docs.begin(); it != docs.end(); ++it) {
Gui::Document* pGuiDoc = Gui::Application::Instance->getDocument(*it);
std::vector<Gui::SelectionObject> sel = rSel.getSelectionEx((*it)->getName());
if (!sel.empty()) {
@ -918,7 +918,7 @@ void StdCmdDelete::activated(int iMsg)
Gui::ViewProvider* vp = pGuiDoc->getViewProvider(ft->getObject());
if (vp) {
// ask the ViewProvider if its want to do some clean up
if(vp->onDelete(ft->getSubNames()) )
if (vp->onDelete(ft->getSubNames()))
doCommand(Doc,"App.getDocument(\"%s\").removeObject(\"%s\")"
,(*it)->getName(), ft->getFeatName());
}
@ -930,7 +930,7 @@ void StdCmdDelete::activated(int iMsg)
bool StdCmdDelete::isActive(void)
{
return Selection().getCompleteSelection().size() > 0;
return Selection().getCompleteSelection().size() > 0;
}
//===========================================================================

View File

@ -44,9 +44,9 @@ public:
SketchObject();
/// Property
Part ::PropertyGeometryList Geometry;
Sketcher::PropertyConstraintList Constraints;
App ::PropertyLinkSubList ExternalConstraints;
Part ::PropertyGeometryList Geometry;
/** @name methods overide Feature */
//@{
/// recalculate the Feature