mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-15 07:16:48 +00:00
aa2056f050
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8220 a592a061-630c-0410-9148-cb99ea01b6c8
43 lines
838 B
C++
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
|