-void GuiInfo::on_typeCO_currentIndexChanged(int)
-{
- applyView();
-}
-
-
-void GuiInfo::on_nameLE_textChanged(QString const &)
-{
- applyView();
-}
-
-
-void GuiInfo::applyView()
-{
- InsetInfo const * ii = dynamic_cast<InsetInfo const *>(inset(INFO_CODE));
- if (!ii) {
- return;
- }
-
- dialogToParams();
- docstring const argument = qstring_to_ucs4(type_ + ' ' + name_);
- if (!ii->validate(argument))
- return;
-
- dispatch(FuncRequest(LFUN_NEXT_INSET_MODIFY, argument));
- // FIXME: update the inset contents
- bufferview()->buffer().updateLabels();
- BufferView * bv = const_cast<BufferView *>(bufferview());
- bv->updateMetrics();
- bv->buffer().changed();
- bv->buffer().markDirty();
-}
-
-
-void GuiInfo::updateView()
-{
- InsetInfo const * ii = dynamic_cast<InsetInfo const *>(inset(INFO_CODE));
- if (!ii) {
- enableView(false);
- return;
- }
-
- type_ = toqstr(ii->infoType());
- name_ = toqstr(ii->infoName());
- paramsToDialog();
-}
-
-
-void GuiInfo::paramsToDialog()