this, SLOT(checkEnabled()));
connect(topspaceUnitCB, SIGNAL(selectionChanged(lyx::Length::UNIT)),
this, SLOT(checkEnabled()));
- connect(topspaceCO, SIGNAL(activated(int)),
- this, SLOT(checkEnabled()));
connect(bottomspaceED, SIGNAL(editingFinished()),
this, SLOT(checkEnabled()));
connect(bottomspaceUnitCB, SIGNAL(selectionChanged(lyx::Length::UNIT)),
this, SLOT(checkEnabled()));
- connect(bottomspaceCO, SIGNAL(activated(int)),
- this, SLOT(checkEnabled()));
connect(interlinespaceED, SIGNAL(editingFinished()),
this, SLOT(checkEnabled()));
connect(interlinespaceUnitCB, SIGNAL(selectionChanged(lyx::Length::UNIT)),
this, SLOT(checkEnabled()));
- connect(interlinespaceCO, SIGNAL(activated(int)),
- this, SLOT(checkEnabled()));
connect(booktabsRB, SIGNAL(clicked(bool)),
this, SLOT(checkEnabled()));
connect(borderDefaultRB, SIGNAL(clicked(bool)),
}
+void GuiTabular::on_topspaceCO_activated(int index)
+{
+ bool const enable = (index == 2);
+ topspaceED->setEnabled(enable);
+ topspaceUnitCB->setEnabled(enable);
+}
+
+
+void GuiTabular::on_bottomspaceCO_activated(int index)
+{
+ bool const enable = (index == 2);
+ bottomspaceED->setEnabled(enable);
+ bottomspaceUnitCB->setEnabled(enable);
+}
+
+
+void GuiTabular::on_interlinespaceCO_activated(int index)
+{
+ bool const enable = (index == 2);
+ interlinespaceED->setEnabled(enable);
+ interlinespaceUnitCB->setEnabled(enable);
+}
+
+
void GuiTabular::checkEnabled()
{
// if there is a LaTeX argument, the width and alignment will be overwrtitten