Back to index

Public Member Functions | Protected Member Functions | Protected Attributes
QTMFileDialog Class Reference

#include <QTMFileDialog.hpp>

Inheritance diagram for QTMFileDialog:
Inheritance graph

List of all members.

Public Member Functions

 QTMFileDialog (QWidget *parent=0, const QString &caption=QString(), const QString &directory=QString(), const QString &filter=QString())
QStringList selectedFiles ()
void setViewMode (QFileDialog::ViewMode mode)
void setFileMode (QFileDialog::FileMode mode)
void setDefaultSuffix (const QString &suffix)
void setLabelText (QFileDialog::DialogLabel label, const QString &text)

Protected Member Functions

void dragEnterEvent (QDragEnterEvent *event)
void dragMoveEvent (QDragMoveEvent *event)
void dragLeaveEvent (QDragLeaveEvent *event)
void dropEvent (QDropEvent *event)

Protected Attributes

QHBoxLayout * hbox
QFileDialog * file

Detailed Description

Definition at line 30 of file QTMFileDialog.hpp.

Constructor & Destructor Documentation

QTMFileDialog::QTMFileDialog ( QWidget *  parent = 0,
const QString &  caption = QString(),
const QString &  directory = QString(),
const QString &  filter = QString() 

Definition at line 29 of file QTMFileDialog.cpp.

  : QDialog (parent) {
  setWindowTitle (caption);
  hbox= new QHBoxLayout (this);
  hbox->setContentsMargins (0, 0, 0, 0);
  file= new QMyFileDialog (0, caption, directory, filter);
  hbox->addWidget (file);
  setLayout (hbox);
  connect(file, SIGNAL(accepted()), this, SLOT(accept()));
  connect(file, SIGNAL(finished(int)), this, SLOT(done(int)));
  connect(file, SIGNAL(rejected()), this, SLOT(reject()));

Here is the call graph for this function:

Member Function Documentation

void QTMFileDialog::dragEnterEvent ( QDragEnterEvent *  event) [protected]

Definition at line 43 of file QTMFileDialog.cpp.

void QTMFileDialog::dragLeaveEvent ( QDragLeaveEvent *  event) [protected]

Definition at line 67 of file QTMFileDialog.cpp.

void QTMFileDialog::dragMoveEvent ( QDragMoveEvent *  event) [protected]

Definition at line 48 of file QTMFileDialog.cpp.

void QTMFileDialog::dropEvent ( QDropEvent *  event) [protected]

Definition at line 53 of file QTMFileDialog.cpp.

       const QMimeData *mimeData = event->mimeData();
       foreach (QString format, mimeData->formats()) {
              if (format == "text/uri-list") {
QStringList QTMFileDialog::selectedFiles ( ) [inline]

Definition at line 45 of file QTMFileDialog.hpp.

{ return file->selectedFiles (); };

Here is the caller graph for this function:

void QTMFileDialog::setDefaultSuffix ( const QString &  suffix) [inline]

Definition at line 54 of file QTMFileDialog.hpp.

{ return file->setDefaultSuffix (suffix);}

Here is the caller graph for this function:

void QTMFileDialog::setFileMode ( QFileDialog::FileMode  mode) [inline]

Definition at line 50 of file QTMFileDialog.hpp.

{ return file->setFileMode (mode); };

Here is the caller graph for this function:

void QTMFileDialog::setLabelText ( QFileDialog::DialogLabel  label,
const QString &  text 
) [inline]

Definition at line 55 of file QTMFileDialog.hpp.

{ return file->setLabelText (label, text); };

Here is the caller graph for this function:

void QTMFileDialog::setViewMode ( QFileDialog::ViewMode  mode) [inline]

Definition at line 49 of file QTMFileDialog.hpp.

{ return file->setViewMode (mode); };

Here is the caller graph for this function:

Member Data Documentation

QFileDialog* QTMFileDialog::file [protected]

Definition at line 36 of file QTMFileDialog.hpp.

QHBoxLayout* QTMFileDialog::hbox [protected]

Definition at line 35 of file QTMFileDialog.hpp.

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