]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/qt_helpers.h
If we are in a closeEvent, we don't want to close all buffers, because these may...
[lyx.git] / src / frontends / qt4 / qt_helpers.h
index 7e145f99ef38293d068adfe40e681ceaff5a6c00..dd284a8655099af9de1b77028d41ad0993e43911 100644 (file)
@@ -52,6 +52,17 @@ std::string const & len, Length::UNIT default_unit);
 void lengthToWidgets(QLineEdit * input, LengthCombo * combo,
 docstring const & len, Length::UNIT default_unit);
 
+/// method to get a double value from a localized widget (QLineEdit)
+double widgetToDouble(QLineEdit const * input);
+/// method to get a double value from a localized widget (QLineEdit)
+std::string widgetToDoubleStr(QLineEdit const * input);
+/// method to set a (localized) double value in a widget (QLineEdit)
+void doubleToWidget(QLineEdit * input, double const & value,
+       char f = 'g', int prec = 6);
+/// method to set a (localized) double value in a widget (QLineEdit)
+void doubleToWidget(QLineEdit * input, std::string const & value,
+       char f = 'g', int prec = 6);
+
 /// colors a widget red if invalid
 void setValid(QWidget * widget, bool valid);