2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-04-26 03:53:02 +00:00
|
|
|
* \file qt4/CheckedLineEdit.h
|
2006-03-05 17:24:44 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Angus Leeming
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2007-04-26 03:53:02 +00:00
|
|
|
#ifndef CHECKEDLINEEDIT_H
|
|
|
|
#define CHECKEDLINEEDIT_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
#include "BCView.h"
|
|
|
|
|
2007-04-05 14:58:15 +00:00
|
|
|
class QWidget;
|
2006-03-05 17:24:44 +00:00
|
|
|
class QLineEdit;
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
|
|
|
void addCheckedLineEdit(BCView & bcview,
|
2007-04-05 14:58:15 +00:00
|
|
|
QLineEdit * input, QWidget * label = 0);
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
class CheckedLineEdit : public CheckedWidget {
|
|
|
|
public:
|
2007-04-05 14:58:15 +00:00
|
|
|
CheckedLineEdit(QLineEdit * input, QWidget * label = 0);
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
virtual bool check() const;
|
|
|
|
|
|
|
|
///
|
|
|
|
QLineEdit * input_;
|
2007-04-05 14:58:15 +00:00
|
|
|
QWidget * label_;
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-04-26 03:53:02 +00:00
|
|
|
#endif // CHECKEDLINEEDIT_H
|