Scribus
Open source desktop publishing at your fingertips
scfilewidget.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef SCFILEWIDGET_H
8 #define SCFILEWIDGET_H
9 
10 #include <QFileDialog>
11 
12 #include "scribusapi.h"
13 
25 class SCRIBUS_API ScFileWidget : public QFileDialog
26 {
27  Q_OBJECT
28 
29 public:
30  ScFileWidget(QWidget * parent);
31 
32  QString selectedFile();
33 
34 public slots:
35  void accept();
36  void locationDropped(QString fileUrl);
37  void gotoParentDirectory();
38  void gotoSelectedDirectory();
39  void gotoDesktopDirectory();
40  void gotoHomeDirectory();
41 };
42 
43 #endif
Simple wrapper simulating the QFileDialog as a common widget. Usage is simple - everything is like in...
Definition: scfilewidget.h:25