#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;
{ return false; }
/// \return true if all CheckedWidgets are in a valid state.
- virtual bool checkWidgets() const;
+ virtual bool checkWidgets(bool readonly = false) const;
protected:
/// Add a widget to the list of all widgets whose validity should