Scribus
Open source desktop publishing at your fingertips
ScFileWidget Class Reference

Simple wrapper simulating the QFileDialog as a common widget. Usage is simple - everything is like in QFileDialog except it is not a dialog, it's a widget. It can be used for extension features etc. More...

#include <scfilewidget.h>

Inheritance diagram for ScFileWidget:
Collaboration diagram for ScFileWidget:

Public Slots

void accept ()
 
void locationDropped (QString fileUrl)
 
void gotoParentDirectory ()
 
void gotoSelectedDirectory ()
 
void gotoDesktopDirectory ()
 
void gotoHomeDirectory ()
 

Public Member Functions

 ScFileWidget (QWidget *parent)
 
QString selectedFile ()
 

Detailed Description

Simple wrapper simulating the QFileDialog as a common widget. Usage is simple - everything is like in QFileDialog except it is not a dialog, it's a widget. It can be used for extension features etc.

Note
Original QFileDialog OK/Cancel buttons are hidden. You must write your own dialog accept/reject handling. There is one good idea - it's quite good to handle original dialog accepted() signal on your own to prevent ugly widget hidding when user e.g. doubleclicks the "open" file (in the parent (new) dialog): connect(fileWidget, SIGNAL(accepted()), this, SLOT(accept()));
Author
Petr Vanek petr@.nosp@m.scri.nosp@m.bus.i.nosp@m.nfo

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