]> git.lyx.org Git - features.git/blob - src/frontends/qt4/CheckedLineEdit.h
simplify ButtonPolicy machinery
[features.git] / src / frontends / qt4 / CheckedLineEdit.h
1 // -*- C++ -*-
2 /**
3  * \file qt4/CheckedLineEdit.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CHECKEDLINEEDIT_H
13 #define CHECKEDLINEEDIT_H
14
15 class QWidget;
16 class QLineEdit;
17
18 namespace lyx {
19 namespace frontend {
20
21 class BCView;
22
23 void addCheckedLineEdit(BCView & bcview,
24         QLineEdit * input, QWidget * label = 0);
25
26 class CheckedLineEdit
27 {
28 public:
29         CheckedLineEdit(QLineEdit * input, QWidget * label = 0);
30         bool check() const;
31
32 private:
33         QLineEdit * input_;
34         QWidget * label_;
35 };
36
37 } // namespace frontend
38 } // namespace lyx
39
40 #endif // CHECKEDLINEEDIT_H