[fondue-commits] [SCM] Fondue Font Editor branch, master, updated. bfebb8bd678db80c937a21dd2aaa09d9b8a44a17
Eugeniy Meshcheryakov
eugen at debian.org
Sun Nov 9 21:03:29 UTC 2008
The following commit has been merged in the master branch:
commit 2b019f3aaef47d1564cb81f83512dd4563a11b3e
Author: Eugeniy Meshcheryakov <eugen at debian.org>
Date: Tue Sep 30 17:03:08 2008 +0200
add functions for removing contours
diff --git a/nongui/glyph.cxx b/nongui/glyph.cxx
index 08915c6..410f490 100644
--- a/nongui/glyph.cxx
+++ b/nongui/glyph.cxx
@@ -386,3 +386,15 @@ void Glyph::contourBecomeEmpty()
contour->deleteLater();
emit contentRemoved(id);
}
+
+void Glyph::removeContour(GlyphContour *contour)
+{
+ Q_ASSERT(contour);
+ int id = m_content.indexOf(contour);
+ Q_ASSERT(id != -1);
+
+ emit contentAboutToBeRemoved(id);
+ m_content.removeAt(id);
+ contour->deleteLater();
+ emit contentRemoved(id);
+}
diff --git a/nongui/glyph.h b/nongui/glyph.h
index 0f59954..ecbe289 100644
--- a/nongui/glyph.h
+++ b/nongui/glyph.h
@@ -42,6 +42,8 @@ public:
Q_INVOKABLE void appendReference(GlyphReference *ref);
Q_INVOKABLE void appendContour(GlyphContour *contour);
+ void removeContour(GlyphContour *contour);
+
bool setGlyphName(const QString &name);
QString glyphName() const;
--
Fondue Font Editor
More information about the fondue-commits
mailing list