lyx_mirror/src/frontends/qt2/lengthvalidator.h
Angus Leeming aa2056f050 Compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8220 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-10 09:26:18 +00:00

43 lines
838 B
C++

// -*- C++ -*-
/**
* \file lengthvalidator.h
* 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.
*/
#ifndef LENGTHVALIDATOR_H
#define LENGTHVALIDATOR_H
#include "lyxlength.h"
#include <qvalidator.h>
class QWidget;
class Q_EXPORT LengthValidator : public QValidator
{
Q_OBJECT
public:
LengthValidator(QWidget * parent, const char *name = 0);
QValidator::State validate(QString &, int &) const;
void setBottom(LyXLength);
LyXLength bottom() const { return b_; }
private:
#if defined(Q_DISABLE_COPY)
LengthValidator( const LengthValidator & );
LengthValidator& operator=( const LengthValidator & );
#endif
LyXLength b_;
bool no_bottom_;
};
# endif // NOT LENGTHVALIDATOR_H