]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/checkedwidgets.h
9d72d1aa4d6451e5c066204373c4824ff44c7ec9
[lyx.git] / src / frontends / qt4 / checkedwidgets.h
1 // -*- C++ -*-
2 /**
3  * \file qt4/checkedwidgets.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 CHECKEDWIDGETS_H
13 #define CHECKEDWIDGETS_H
14
15 #include "BCView.h"
16 //#include <QLabel>
17
18 class QLabel;
19 class QLineEdit;
20
21 namespace lyx {
22 namespace frontend {
23
24 void addCheckedLineEdit(BCView & bcview,
25                         QLineEdit * input, QLabel * label = 0);
26
27 class CheckedLineEdit : public CheckedWidget {
28 public:
29         CheckedLineEdit(QLineEdit * input, QLabel * label = 0);
30
31 private:
32         ///
33         virtual bool check() const;
34
35         ///
36         QLineEdit * input_;
37         QLabel * label_;
38 };
39
40 } // namespace frontend
41 } // namespace lyx
42
43 #endif // CHECKEDWIDGETS_H