mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
redundant code (from me). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3432 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8b3b64780f
commit
3bbde60e5a
@ -1,3 +1,11 @@
|
||||
2002-01-25 Angus Leeming <a.leeming@ic.ac.uk>
|
||||
|
||||
* FormTabular.C (update): Remove redundant code.
|
||||
|
||||
2002-01-24 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* forms/form_tabular.fd: checkbox2radiobutton changes.
|
||||
|
||||
2002-01-20 Herbert Voss <voss@perce.de>
|
||||
|
||||
* FormInclude.[C]: better control of unexistings files
|
||||
|
@ -203,9 +203,7 @@ void FormTabular::update()
|
||||
fl_set_button(cell_options_->radio_align_right, 1);
|
||||
else
|
||||
fl_set_button(cell_options_->radio_align_center, 1);
|
||||
setEnabled(cell_options_->radio_align_left, true);
|
||||
setEnabled(cell_options_->radio_align_right, true);
|
||||
setEnabled(cell_options_->radio_align_center, true);
|
||||
|
||||
align = tabular->GetVAlignment(cell);
|
||||
fl_set_button(cell_options_->radio_valign_top, 0);
|
||||
fl_set_button(cell_options_->radio_valign_bottom, 0);
|
||||
@ -216,9 +214,7 @@ void FormTabular::update()
|
||||
fl_set_button(cell_options_->radio_valign_bottom, 1);
|
||||
else
|
||||
fl_set_button(cell_options_->radio_valign_top, 1);
|
||||
setEnabled(cell_options_->radio_valign_top, true);
|
||||
setEnabled(cell_options_->radio_valign_bottom, true);
|
||||
setEnabled(cell_options_->radio_valign_center, true);
|
||||
|
||||
special = tabular->GetAlignSpecial(cell, LyXTabular::SET_SPECIAL_MULTI);
|
||||
fl_set_input(cell_options_->input_special_multialign, special.c_str());
|
||||
bool const metric = lyxrc.default_papersize > 3;
|
||||
|
@ -225,23 +225,26 @@ FD_form_column_options * FormTabular::build_column_options()
|
||||
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
||||
{
|
||||
char const * const dummy = N_("Top|#p");
|
||||
fdui->radio_valign_top = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 330, 135, 155, 25, idex(_(dummy)));
|
||||
fdui->radio_valign_top = obj = fl_add_round3dbutton(FL_PUSH_BUTTON, 330, 135, 155, 25, idex(_(dummy)));
|
||||
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
||||
}
|
||||
fl_set_object_color(obj, FL_COL1, FL_YELLOW);
|
||||
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
||||
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
||||
{
|
||||
char const * const dummy = N_("Center|#n");
|
||||
fdui->radio_valign_center = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 330, 160, 155, 25, idex(_(dummy)));
|
||||
fdui->radio_valign_center = obj = fl_add_round3dbutton(FL_PUSH_BUTTON, 330, 160, 155, 25, idex(_(dummy)));
|
||||
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
||||
}
|
||||
fl_set_object_color(obj, FL_COL1, FL_YELLOW);
|
||||
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
||||
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
||||
{
|
||||
char const * const dummy = N_("Bottom|#o");
|
||||
fdui->radio_valign_bottom = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 330, 185, 155, 25, idex(_(dummy)));
|
||||
fdui->radio_valign_bottom = obj = fl_add_round3dbutton(FL_PUSH_BUTTON, 330, 185, 155, 25, idex(_(dummy)));
|
||||
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
||||
}
|
||||
fl_set_object_color(obj, FL_COL1, FL_YELLOW);
|
||||
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
||||
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
||||
{
|
||||
@ -360,23 +363,26 @@ FD_form_cell_options * FormTabular::build_cell_options()
|
||||
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
||||
{
|
||||
char const * const dummy = N_("Top|#p");
|
||||
fdui->radio_valign_top = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 350, 135, 125, 25, idex(_(dummy)));
|
||||
fdui->radio_valign_top = obj = fl_add_round3dbutton(FL_PUSH_BUTTON, 350, 135, 125, 25, idex(_(dummy)));
|
||||
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
||||
}
|
||||
fl_set_object_color(obj, FL_COL1, FL_YELLOW);
|
||||
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
||||
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
||||
{
|
||||
char const * const dummy = N_("Center|#n");
|
||||
fdui->radio_valign_center = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 350, 160, 125, 25, idex(_(dummy)));
|
||||
fdui->radio_valign_center = obj = fl_add_round3dbutton(FL_PUSH_BUTTON, 350, 160, 125, 25, idex(_(dummy)));
|
||||
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
||||
}
|
||||
fl_set_object_color(obj, FL_COL1, FL_YELLOW);
|
||||
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
||||
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
||||
{
|
||||
char const * const dummy = N_("Bottom|#o");
|
||||
fdui->radio_valign_bottom = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 350, 185, 125, 25, idex(_(dummy)));
|
||||
fdui->radio_valign_bottom = obj = fl_add_round3dbutton(FL_PUSH_BUTTON, 350, 185, 125, 25, idex(_(dummy)));
|
||||
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
||||
}
|
||||
fl_set_object_color(obj, FL_COL1, FL_YELLOW);
|
||||
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
||||
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
||||
{
|
||||
|
@ -548,7 +548,7 @@ callback: C_FormBaseDeprecatedInputCB
|
||||
argument: 0
|
||||
|
||||
--------------------
|
||||
class: FL_CHECKBUTTON
|
||||
class: FL_ROUND3DBUTTON
|
||||
type: PUSH_BUTTON
|
||||
box: 330 135 155 25
|
||||
boxtype: FL_NO_BOX
|
||||
@ -566,7 +566,7 @@ callback: C_FormBaseDeprecatedInputCB
|
||||
argument: 0
|
||||
|
||||
--------------------
|
||||
class: FL_CHECKBUTTON
|
||||
class: FL_ROUND3DBUTTON
|
||||
type: PUSH_BUTTON
|
||||
box: 330 160 155 25
|
||||
boxtype: FL_NO_BOX
|
||||
@ -584,7 +584,7 @@ callback: C_FormBaseDeprecatedInputCB
|
||||
argument: 0
|
||||
|
||||
--------------------
|
||||
class: FL_CHECKBUTTON
|
||||
class: FL_ROUND3DBUTTON
|
||||
type: PUSH_BUTTON
|
||||
box: 330 185 155 25
|
||||
boxtype: FL_NO_BOX
|
||||
@ -896,7 +896,7 @@ callback: C_FormBaseDeprecatedInputCB
|
||||
argument: 0
|
||||
|
||||
--------------------
|
||||
class: FL_CHECKBUTTON
|
||||
class: FL_ROUND3DBUTTON
|
||||
type: PUSH_BUTTON
|
||||
box: 350 135 125 25
|
||||
boxtype: FL_NO_BOX
|
||||
@ -914,7 +914,7 @@ callback: C_FormBaseDeprecatedInputCB
|
||||
argument: 0
|
||||
|
||||
--------------------
|
||||
class: FL_CHECKBUTTON
|
||||
class: FL_ROUND3DBUTTON
|
||||
type: PUSH_BUTTON
|
||||
box: 350 160 125 25
|
||||
boxtype: FL_NO_BOX
|
||||
@ -932,7 +932,7 @@ callback: C_FormBaseDeprecatedInputCB
|
||||
argument: 0
|
||||
|
||||
--------------------
|
||||
class: FL_CHECKBUTTON
|
||||
class: FL_ROUND3DBUTTON
|
||||
type: PUSH_BUTTON
|
||||
box: 350 185 125 25
|
||||
boxtype: FL_NO_BOX
|
||||
|
Loading…
Reference in New Issue
Block a user