]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/qt_helpers.h
widthcache ting
[lyx.git] / src / frontends / qt2 / qt_helpers.h
1 // -*- C++ -*-
2 /**
3  * \file qt_helpers.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Dekel Tsur
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef QTHELPERS_H
13 #define QTHELPERS_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "LString.h"
20
21 #include <utility>
22
23 #include "lyxlength.h"
24  
25 class LengthCombo;
26 class QLineEdit;
27  
28 string makeFontName(string const & family, string const & foundry);
29  
30 std::pair<string,string> parseFontName(string const & name);
31
32 /// method to get a LyXLength from widgets
33 string widgetsToLength(QLineEdit const * input, LengthCombo const * combo);
34  
35 /// method to set widgets from a LyXLength
36 void lengthToWidgets(QLineEdit * input, LengthCombo * combo,
37         string const & len, LyXLength::UNIT default_unit);
38  
39 #endif // QTHELPERS_H