VR-Forces 4.1 Class Documentation
List of all members | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtFileListDialog Class Reference
Inheritance diagram for makVrf::DtFileListDialog:
Inheritance graph
[legend]

Signals

void filesChanged (const QStringList &)

Public Member Functions

 DtFileListDialog (QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtFileListDialog ()
virtual void init (const QStringList &=QStringList())
virtual void setFiles (const QStringList &files)
 Sets the files to appear in this widget. Clears out list box.
void setFilter (const QString &)
 Sets filter to be used when selecting file.
const QString & filter () const
void setStartingDirectory (const QString &)
 Sets starting directory to be used when selecting file, if the file is an <empty file>="">
const QString & startingDirectory () const
virtual QStringList files () const
 Files that are in the list box.
virtual QString mergedFiles (const QChar &separator= ';') const
virtual void setDirectoryMode (bool)
 Sets the mode where only directories are allowed to be selected.
bool directoryMode () const
virtual void setPathsRelativeToApplication (bool)
 Make all directories relative to applicatio.
bool pathsRelativeToApplication () const
QListWidget * fileList () const
virtual QString makeRelativeTo (QString origFile) const
virtual QString makeRelativeTo (QString filename, QString path) const
 If the name given contains the directory, adds ../ to that path, removing everything before it.
virtual QString relativePath () const
 Returns the folder that paths should be made relative to.
virtual QString dataFolder () const
 Returns the data folder of this application.
virtual QString cleanPath (const QString &path) const

Protected Slots

virtual void itemSelectionChanged ()
virtual void addItem ()
virtual void removeItem ()
virtual void fileChanged ()
virtual void selectFile ()

Protected Member Functions

virtual void createAcceptButtons ()
virtual QLayout * createAddRemoveButtons (QHBoxLayout *fileLayout)
virtual QLayout * createAddRemoveButtonLayout ()
virtual QString relativeFilename (const QString &file) const
virtual bool eventFilter (QObject *p, QEvent *e)

Protected Attributes

QListWidget * myFileList
QPushButtonmyRemove
QPushButtonmyFileSelect
QLineEditmyFileEdit
QWidgetmyFilePanel
QString myFilter
QString myStartingDirectory
bool myDirectoryMode
bool myPathsRelativeToApplication

Constructor & Destructor Documentation

makVrf::DtFileListDialog::DtFileListDialog ( QWidget parent,
const Qt::WindowFlags &  flags = 0 
)
virtual makVrf::DtFileListDialog::~DtFileListDialog ( )
virtual

Member Function Documentation

virtual void makVrf::DtFileListDialog::init ( const QStringList &  = QStringList())
virtual

Reimplemented in makVrf::DtFileListWidget.

virtual void makVrf::DtFileListDialog::setFiles ( const QStringList &  files)
virtual

Sets the files to appear in this widget. Clears out list box.

void makVrf::DtFileListDialog::setFilter ( const QString &  f)
inline

Sets filter to be used when selecting file.

References myFilter.

const QString & makVrf::DtFileListDialog::filter ( ) const
inline

References myFilter.

void makVrf::DtFileListDialog::setStartingDirectory ( const QString &  f)
inline

Sets starting directory to be used when selecting file, if the file is an <empty file>="">

References myStartingDirectory.

const QString & makVrf::DtFileListDialog::startingDirectory ( ) const
inline

References myStartingDirectory.

virtual QStringList makVrf::DtFileListDialog::files ( ) const
virtual

Files that are in the list box.

virtual QString makVrf::DtFileListDialog::mergedFiles ( const QChar &  separator = ';') const
virtual
virtual void makVrf::DtFileListDialog::setDirectoryMode ( bool  )
virtual

Sets the mode where only directories are allowed to be selected.

bool makVrf::DtFileListDialog::directoryMode ( ) const
inline

References myDirectoryMode.

virtual void makVrf::DtFileListDialog::setPathsRelativeToApplication ( bool  )
virtual

Make all directories relative to applicatio.

bool makVrf::DtFileListDialog::pathsRelativeToApplication ( ) const
inline
QListWidget * makVrf::DtFileListDialog::fileList ( ) const
inline

References myFileList.

virtual QString makVrf::DtFileListDialog::makeRelativeTo ( QString  origFile) const
virtual
virtual QString makVrf::DtFileListDialog::makeRelativeTo ( QString  filename,
QString  path 
) const
virtual

If the name given contains the directory, adds ../ to that path, removing everything before it.

virtual QString makVrf::DtFileListDialog::relativePath ( ) const
virtual

Returns the folder that paths should be made relative to.

virtual QString makVrf::DtFileListDialog::dataFolder ( ) const
virtual

Returns the data folder of this application.

Defaults to ../data

virtual QString makVrf::DtFileListDialog::cleanPath ( const QString &  path) const
virtual
virtual void makVrf::DtFileListDialog::createAcceptButtons ( )
protectedvirtual

Reimplemented in makVrf::DtFileListWidget.

virtual QLayout* makVrf::DtFileListDialog::createAddRemoveButtons ( QHBoxLayout *  fileLayout)
protectedvirtual

Reimplemented in makVrf::DtFileListWidget.

virtual QLayout* makVrf::DtFileListDialog::createAddRemoveButtonLayout ( )
protectedvirtual

Reimplemented in makVrf::DtFileListWidget.

virtual QString makVrf::DtFileListDialog::relativeFilename ( const QString &  file) const
protectedvirtual
virtual bool makVrf::DtFileListDialog::eventFilter ( QObject p,
QEvent *  e 
)
protectedvirtual
void makVrf::DtFileListDialog::filesChanged ( const QStringList &  )
signal
virtual void makVrf::DtFileListDialog::itemSelectionChanged ( )
protectedvirtualslot
virtual void makVrf::DtFileListDialog::addItem ( )
protectedvirtualslot
virtual void makVrf::DtFileListDialog::removeItem ( )
protectedvirtualslot
virtual void makVrf::DtFileListDialog::fileChanged ( )
protectedvirtualslot
virtual void makVrf::DtFileListDialog::selectFile ( )
protectedvirtualslot

Member Data Documentation

QListWidget* makVrf::DtFileListDialog::myFileList
protected

Referenced by fileList().

QPushButton* makVrf::DtFileListDialog::myRemove
protected
QPushButton* makVrf::DtFileListDialog::myFileSelect
protected
QLineEdit* makVrf::DtFileListDialog::myFileEdit
protected
QWidget* makVrf::DtFileListDialog::myFilePanel
protected
QString makVrf::DtFileListDialog::myFilter
protected

Referenced by filter(), and setFilter().

QString makVrf::DtFileListDialog::myStartingDirectory
protected
bool makVrf::DtFileListDialog::myDirectoryMode
protected

Referenced by directoryMode().

bool makVrf::DtFileListDialog::myPathsRelativeToApplication
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)