umbrello  2.35.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Public Member Functions | Protected Attributes | List of all members
UMLFileDialog Class Reference

#include <umlfiledialog.h>

Inheritance diagram for UMLFileDialog:
Collaboration diagram for UMLFileDialog:

Public Member Functions

 UMLFileDialog (const KUrl &startDir, const QString &filter, QWidget *parent, QWidget *widget=0)
 
 ~UMLFileDialog ()
 
int exec ()
 
void setCaption (const QString &caption)
 
void setOperationMode (KFileDialog::OperationMode mode)
 
void setUrl (const KUrl &url, bool clearforward=true)
 
KUrl selectedUrl ()
 
void setSelection (const QString &name)
 
void setMimeFilter (const QStringList &types, const QString &defaultType=QString())
 
QString currentMimeFilter ()
 return the mime type of the selected file More...
 

Protected Attributes

KFileDialog * m_dialog
 

Detailed Description

Wrapper class for KFileDialog supporting graphviz *.dot files.

This class is required because KFileDialog do not support mixing of mime type based filters with other filters.

Because the graphviz .dot extension do not have an official mimetype, we use a fake mime type named image/x-dot

Constructor & Destructor Documentation

UMLFileDialog::UMLFileDialog ( const KUrl &  startDir,
const QString &  filter,
QWidget *  parent,
QWidget *  widget = 0 
)
UMLFileDialog::~UMLFileDialog ( )

Member Function Documentation

QString UMLFileDialog::currentMimeFilter ( )

return the mime type of the selected file

Returns
mime type string

Here is the call graph for this function:

int UMLFileDialog::exec ( )
KUrl UMLFileDialog::selectedUrl ( )
void UMLFileDialog::setCaption ( const QString &  caption)
void UMLFileDialog::setMimeFilter ( const QStringList &  types,
const QString &  defaultType = QString() 
)

Here is the call graph for this function:

void UMLFileDialog::setOperationMode ( KFileDialog::OperationMode  mode)
void UMLFileDialog::setSelection ( const QString &  name)
void UMLFileDialog::setUrl ( const KUrl &  url,
bool  clearforward = true 
)

Member Data Documentation

KFileDialog* UMLFileDialog::m_dialog
protected

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