mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-21 17:51:03 +00:00
parent
c0f5c1dd9f
commit
010284dbe5
@ -35,6 +35,7 @@ public:
|
||||
//@{
|
||||
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;
|
||||
|
@ -33,6 +33,7 @@ private:
|
||||
//@{
|
||||
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;
|
||||
|
@ -41,6 +41,7 @@ private:
|
||||
//@{
|
||||
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;
|
||||
|
@ -32,6 +32,7 @@ private:
|
||||
//@{
|
||||
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;
|
||||
|
@ -30,6 +30,7 @@ private:
|
||||
//@{
|
||||
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;
|
||||
|
@ -36,6 +36,7 @@ private:
|
||||
//@{
|
||||
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;
|
||||
|
@ -32,6 +32,7 @@ private:
|
||||
//@{
|
||||
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;
|
||||
|
@ -33,6 +33,7 @@ private:
|
||||
//@{
|
||||
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;
|
||||
|
@ -32,6 +32,7 @@ private:
|
||||
//@{
|
||||
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;
|
||||
|
@ -31,6 +31,7 @@ private:
|
||||
//@{
|
||||
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;
|
||||
|
@ -33,6 +33,7 @@ private:
|
||||
//@{
|
||||
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;
|
||||
|
@ -42,6 +42,7 @@ private:
|
||||
//@{
|
||||
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;
|
||||
|
@ -37,6 +37,7 @@ private:
|
||||
//@{
|
||||
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;
|
||||
|
@ -74,7 +74,7 @@ struct InsetParamsDialog::Private
|
||||
|
||||
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);
|
||||
|
@ -13,6 +13,9 @@
|
||||
#define INSET_PARAMS_WIDGET_H
|
||||
|
||||
#include "insets/InsetCode.h"
|
||||
#include "insets/Inset.h"
|
||||
|
||||
#include "qt_helpers.h"
|
||||
|
||||
#include "FuncCode.h"
|
||||
|
||||
@ -58,6 +61,8 @@ public:
|
||||
/// 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;
|
||||
|
@ -97,6 +97,8 @@ What's new
|
||||
- Avoid to overwrite end-of-proof character with text on screen (bug
|
||||
10344).
|
||||
|
||||
- Use proper dialog titles in InsetParams-derived dialogs (bug 10329).
|
||||
|
||||
* INTERNALS
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user