//@{
InsetCode insetCode() const { return FLOAT_CODE; }
FuncCode creationCode() const { return LFUN_FLOAT_INSERT; }
+ QString dialogTitle() const { return qt_("Float Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
//@{
InsetCode insetCode() const { return BIBITEM_CODE; }
FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const { return qt_("Bibliography Item Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
//@{
InsetCode insetCode() const { return BOX_CODE; }
FuncCode creationCode() const { return LFUN_BOX_INSERT; }
+ QString dialogTitle() const { return qt_("Box Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
//@{
InsetCode insetCode() const { return BRANCH_CODE; }
FuncCode creationCode() const { return LFUN_BRANCH_INSERT; }
+ QString dialogTitle() const { return qt_("Branch Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
//@{
InsetCode insetCode() const { return ERT_CODE; }
FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const { return qt_("TeX Mode Inset Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
//@{
InsetCode insetCode() const { return math_mode_ ? MATH_SPACE_CODE : SPACE_CODE; }
FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const { return qt_("Horizontal Space Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
//@{
InsetCode insetCode() const { return HYPERLINK_CODE; }
FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const { return qt_("Hyperlink Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
//@{
InsetCode insetCode() const { return INFO_CODE; }
FuncCode creationCode() const { return LFUN_INFO_INSERT; }
+ QString dialogTitle() const { return qt_("Info Inset Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
//@{
InsetCode insetCode() const { return LABEL_CODE; }
FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const { return qt_("Label Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
//@{
InsetCode insetCode() const { return LINE_CODE; }
FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const { return qt_("Line Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
//@{
InsetCode insetCode() const { return NOMENCL_CODE; }
FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const { return qt_("Nomenclature Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
//@{
InsetCode insetCode() const { return TABULAR_CODE; }
FuncCode creationCode() const { return LFUN_TABULAR_INSERT; }
+ QString dialogTitle() const { return qt_("Tabular Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
//@{
InsetCode insetCode() const { return VSPACE_CODE; }
FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const { return qt_("Vertical Space Settings"); }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly) const;
InsetParamsDialog::InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget)
: DialogView(lv, toqstr(insetName(widget->insetCode())),
- toqstr(insetName(widget->insetCode()))), d(new Private)
+ widget->dialogTitle()), d(new Private)
{
setupUi(this);
setInsetParamsWidget(widget);
#define INSET_PARAMS_WIDGET_H
#include "insets/InsetCode.h"
+#include "insets/Inset.h"
+
+#include "qt_helpers.h"
#include "FuncCode.h"
/// This is a base class; destructor must exist and be virtual.
virtual ~InsetParamsWidget() {}
///
+ virtual QString dialogTitle() const { return toqstr(insetName(insetCode())); }
+ ///
virtual InsetCode insetCode() const = 0;
///
virtual FuncCode creationCode() const = 0;
- Avoid to overwrite end-of-proof character with text on screen (bug
10344).
+- Use proper dialog titles in InsetParams-derived dialogs (bug 10329).
+
* INTERNALS