qt longtabular ui fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9894 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2005-05-02 05:51:27 +00:00
parent ccec9da254
commit b52587a650
3 changed files with 52 additions and 17 deletions

View File

@ -1,3 +1,10 @@
2005-05-02 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QTabularDialog.C: correcht handling of the LFUN_UNSET_*
functions within longtabular.
* ui/QTabularDialogBase.ui: add tooltips to longtabular tab.
2005-04-28 Angus Leeming <leeming@lyx.org>
* BulletsModule.[Ch] (BulletsModule): emit a signal when the

View File

@ -214,7 +214,7 @@ void QTabularDialog::ltHeaderBorderAbove_clicked()
if (headerBorderAboveCB->isChecked())
form_->controller().set(LyXTabular::SET_LTHEAD, "dl_above");
else
form_->controller().set(LyXTabular::UNSET_LTHEAD, "");
form_->controller().set(LyXTabular::UNSET_LTHEAD, "dl_above");
form_->changed();
}
@ -224,7 +224,7 @@ void QTabularDialog::ltHeaderBorderBelow_clicked()
if (headerBorderBelowCB->isChecked())
form_->controller().set(LyXTabular::SET_LTHEAD, "dl_below");
else
form_->controller().set(LyXTabular::UNSET_LTHEAD, "");
form_->controller().set(LyXTabular::UNSET_LTHEAD, "dl_below");
form_->changed();
}
@ -234,7 +234,7 @@ void QTabularDialog::ltFirstHeaderBorderAbove_clicked()
if (firstheaderBorderAboveCB->isChecked())
form_->controller().set(LyXTabular::SET_LTFIRSTHEAD, "dl_above");
else
form_->controller().set(LyXTabular::UNSET_LTFIRSTHEAD, "");
form_->controller().set(LyXTabular::UNSET_LTFIRSTHEAD, "dl_above");
form_->changed();
}
@ -244,7 +244,7 @@ void QTabularDialog::ltFirstHeaderBorderBelow_clicked()
if (firstheaderBorderBelowCB->isChecked())
form_->controller().set(LyXTabular::SET_LTFIRSTHEAD, "dl_below");
else
form_->controller().set(LyXTabular::UNSET_LTFIRSTHEAD, "");
form_->controller().set(LyXTabular::UNSET_LTFIRSTHEAD, "dl_below");
form_->changed();
}
@ -267,10 +267,8 @@ void QTabularDialog::ltFirstHeaderEmpty_clicked()
bool enable(firstheaderNoContentsCB->isChecked());
if (enable)
form_->controller().set(LyXTabular::SET_LTFIRSTHEAD, "empty");
else {
ltFirstHeaderBorderBelow_clicked();
ltFirstHeaderBorderAbove_clicked();
}
else
form_->controller().set(LyXTabular::UNSET_LTFIRSTHEAD, "empty");
firstheaderStatusCB->setEnabled(!enable);
firstheaderBorderAboveCB->setEnabled(!enable);
firstheaderBorderBelowCB->setEnabled(!enable);
@ -297,7 +295,7 @@ void QTabularDialog::ltFooterBorderAbove_clicked()
if (footerBorderAboveCB->isChecked())
form_->controller().set(LyXTabular::SET_LTFOOT, "dl_above");
else
form_->controller().set(LyXTabular::UNSET_LTFOOT, "");
form_->controller().set(LyXTabular::UNSET_LTFOOT, "dl_above");
form_->changed();
}
@ -307,7 +305,7 @@ void QTabularDialog::ltFooterBorderBelow_clicked()
if (footerBorderBelowCB->isChecked())
form_->controller().set(LyXTabular::SET_LTFOOT, "dl_below");
else
form_->controller().set(LyXTabular::UNSET_LTFOOT, "");
form_->controller().set(LyXTabular::UNSET_LTFOOT, "dl_below");
form_->changed();
}
@ -330,7 +328,7 @@ void QTabularDialog::ltLastFooterBorderAbove_clicked()
if (lastfooterBorderAboveCB->isChecked())
form_->controller().set(LyXTabular::SET_LTLASTFOOT, "dl_above");
else
form_->controller().set(LyXTabular::UNSET_LTLASTFOOT, "");
form_->controller().set(LyXTabular::UNSET_LTLASTFOOT, "dl_above");
form_->changed();
}
@ -340,7 +338,7 @@ void QTabularDialog::ltLastFooterBorderBelow_clicked()
if (lastfooterBorderBelowCB->isChecked())
form_->controller().set(LyXTabular::SET_LTLASTFOOT, "dl_below");
else
form_->controller().set(LyXTabular::UNSET_LTLASTFOOT, "");
form_->controller().set(LyXTabular::UNSET_LTLASTFOOT, "dl_below");
form_->changed();
}
@ -350,10 +348,8 @@ void QTabularDialog::ltLastFooterEmpty_clicked()
bool enable(lastfooterNoContentsCB->isChecked());
if (enable)
form_->controller().set(LyXTabular::SET_LTLASTFOOT, "empty");
else {
ltLastFooterBorderBelow_clicked();
ltLastFooterBorderAbove_clicked();
}
else
form_->controller().set(LyXTabular::UNSET_LTLASTFOOT, "empty");
lastfooterStatusCB->setEnabled(!enable);
lastfooterBorderAboveCB->setEnabled(!enable);
lastfooterBorderBelowCB->setEnabled(!enable);

View File

@ -13,7 +13,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>451</width>
<width>447</width>
<height>408</height>
</rect>
</property>
@ -929,6 +929,10 @@
<name>text</name>
<string>on</string>
</property>
<property>
<name>toolTip</name>
<string>Repeat this row as header on every (except the first) page</string>
</property>
</widget>
<widget row="2" column="1" >
<class>QCheckBox</class>
@ -940,6 +944,14 @@
<name>text</name>
<string>on</string>
</property>
<property>
<name>toolTip</name>
<string>This row is the header of the first page</string>
</property>
<property>
<name>whatsThis</name>
<string></string>
</property>
</widget>
<widget row="3" column="1" >
<class>QCheckBox</class>
@ -951,6 +963,10 @@
<name>text</name>
<string>on</string>
</property>
<property>
<name>toolTip</name>
<string>Repeat this row as footer on every (except the last) page</string>
</property>
</widget>
<widget row="4" column="1" >
<class>QCheckBox</class>
@ -962,6 +978,10 @@
<name>text</name>
<string>on</string>
</property>
<property>
<name>toolTip</name>
<string>This row is the footer of the last page</string>
</property>
</widget>
<widget row="1" column="2" >
<class>QCheckBox</class>
@ -973,6 +993,10 @@
<name>text</name>
<string>double</string>
</property>
<property>
<name>toolTip</name>
<string></string>
</property>
</widget>
<widget row="2" column="2" >
<class>QCheckBox</class>
@ -1061,6 +1085,10 @@
<name>text</name>
<string>is empty</string>
</property>
<property>
<name>toolTip</name>
<string>Don't output the last footer</string>
</property>
</widget>
<widget row="2" column="4" >
<class>QCheckBox</class>
@ -1072,6 +1100,10 @@
<name>text</name>
<string>is empty</string>
</property>
<property>
<name>toolTip</name>
<string>Don't output the first header</string>
</property>
</widget>
</grid>
</widget>