VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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(), bool createButtons=true)
- 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 (bool allIncludingEmpty=false) 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 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

- Public Slots inherited from makVrf::DtFileListDialog
virtual void addItem ()
virtual void removeItem ()
virtual QString changeSlashes (const QString &)
- Signals inherited from makVrf::DtFileListDialog
void filesChanged (const QStringList &)
- Static Public Member Functions inherited from makVrf::DtFileListDialog
static QString makeRelativeTo (QString origFile)
static QString makeRelativeTo (QString filename, QString path)
 If the name given contains the directory, adds ../ to that path, removing everything before it.
static QString relativePath ()
 Returns the folder that paths should be made relative to.
static QString dataFolder ()
 Returns the data folder of this application.
- Public Attributes inherited from makVrf::DtFileListDialog
QListWidget * myFileList
QPushButtonmyRemove
QPushButtonmyAdd
QPushButtonmyFileSelect
QLineEditmyFileEdit
QWidget * myFilePanel
- Protected Slots inherited from makVrf::DtFileListDialog
virtual void fileChanged ()
virtual void itemSelectionChanged ()
virtual void selectFile ()
- Protected Attributes inherited from makVrf::DtFileListDialog
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(),
bool  createButtons = true 
)
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 Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)