VR-Forces 4.8 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. More...
 
void setFilter (const QString &)
 Sets filter to be used when selecting file. More...
 
const QString & filter () const
 
void setStartingDirectory (const QString &)
 Sets starting directory to be used when selecting file, if the file is an <empty file>=""> More...
 
const QString & startingDirectory () const
 
virtual QStringList files (bool allIncludingEmpty=false) const
 Files that are in the list box. More...
 
virtual QString mergedFiles (const QChar &separator= ';') const
 
virtual void setDirectoryMode (bool)
 Sets the mode where only directories are allowed to be selected. More...
 
bool directoryMode () const
 
virtual void setPathsRelativeToApplication (bool)
 Make all directories relative to applicatio. More...
 
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. More...
 
static QString relativePath ()
 Returns the folder that paths should be made relative to. More...
 
static QString dataFolder ()
 Returns the data folder of this application. More...
 
- 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 Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)