VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Member Functions
makVrf::DtFileListWidget Class Reference

Widget version of the dialog. More...

Inheritance diagram for makVrf::DtFileListWidget:
Inheritance graph
[legend]

Public Member Functions

 DtFileListWidget (QWidget *)
virtual void init (const QStringList &=QStringList())
- Public Member Functions inherited from makVrf::DtFileListDialog
 DtFileListDialog (QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtFileListDialog ()
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 Member Functions

virtual void createAcceptButtons ()
virtual QLayout * createAddRemoveButtonLayout ()
virtual QLayout * createAddRemoveButtons (QHBoxLayout *fileLayout)
- Protected Member Functions inherited from makVrf::DtFileListDialog
virtual QString relativeFilename (const QString &file) const
virtual bool eventFilter (QObject *p, QEvent *e)

Additional Inherited Members

- Signals inherited from makVrf::DtFileListDialog
void filesChanged (const QStringList &)
- Protected Slots inherited from makVrf::DtFileListDialog
virtual void itemSelectionChanged ()
virtual void addItem ()
virtual void removeItem ()
virtual void fileChanged ()
virtual void selectFile ()
- Protected Attributes inherited from makVrf::DtFileListDialog
QListWidget * myFileList
QPushButtonmyRemove
QPushButtonmyFileSelect
QLineEditmyFileEdit
QWidgetmyFilePanel
QString myFilter
QString myStartingDirectory
bool myDirectoryMode
bool myPathsRelativeToApplication

Detailed Description

Widget version of the dialog.

Use this class if you want the file selection in another dialog. Will remove the OK buttons and move the add/remove buttons

Constructor & Destructor Documentation

makVrf::DtFileListWidget::DtFileListWidget ( QWidget )

Member Function Documentation

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

Reimplemented from makVrf::DtFileListDialog.

virtual void makVrf::DtFileListWidget::createAcceptButtons ( )
protectedvirtual

Reimplemented from makVrf::DtFileListDialog.

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

Reimplemented from makVrf::DtFileListDialog.

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

Reimplemented from makVrf::DtFileListDialog.


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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)