gui::RefValidator Class Reference

Reference format validator. More...

#include <refvalidator.h>

List of all members.

Public Member Functions

 RefValidator (QObject *parent, const char *name=0)
void fixup (QString &input) const
QValidator::State validate (QString &input, int &pos) const

Detailed Description

Reference format validator.

Reference validator - checks if given String is valid Reference in given document Does validate only format, not if the reference exists (that would be too slow) Reference existence is validated on attempt to write it to the property


Constructor & Destructor Documentation

gui::RefValidator::RefValidator ( QObject *  parent,
const char *  name = 0 
)

Constructor for this validator

Parameters:
parent Parent object
name name of this validator (not used, except debugging)

Member Function Documentation

void gui::RefValidator::fixup ( QString &  input  )  const

Try to "fix" the string to be valid. Does not guarantee that string will be valid after returning

Parameters:
input String to fix (reference)
QValidator::State gui::RefValidator::validate ( QString &  input,
int &  pos 
) const

Try to validate the string as reference target

Parameters:
input String to validate (reference)
pos position of cursor (not changed)
Returns:
result of validation (Acceptable, Intermediate or Invalid)

References debug::DBG_DBG, guiPrintDbg, gui::ivalid(), Q_OUT, and gui::valid().


The documentation for this class was generated from the following files: