/**
* \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"
#include "QFloatDialog.h"
#include "QFloat.h"
-
+
+
QFloatDialog::QFloatDialog(QFloat * form)
: QFloatDialogBase(0, 0, false, 0),
form_(form)
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);
}