mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
Remove obsolete method
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3522 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1427,21 +1427,6 @@ bool QETProject::titleBlockTemplateCollectionWasModified() {
|
|||||||
return(titleblocks_.templates().count());
|
return(titleblocks_.templates().count());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
Cette methode sert a reperer un projet vide, c-a-d un projet identique a ce
|
|
||||||
que l'on obtient en faisant Fichier > Nouveau.
|
|
||||||
@return true si les schemas de ce projet ont ete modifies
|
|
||||||
Concretement, il doit y avoir exactement un schema, dont la pile
|
|
||||||
d'annulation est "clean".
|
|
||||||
*/
|
|
||||||
bool QETProject::diagramsWereModified() {
|
|
||||||
// il doit y avoir exactement un schema
|
|
||||||
if (diagrams_.count() != 1) return(true);
|
|
||||||
|
|
||||||
// dont la pile d'annulation est "clean"
|
|
||||||
return(!(diagrams_[0] -> undoStack().isClean() && !diagrams_[0] -> wasWritten()));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return the project-wide properties made available to child diagrams.
|
@return the project-wide properties made available to child diagrams.
|
||||||
*/
|
*/
|
||||||
@@ -1467,11 +1452,14 @@ void QETProject::setProjectProperties(const DiagramContext &context) {
|
|||||||
@see diagramsWereModified(), embeddedCollectionWasModified()
|
@see diagramsWereModified(), embeddedCollectionWasModified()
|
||||||
*/
|
*/
|
||||||
bool QETProject::projectWasModified() {
|
bool QETProject::projectWasModified() {
|
||||||
if (projectOptionsWereModified()) return(true);
|
|
||||||
if (diagramsWereModified()) return(true);
|
|
||||||
if (embeddedCollectionWasModified()) return(true);
|
|
||||||
if (titleBlockTemplateCollectionWasModified()) return(true);
|
|
||||||
|
|
||||||
|
if ( projectOptionsWereModified() ||
|
||||||
|
!undo_stack_ -> isClean() ||
|
||||||
|
embeddedCollectionWasModified() ||
|
||||||
|
titleBlockTemplateCollectionWasModified() )
|
||||||
|
return(true);
|
||||||
|
|
||||||
|
else
|
||||||
return(false);
|
return(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -137,7 +137,6 @@ class QETProject : public QObject {
|
|||||||
bool projectOptionsWereModified();
|
bool projectOptionsWereModified();
|
||||||
bool embeddedCollectionWasModified();
|
bool embeddedCollectionWasModified();
|
||||||
bool titleBlockTemplateCollectionWasModified();
|
bool titleBlockTemplateCollectionWasModified();
|
||||||
bool diagramsWereModified();
|
|
||||||
DiagramContext projectProperties();
|
DiagramContext projectProperties();
|
||||||
void setProjectProperties(const DiagramContext &);
|
void setProjectProperties(const DiagramContext &);
|
||||||
QUndoStack* undoStack() {return undo_stack_;}
|
QUndoStack* undoStack() {return undo_stack_;}
|
||||||
|
|||||||
Reference in New Issue
Block a user