- connect(interlinespaceCO, SIGNAL(activated(int)), this, SLOT(interlinespace_changed()));
- connect(booktabsRB, SIGNAL(clicked(bool)), this, SLOT(booktabsChanged(bool)));
- connect(borderDefaultRB, SIGNAL(clicked(bool)), this, SLOT(booktabsChanged(bool)));
- connect(borderSetPB, SIGNAL(clicked()), this, SLOT(borderSet_clicked()));
- connect(borderUnsetPB, SIGNAL(clicked()), this, SLOT(borderUnset_clicked()));
- connect(longTabularCB, SIGNAL(toggled(bool)), longtableGB, SLOT(setEnabled(bool)));
- connect(longTabularCB, SIGNAL(toggled(bool)), newpageCB, SLOT(setEnabled(bool)));
- connect(hAlignCB, SIGNAL(activated(int)), this, SLOT(hAlign_changed(int)));
- connect(vAlignCB, SIGNAL(activated(int)), this, SLOT(vAlign_changed(int)));
- connect(multicolumnCB, SIGNAL(clicked()), this, SLOT(multicolumn_clicked()));
- connect(newpageCB, SIGNAL(clicked()), this, SLOT(ltNewpage_clicked()));
- connect(headerStatusCB, SIGNAL(clicked()), this, SLOT(ltHeaderStatus_clicked()));
- connect(headerBorderAboveCB, SIGNAL(clicked()), this, SLOT(ltHeaderBorderAbove_clicked()));
- connect(headerBorderBelowCB, SIGNAL(clicked()), this, SLOT(ltHeaderBorderBelow_clicked()));
- connect(firstheaderStatusCB, SIGNAL(clicked()), this, SLOT(ltFirstHeaderStatus_clicked()));
- connect(firstheaderBorderAboveCB, SIGNAL(clicked()), this, SLOT(ltFirstHeaderBorderAbove_clicked()));
- connect(firstheaderBorderBelowCB, SIGNAL(clicked()), this, SLOT(ltFirstHeaderBorderBelow_clicked()));
- connect(firstheaderNoContentsCB, SIGNAL(clicked()), this, SLOT(ltFirstHeaderEmpty_clicked()));
- connect(footerStatusCB, SIGNAL(clicked()), this, SLOT(ltFooterStatus_clicked()));
- connect(footerBorderAboveCB, SIGNAL(clicked()), this, SLOT(ltFooterBorderAbove_clicked()));
- connect(footerBorderBelowCB, SIGNAL(clicked()), this, SLOT(ltFooterBorderBelow_clicked()));
- connect(lastfooterStatusCB, SIGNAL(clicked()), this, SLOT(ltLastFooterStatus_clicked()));
- connect(lastfooterBorderAboveCB, SIGNAL(clicked()), this, SLOT(ltLastFooterBorderAbove_clicked()));
- connect(lastfooterBorderBelowCB, SIGNAL(clicked()), this, SLOT(ltLastFooterBorderBelow_clicked()));
- connect(lastfooterNoContentsCB, SIGNAL(clicked()), this, SLOT(ltLastFooterEmpty_clicked()));
- connect(specialAlignmentED, SIGNAL(returnPressed()), this, SLOT(specialAlignment_changed()));
- connect(widthED, SIGNAL(returnPressed()), this, SLOT(width_changed()));
- connect(widthUnit, SIGNAL(selectionChanged(lyx::Length::UNIT)), this, SLOT(width_changed()));
- connect(closePB, SIGNAL(clicked()), this, SLOT(close_clicked()));
- connect(borders, SIGNAL(topSet(bool)), this, SLOT(topBorder_changed()));
- connect(borders, SIGNAL(bottomSet(bool)), this, SLOT(bottomBorder_changed()));
- connect(borders, SIGNAL(rightSet(bool)), this, SLOT(rightBorder_changed()));
- connect(borders, SIGNAL(leftSet(bool)), this, SLOT(leftBorder_changed()));
- connect(rotateTabularCB, SIGNAL(clicked()), this, SLOT(rotateTabular()));
- connect(rotateCellCB, SIGNAL(clicked()), this, SLOT(rotateCell()));
- connect(longTabularCB, SIGNAL(clicked()), this, SLOT(longTabular()));
-}
-
-
-void GuiTabularDialog::change_adaptor()
-{
- form_->changed();
+ connect(booktabsRB, SIGNAL(clicked(bool)),
+ this, SLOT(booktabsChanged(bool)));
+ connect(borderDefaultRB, SIGNAL(clicked(bool)),
+ this, SLOT(booktabsChanged(bool)));
+ connect(borderSetPB, SIGNAL(clicked()),
+ this, SLOT(borderSet_clicked()));
+ connect(borderUnsetPB, SIGNAL(clicked()),
+ this, SLOT(borderUnset_clicked()));
+ connect(longTabularCB, SIGNAL(toggled(bool)),
+ longtableGB, SLOT(setEnabled(bool)));
+ connect(longTabularCB, SIGNAL(toggled(bool)),
+ newpageCB, SLOT(setEnabled(bool)));
+ connect(longTabularCB, SIGNAL(toggled(bool)),
+ alignmentGB, SLOT(setEnabled(bool)));
+ // longtables cannot have a vertical alignment
+ connect(longTabularCB, SIGNAL(toggled(bool)),
+ TableAlignCB, SLOT(setDisabled(bool)));
+ connect(hAlignCB, SIGNAL(activated(int)),
+ this, SLOT(change_adaptor()));
+ connect(vAlignCB, SIGNAL(activated(int)),
+ this, SLOT(change_adaptor()));
+ connect(multicolumnCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(newpageCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(captionStatusCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(headerStatusCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(headerBorderAboveCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(headerBorderBelowCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(firstheaderStatusCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(firstheaderBorderAboveCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(firstheaderBorderBelowCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(firstheaderNoContentsCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(footerStatusCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(footerBorderAboveCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(footerBorderBelowCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(lastfooterStatusCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(lastfooterBorderAboveCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(lastfooterBorderBelowCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(lastfooterNoContentsCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(specialAlignmentED, SIGNAL(textChanged(QString)),
+ this, SLOT(change_adaptor()));
+ connect(widthED, SIGNAL(textChanged(QString)),
+ this, SLOT(change_adaptor()));
+ connect(widthUnitCB, SIGNAL(selectionChanged(lyx::Length::UNIT)),
+ this, SLOT(change_adaptor()));
+ connect(borders, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(rotateTabularCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(rotateCellCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(TableAlignCB, SIGNAL(activated(int)),
+ this, SLOT(change_adaptor()));
+ connect(longTabularCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(leftRB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(centerRB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(rightRB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+
+ bc().addReadOnly(topspaceED);
+ bc().addReadOnly(topspaceUnit);
+ bc().addReadOnly(topspaceCO);
+ bc().addReadOnly(bottomspaceED);
+ bc().addReadOnly(bottomspaceUnit);
+ bc().addReadOnly(bottomspaceCO);
+ bc().addReadOnly(interlinespaceED);
+ bc().addReadOnly(interlinespaceUnit);
+ bc().addReadOnly(interlinespaceCO);
+ bc().addReadOnly(borderDefaultRB);
+ bc().addReadOnly(booktabsRB);
+
+ bc().addReadOnly(multicolumnCB);
+ bc().addReadOnly(rotateCellCB);
+ bc().addReadOnly(rotateTabularCB);
+ bc().addReadOnly(specialAlignmentED);
+ bc().addReadOnly(widthED);
+ bc().addReadOnly(widthUnitCB);
+ bc().addReadOnly(hAlignCB);
+ bc().addReadOnly(vAlignCB);
+ bc().addReadOnly(TableAlignCB);
+ bc().addReadOnly(borderSetPB);
+ bc().addReadOnly(borderUnsetPB);
+ bc().addReadOnly(borders);
+ bc().addReadOnly(longTabularCB);
+ bc().addReadOnly(headerStatusCB);
+ bc().addReadOnly(headerBorderAboveCB);
+ bc().addReadOnly(headerBorderBelowCB);
+ bc().addReadOnly(firstheaderStatusCB);
+ bc().addReadOnly(firstheaderBorderAboveCB);
+ bc().addReadOnly(firstheaderBorderBelowCB);
+ bc().addReadOnly(firstheaderNoContentsCB);
+ bc().addReadOnly(footerStatusCB);
+ bc().addReadOnly(footerBorderAboveCB);
+ bc().addReadOnly(footerBorderBelowCB);
+ bc().addReadOnly(lastfooterStatusCB);
+ bc().addReadOnly(lastfooterBorderAboveCB);
+ bc().addReadOnly(lastfooterBorderBelowCB);
+ bc().addReadOnly(lastfooterNoContentsCB);
+ bc().addReadOnly(newpageCB);
+ bc().addReadOnly(leftRB);
+ bc().addReadOnly(centerRB);
+ bc().addReadOnly(rightRB);
+
+ // initialize the length validator
+ bc().addCheckedLineEdit(widthED, fixedWidthColLA);
+ bc().addCheckedLineEdit(topspaceED, topspaceLA);
+ bc().addCheckedLineEdit(bottomspaceED, bottomspaceLA);
+ bc().addCheckedLineEdit(interlinespaceED, interlinespaceLA);