[fondue-commits] [SCM] Fondue Font Editor branch, master, updated. 097b323e15f08ea5e8c1070c59c211e384fc8003
Eugeniy Meshcheryakov
eugen at debian.org
Thu May 15 18:58:03 UTC 2008
The following commit has been merged in the master branch:
commit 4921e9b890668c9c95e18bfbbdc4a4ea118d9ab3
Author: Eugeniy Meshcheryakov <eugen at debian.org>
Date: Thu May 15 17:06:43 2008 +0200
emit signals when adding contours to a glyph
diff --git a/nongui/glyph.cxx b/nongui/glyph.cxx
index 23d830d..4bf0791 100644
--- a/nongui/glyph.cxx
+++ b/nongui/glyph.cxx
@@ -59,6 +59,8 @@ void Glyph::appendContour(GlyphContour *contour)
contour->deleteLater();
return;
}
+ int contNo = m_content.size();
+ emit contourAboutToBeAdded(contNo);
contour->setParent(this);
m_content << contour;
@@ -68,6 +70,7 @@ void Glyph::appendContour(GlyphContour *contour)
connect(contour, SIGNAL(contourBecomeEmpty()), this, SLOT(contourBecomeEmpty()));
emit outlineChanged();
setChanged();
+ emit contourAdded(contNo);
}
template <typename T>
diff --git a/nongui/glyph.h b/nongui/glyph.h
index 357e8ab..7f5e5e2 100644
--- a/nongui/glyph.h
+++ b/nongui/glyph.h
@@ -86,6 +86,8 @@ signals:
// XXX also emit signals when content added
void contentAboutToBeRemoved(int id);
void contentRemoved(int id);
+ void contourAboutToBeAdded(int id);
+ void contourAdded(int id);
private slots:
void contourPointChanged();
void contourBecomeEmpty();
--
Fondue Font Editor
More information about the fondue-commits
mailing list