FilenameParameter Class Reference

Class representing parameters for filenames. More...

#include <FilenameParameter.h>

Inheritance diagram for FilenameParameter:

Inheritance graph
[legend]
Collaboration diagram for FilenameParameter:

Collaboration graph
[legend]

List of all members.

Public Types

enum  Type { FT_Open, FT_Save }
 Nested enumeration of different filename types. More...

Public Member Functions

 FilenameParameter (const QString &name, const QVariant &value)
 Constructor of the FilenameParameter class.
 FilenameParameter (const FilenameParameter &parameter)
 Copy constructor of the FilenameParameter class.
virtual ~FilenameParameter ()
 Destructor of the FilenameParameter class.
virtual AbstractParameterclone ()
 Creates an exact copy of the parameter.
QString getFilters () const
 Returns the filename filters to use when selecting a file in a file browser dialog.
void setFilters (const QString &filters)
 Sets the filename filters to use when selecting a file in a file browser dialog.
Type getType () const
 Returns the type for the filename.
void setType (Type filenameType)
 Sets the type for the filename.

Private Attributes

QString m_filters
 The filename filters to use when selecting a file in a file browser dialog.
Type m_filenameType
 The type of the filename.


Detailed Description

Class representing parameters for filenames.

Member Enumeration Documentation

Nested enumeration of different filename types.

Enumerator:
FT_Open 
FT_Save 

Reimplemented from Parameter.


Constructor & Destructor Documentation

FilenameParameter::FilenameParameter ( const QString &  name,
const QVariant &  value 
)

Constructor of the FilenameParameter class.

Constructors and Destructors.

Parameters:
name The name of the parameter.
value The parameter's value.
Constructor of the FilenameParameter class.

Parameters:
name The name of the parameter.
value The parameter's value.

FilenameParameter::FilenameParameter ( const FilenameParameter parameter  ) 

Copy constructor of the FilenameParameter class.

Parameters:
parameter The parameter to copy.

FilenameParameter::~FilenameParameter (  )  [virtual]

Destructor of the FilenameParameter class.


Member Function Documentation

AbstractParameter * FilenameParameter::clone (  )  [virtual]

Creates an exact copy of the parameter.

Public Functions.

Returns:
An exact copy of the parameter.
Creates an exact copy of the parameter.

Returns:
An exact copy of the parameter.

Reimplemented from Parameter.

QString FilenameParameter::getFilters (  )  const

Returns the filename filters to use when selecting a file in a file browser dialog.

Returns:
The filters to use when selecting a file in a file dialog.

void FilenameParameter::setFilters ( const QString &  filters  ) 

Sets the filename filters to use when selecting a file in a file browser dialog.

Parameters:
filters The filters to use when selecting a file in a file dialog.

FilenameParameter::Type FilenameParameter::getType (  )  const

Returns the type for the filename.

Returns:
The type for the filename.

Reimplemented from Parameter.

void FilenameParameter::setType ( FilenameParameter::Type  filenameType  ) 

Sets the type for the filename.

Parameters:
filenameType The type for the filename.


Member Data Documentation

QString FilenameParameter::m_filters [private]

The filename filters to use when selecting a file in a file browser dialog.

The type of the filename.


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

Generated on Wed Feb 24 15:01:00 2010 for Frapper by  doxygen 1.5.9