OpenMW
apps/opencs/view/world/idvalidator.hpp
Go to the documentation of this file.
00001 #ifndef CSV_WORLD_IDVALIDATOR_H
00002 #define CSV_WORLD_IDVALIDATOR_H
00003 
00004 #include <QValidator>
00005 
00006 namespace CSVWorld
00007 {
00008     class IdValidator : public QValidator
00009     {
00010             bool mRelaxed;
00011 
00012         private:
00013 
00014             bool isValid (const QChar& c, bool first) const;
00015 
00016         public:
00017 
00018             IdValidator (bool relaxed = false, QObject *parent = 0);
00020 
00021             virtual State validate (QString& input, int& pos) const;
00022 
00023     };
00024 }
00025 
00026 #endif