[fondue-commits] [SCM] Fondue Font Editor branch, master, updated. 333e3ebf439fbb46c17eec9b008f734a92c1a1ac
Eugeniy Meshcheryakov
eugen at debian.org
Tue Aug 12 14:57:13 UTC 2008
The following commit has been merged in the master branch:
commit c4f3c5ddfdd486b32d57247f44e959bebdb12942
Author: Eugeniy Meshcheryakov <eugen at debian.org>
Date: Tue Aug 12 16:50:41 2008 +0200
document some more classes
diff --git a/gui/glyphpropertieseditor.cxx b/gui/glyphpropertieseditor.cxx
index 9ce2c36..08dc3de 100644
--- a/gui/glyphpropertieseditor.cxx
+++ b/gui/glyphpropertieseditor.cxx
@@ -28,6 +28,16 @@
#include <QVBoxLayout>
#include "unicodevalueeditor.h"
+/** \class GlyphPropertiesEditor glyphpropertieseditor.h
+ * Glyph properties editor dialog.
+ * \ingroup gui
+ */
+
+/**
+ * Contructs GlyphPropertiesEditor for glyphs from given \a model.
+ * Initially shows properties of glyph with given \a index.
+ * Editor will be destroyed on close.
+ */
GlyphPropertiesEditor::GlyphPropertiesEditor(QAbstractItemModel *model, const QModelIndex &item, QWidget *parent) : QDialog(parent)
{
Q_ASSERT(model);
@@ -36,7 +46,7 @@ GlyphPropertiesEditor::GlyphPropertiesEditor(QAbstractItemModel *model, const QM
Qt::WindowFlags flags = windowFlags();
setWindowFlags(flags & ~Qt::Dialog | Qt::Window);
-
+
// Qt does not like this on non-top-level windows
setAttribute(Qt::WA_QuitOnClose, false);
diff --git a/gui/glyphpropertieseditor.h b/gui/glyphpropertieseditor.h
index 05140b5..21cbcf2 100644
--- a/gui/glyphpropertieseditor.h
+++ b/gui/glyphpropertieseditor.h
@@ -28,7 +28,7 @@ class GlyphPropertiesEditor : public QDialog
Q_OBJECT
public:
GlyphPropertiesEditor(QAbstractItemModel *model, const QModelIndex &item, QWidget *parent = 0);
-public slots:
+private slots:
void accept();
void next();
void previous();
diff --git a/gui/mainwindow.cxx b/gui/mainwindow.cxx
index f4a42b7..2bd97d9 100644
--- a/gui/mainwindow.cxx
+++ b/gui/mainwindow.cxx
@@ -43,6 +43,10 @@
#include "config.h"
+/**
+ * \defgroup gui GUI classes
+ */
+
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent),
m_doc(0), model(0), unicodeProxy(0)
{
diff --git a/gui/ttieditor.cxx b/gui/ttieditor.cxx
index f56196d..de8733f 100644
--- a/gui/ttieditor.cxx
+++ b/gui/ttieditor.cxx
@@ -25,6 +25,15 @@
#include "ttfencode.h"
#include <QMessageBox>
+/** \class TTIEditor ttieditor.h
+ * TrueType instructions editor with syntax highlighting.
+ * \ingroup gui
+ */
+
+/**
+ * Construct TTIEditor using given \a model, \a item and \a parent widget.
+ * Editor will be destoroyed on close.
+ */
TTIEditor::TTIEditor(QAbstractItemModel *model, const QModelIndex &item, QWidget *parent) : QDialog(parent)
{
Q_ASSERT(model);
@@ -33,7 +42,7 @@ TTIEditor::TTIEditor(QAbstractItemModel *model, const QModelIndex &item, QWidget
setWindowFlags(flags & ~Qt::Dialog | Qt::Window);
setAttribute(Qt::WA_DeleteOnClose);
-
+
// Qt does not like this on non-top-level windows
setAttribute(Qt::WA_QuitOnClose, false);
diff --git a/gui/ttieditor.h b/gui/ttieditor.h
index 1f7adff..5efa90b 100644
--- a/gui/ttieditor.h
+++ b/gui/ttieditor.h
@@ -30,7 +30,7 @@ class TTIEditor : public QDialog
public:
TTIEditor(QAbstractItemModel *model, const QModelIndex &item, QWidget *parent = 0);
-protected slots:
+private slots:
void accept();
void buttonClicked(QAbstractButton *button);
void checkInstructions();
diff --git a/gui/ttihighlighter.cxx b/gui/ttihighlighter.cxx
index a9e4bc5..3b78c91 100644
--- a/gui/ttihighlighter.cxx
+++ b/gui/ttihighlighter.cxx
@@ -17,6 +17,14 @@
#include <QRegExp>
#include <QDebug>
+/** \class TTIHighlighter ttihighlighter.h
+ * TrueType instructions hightlighter.
+ * \ingroup gui
+ */
+
+/**
+ * Construct TTIHighlighter for given \a parent document.
+ */
TTIHighlighter::TTIHighlighter(QTextDocument *parent) : QSyntaxHighlighter(parent)
{
HighlightingRule rule;
@@ -41,6 +49,9 @@ TTIHighlighter::TTIHighlighter(QTextDocument *parent) : QSyntaxHighlighter(paren
highlightingRules.append(rule);
}
+/**
+ * Highlight the given \a text block.
+ */
void TTIHighlighter::highlightBlock(const QString &text)
{
foreach (const HighlightingRule &rule, highlightingRules) {
--
Fondue Font Editor
More information about the fondue-commits
mailing list