freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2-demos] master 09aada0 4/7: [ftinspect] Add signal for showPoi


From: Werner LEMBERG
Subject: [freetype2-demos] master 09aada0 4/7: [ftinspect] Add signal for showPointsCheckBox.
Date: Sun, 01 May 2016 08:05:41 +0000

branch: master
commit 09aada0a4a45e2c81aa25a3823f8a92b2c9d07f8
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>

    [ftinspect] Add signal for showPointsCheckBox.
    
    * src/ftinspect.cpp (MainGUI::checkShowPoints): New function.
    (MainGUI::createConnections): Add signal.
    
    * src/ftinspect.h: Updated.
---
 ChangeLog         |   15 ++++++++++++---
 src/ftinspect.cpp |   13 +++++++++++++
 src/ftinspect.h   |    1 +
 3 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3dbb3da..356e27f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,15 @@
 2016-05-01  Werner Lemberg  <address@hidden>
 
-       [ftinspect] Add signal for AntiAliasingComboBox.
+       [ftinspect] Add signal for showPointsCheckBox.
+
+       * src/ftinspect.cpp (MainGUI::checkShowPoints): New function.
+       (MainGUI::createConnections): Add signal.
+
+       * src/ftinspect.h: Updated.
+
+2016-05-01  Werner Lemberg  <address@hidden>
+
+       [ftinspect] Add signal for antiAliasingComboBox.
 
        * src/ftinspect.cpp (MainGUI::checkAntiAliasing): New function.
        (MainGUI::createConnections): Add signal.
@@ -9,7 +18,7 @@
 
 2016-05-01  Werner Lemberg  <address@hidden>
 
-       [ftinspect] Refine signal for HintingModeComboBox.
+       [ftinspect] Refine signal for hintingModeComboBox.
 
        * src/ftinspect.cpp (MainGUI::checkHintingMode): Grey out `slight'
        hinting item in antiAliasingComboBox if not in auto-hinting mode.
@@ -20,7 +29,7 @@
 
 2016-05-01  Werner Lemberg  <address@hidden>
 
-       [ftinspect] Add signal for HintingModeComboBox.
+       [ftinspect] Add signal for hintingModeComboBox.
 
        Also fix typo `hortizontal' -> `horizontal'.
 
diff --git a/src/ftinspect.cpp b/src/ftinspect.cpp
index aa84bdd..1689cbd 100644
--- a/src/ftinspect.cpp
+++ b/src/ftinspect.cpp
@@ -122,6 +122,16 @@ MainGUI::checkAntiAliasing(int index)
 }
 
 
+void
+MainGUI::checkShowPoints()
+{
+  if (showPointsCheckBox->isChecked())
+    showPointIndicesCheckBox->setEnabled(true);
+  else
+    showPointIndicesCheckBox->setEnabled(false);
+}
+
+
 // XXX distances are specified in pixels,
 //     making the layout dependent on the output device resolution
 void
@@ -384,6 +394,9 @@ MainGUI::createConnections()
           SLOT(checkHintingMode(int)));
   connect(antiAliasingComboBox, SIGNAL(currentIndexChanged(int)), this,
           SLOT(checkAntiAliasing(int)));
+
+  connect(showPointsCheckBox, SIGNAL(clicked()), this,
+          SLOT(checkShowPoints()));
 }
 
 
diff --git a/src/ftinspect.h b/src/ftinspect.h
index 5ff6e57..1154566 100644
--- a/src/ftinspect.h
+++ b/src/ftinspect.h
@@ -48,6 +48,7 @@ private slots:
   void about();
   void checkAntiAliasing(int);
   void checkHintingMode(int);
+  void checkShowPoints();
 
 private:
   QAction *aboutAct;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]