Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Public Member Functions | Private Attributes
PageValidator Class Reference

List of all members.

Public Member Functions

 PageValidator (int min, int max, QObject *parent)
void fixup (QString &input) const
State validate (QString &input, int &pos) const

Private Attributes

QRegExp rx
QRegExp rx2
PageSelector * pageSelector

Detailed Description

Definition at line 29 of file pageselector.cpp.

Constructor & Destructor Documentation

PageValidator::PageValidator ( int  min,
int  max,
QObject *  parent 

Definition at line 40 of file pageselector.cpp.

                                                           : QValidator
(parent), rx("^([0-9]+).*"), rx2("^[0-9]+$") 
       pageSelector = static_cast<PageSelector*>(parent);

Member Function Documentation

void PageValidator::fixup ( QString &  input) const

Definition at line 54 of file pageselector.cpp.

       if ( == 0)
              input = const_cast<QRegExp &>(rx).cap(1);
QValidator::State PageValidator::validate ( QString &  input,
int pos 
) const

Definition at line 46 of file pageselector.cpp.

       if ( == 0 && pageSelector->PageCombo->text(input.toInt()-1) == input)
              return Acceptable;
              return Intermediate;

Member Data Documentation

PageSelector* PageValidator::pageSelector [private]

Definition at line 37 of file pageselector.cpp.

QRegExp PageValidator::rx [private]

Definition at line 35 of file pageselector.cpp.

QRegExp PageValidator::rx2 [private]

Definition at line 36 of file pageselector.cpp.

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