- size_t n = cmd.size()-1;
+ size_t n = cmd.size() - 1;
if (cmd[n] == '*') {
cs.full = true;
cmd = cmd.substr(0,n);
if (cmd[n] == '*') {
cs.full = true;
cmd = cmd.substr(0,n);
double const g = rgb.g / 255.0;
double const b = rgb.b / 255.0;
double const g = rgb.g / 255.0;
double const b = rgb.b / 255.0;
- double const maxval = max( max( r, g), b);
- double const minval = min( min( r, g), b);
+ double const maxval = max(max(r, g), b);
+ double const minval = min(min(r, g), b);
if (choices.empty())
return;
if (choices.empty())
return;
- fl_set_form_geometry(form_, x, y-100, w, 100);
+ fl_set_form_geometry(form_, x, y - 100, w, 100);
fl_clear_browser(browser_);
vector<string>::const_iterator cit = choices.begin();
fl_clear_browser(browser_);
vector<string>::const_iterator cit = choices.begin();
license_.reset(build_aboutlyx_license(this));
string str = formatted(controller().getLicense(),
license_.reset(build_aboutlyx_license(this));
string str = formatted(controller().getLicense(),
- license_->text_license->w-10);
+ license_->text_license->w - 10);
fl_set_object_label(license_->text_license, str.c_str());
str = formatted(controller().getDisclaimer(),
fl_set_object_label(license_->text_license, str.c_str());
str = formatted(controller().getDisclaimer(),
- license_->text_warranty->w-10);
+ license_->text_warranty->w - 10);
fl_set_object_label(license_->text_warranty, str.c_str());
// create credits
fl_set_object_label(license_->text_warranty, str.c_str());
// create credits
/** Filter the inputs on callback from xforms
* Return true if inputs are valid.
*/
/** Filter the inputs on callback from xforms
* Return true if inputs are valid.
*/
- virtual bool input( FL_OBJECT *, long) {
+ virtual bool input(FL_OBJECT *, long) {
return true;
}
/// Apply from dialog (modify or create inset)
return true;
}
/// Apply from dialog (modify or create inset)
if (!form()) return;
int pos = fl_get_choice(dialog_->choice_family);
if (!form()) return;
int pos = fl_get_choice(dialog_->choice_family);
- controller().setFamily(family_[pos-1]);
+ controller().setFamily(family_[pos - 1]);
pos = fl_get_choice(dialog_->choice_series);
pos = fl_get_choice(dialog_->choice_series);
- controller().setSeries(series_[pos-1]);
+ controller().setSeries(series_[pos - 1]);
pos = fl_get_choice(dialog_->choice_shape);
pos = fl_get_choice(dialog_->choice_shape);
- controller().setShape(shape_[pos-1]);
+ controller().setShape(shape_[pos - 1]);
pos = fl_get_choice(dialog_->choice_size);
pos = fl_get_choice(dialog_->choice_size);
- controller().setSize(size_[pos-1]);
+ controller().setSize(size_[pos - 1]);
pos = fl_get_choice(dialog_->choice_bar);
pos = fl_get_choice(dialog_->choice_bar);
- controller().setBar(bar_[pos-1]);
+ controller().setBar(bar_[pos - 1]);
pos = fl_get_choice(dialog_->choice_color);
pos = fl_get_choice(dialog_->choice_color);
- controller().setColor(color_[pos-1]);
+ controller().setColor(color_[pos - 1]);
pos = combo_language2_->get();
pos = combo_language2_->get();
- controller().setLanguage(lang_[pos-1]);
+ controller().setLanguage(lang_[pos - 1]);
bool const toggleall = fl_get_button(dialog_->check_toggle_all);
controller().setToggleAll(toggleall);
bool const toggleall = fl_get_button(dialog_->check_toggle_all);
controller().setToggleAll(toggleall);
ButtonPolicy::SMInput activate = ButtonPolicy::SMI_NOOP;
int pos = fl_get_choice(dialog_->choice_family);
ButtonPolicy::SMInput activate = ButtonPolicy::SMI_NOOP;
int pos = fl_get_choice(dialog_->choice_family);
- if (family_[pos-1] != LyXFont::IGNORE_FAMILY)
+ if (family_[pos - 1] != LyXFont::IGNORE_FAMILY)
activate = ButtonPolicy::SMI_VALID;
pos = fl_get_choice(dialog_->choice_series);
activate = ButtonPolicy::SMI_VALID;
pos = fl_get_choice(dialog_->choice_series);
- if (series_[pos-1] != LyXFont::IGNORE_SERIES)
+ if (series_[pos - 1] != LyXFont::IGNORE_SERIES)
activate = ButtonPolicy::SMI_VALID;
pos = fl_get_choice(dialog_->choice_shape);
activate = ButtonPolicy::SMI_VALID;
pos = fl_get_choice(dialog_->choice_shape);
- if (shape_[pos-1] != LyXFont::IGNORE_SHAPE)
+ if (shape_[pos - 1] != LyXFont::IGNORE_SHAPE)
activate = ButtonPolicy::SMI_VALID;
pos = fl_get_choice(dialog_->choice_size);
activate = ButtonPolicy::SMI_VALID;
pos = fl_get_choice(dialog_->choice_size);
- if (size_[pos-1] != LyXFont::IGNORE_SIZE)
+ if (size_[pos - 1] != LyXFont::IGNORE_SIZE)
activate = ButtonPolicy::SMI_VALID;
pos = fl_get_choice(dialog_->choice_bar);
activate = ButtonPolicy::SMI_VALID;
pos = fl_get_choice(dialog_->choice_bar);
- if (bar_[pos-1] != frnt::IGNORE)
+ if (bar_[pos - 1] != frnt::IGNORE)
activate = ButtonPolicy::SMI_VALID;
pos = fl_get_choice(dialog_->choice_color);
activate = ButtonPolicy::SMI_VALID;
pos = fl_get_choice(dialog_->choice_color);
- if (color_[pos-1] != LColor::ignore)
+ if (color_[pos - 1] != LColor::ignore)
activate = ButtonPolicy::SMI_VALID;
pos = combo_language2_->get();
activate = ButtonPolicy::SMI_VALID;
pos = combo_language2_->get();
- if (lang_[pos-1] != "No change")
+ if (lang_[pos - 1] != "No change")
activate = ButtonPolicy::SMI_VALID;
return activate;
activate = ButtonPolicy::SMI_VALID;
return activate;
}
params.setFromString(arg);
}
params.setFromString(arg);
bc().valid(); // so that the user can press Ok
show();
}
bc().valid(); // so that the user can press Ok
show();
}