]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QParagraphDialog.C
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / QParagraphDialog.C
index 8cea66f6e5cea7d19f10c8d75f8c33aa925d3245..6aaa7d5582bd123be6d758b2be98770aa1056146 100644 (file)
@@ -1,13 +1,22 @@
 /**
  * \file QParagraphDialog.C
- * Copyright 2001 LyX Team
- * see the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author John Levon, moz@compsoc.man.ac.uk
- * \author Edwin Leuven, leuven@fee.uva.nl
+ * \author John Levon
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
  */
 
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include "QParagraphDialog.h"
+#include "QParagraph.h"
 
 #include <qlineedit.h>
 #include <qcombobox.h>
@@ -18,6 +27,7 @@
 
 using std::vector;
 
+
 QParagraphDialog::QParagraphDialog(QParagraph * form)
        : QParagraphDialogBase(0, 0, false, 0),
        form_(form)
@@ -28,13 +38,15 @@ QParagraphDialog::QParagraphDialog(QParagraph * form)
                form_, SLOT(slotApply()));
        connect(closePB, SIGNAL(clicked()),
                form_, SLOT(slotClose()));
-       
+
 
        linespacingValue->setValidator(new QDoubleValidator(linespacingValue));
-       valueAbove->setValidator(new QDoubleValidator(valueAbove));
-       valueBelow->setValidator(new QDoubleValidator(valueBelow));
+       // disabled to allow glue spacing for latexperts
+       //valueAbove->setValidator(new QDoubleValidator(valueAbove));
+       //valueBelow->setValidator(new QDoubleValidator(valueBelow));
 }
 
+
 void QParagraphDialog::closeEvent(QCloseEvent * e)
 {
        form_->slotWMHide();
@@ -47,14 +59,16 @@ void QParagraphDialog::change_adaptor()
        form_->changed();
 }
 
+
 void QParagraphDialog::enableAbove(int)
 {
        bool const enable = spacingAbove->currentItem()==6;
        valueAbove->setEnabled(enable);
        unitAbove->setEnabled(enable);
-       
+
 }
 
+
 void QParagraphDialog::enableBelow(int)
 {
        bool const enable = spacingBelow->currentItem()==6;
@@ -62,6 +76,7 @@ void QParagraphDialog::enableBelow(int)
        unitBelow->setEnabled(enable);
 }
 
+
 void QParagraphDialog::enableLinespacingValue(int)
 {
        bool const enable = linespacing->currentItem()==4;