]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QFloatDialog.C
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / QFloatDialog.C
index 8efa34320ee25cd04f6eb705e02a4b39cef56775..4e589e849ab913b928f1867dd4e35b738ad8e087 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \file QFloatDialog.C
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Edwin Leuven <leuven@fee.uva.nl>
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include "LString.h"
 
 #include "ControlFloat.h"
@@ -17,7 +23,8 @@
 
 #include "QFloatDialog.h"
 #include "QFloat.h"
+
+
 QFloatDialog::QFloatDialog(QFloat * form)
        : QFloatDialogBase(0, 0, false, 0),
        form_(form)
@@ -54,29 +61,33 @@ void QFloatDialog::tbhpClicked()
        allow |= herepossiblyCB->isChecked();
        ignoreCB->setEnabled(allow);
 }
+
 
 void QFloatDialog::heredefinitelyClicked()
 {
+       if (heredefinitelyCB->isChecked());
+               ignoreCB->setEnabled(false);
+
        topCB->setChecked(false);
        bottomCB->setChecked(false);
        pageCB->setChecked(false);
        herepossiblyCB->setChecked(false);
+       ignoreCB->setChecked(false);
 }
 
 
 void QFloatDialog::spanClicked()
 {
        bool const span(spanCB->isChecked());
+
        if (!defaultsCB->isChecked()) {
-               herepossiblyCB->setEnabled(!span);
-               heredefinitelyCB->setEnabled(!span);
+               herepossiblyCB->setEnabled(!span);
+               heredefinitelyCB->setEnabled(!span);
        }
+
        if (!span)
                return;
+
        herepossiblyCB->setChecked(false);
        heredefinitelyCB->setChecked(false);
 }