4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS.
17 #include "support/qstring_helpers.h"
18 #include "support/strfwd.h"
30 /// method to get a Length from widgets (LengthCombo)
31 std::string widgetsToLength(QLineEdit const * input, LengthCombo const * combo);
32 /// method to get a Length from widgets (QComboBox)
33 Length widgetsToLength(QLineEdit const * input, QComboBox const * combo);
35 //FIXME It would be nice if defaultUnit were a default argument
36 /// method to set widgets from a Length
37 void lengthToWidgets(QLineEdit * input, LengthCombo * combo,
38 Length const & len, Length::UNIT default_unit);
39 /// method to set widgets from a string
40 void lengthToWidgets(QLineEdit * input, LengthCombo * combo,
41 std::string const & len, Length::UNIT default_unit);
42 /// method to set widgets from a Length with optional "auto" if zero
43 void lengthAutoToWidgets(QLineEdit * input, LengthCombo * combo,
44 Length const & len, Length::UNIT defaultUnit);
46 /// colors a widget red if invalid
47 void setValid(QWidget * widget, bool valid);
51 * qt_ - i18nize string and convert to QString
53 * Use this in qt4/ instead of _()
55 QString const qt_(char const * str, const char * comment = 0);
59 * qt_ - i18nize string and convert to QString
61 * Use this in qt4/ instead of _()
63 QString const qt_(std::string const & str);