Scribus
Open source desktop publishing at your fingertips
CustomFDialog Class Reference

A Scribus own file dialog. Used almost everywhere. You can see extension handling in e.g. bool SVGExportPlugin::run(QString filename). More...

#include <customfdialog.h>

Inheritance diagram for CustomFDialog:
Collaboration diagram for CustomFDialog:

Public Slots

void handleCompress ()
 Switch the filename extensions by compress checkbox state.
 

Public Member Functions

 CustomFDialog (QWidget *parent, QString wDir, QString caption="", QString filter="", int flags=fdExistingFiles)
 Create Scribus file dialog. More...
 
void setExtension (QString e)
 Set the default extension of the resulting file name. More...
 
QString extension ()
 Get the file extension. More...
 
void setZipExtension (QString e)
 Set the "compress" extension of the resulting file name. More...
 
QString zipExtension ()
 Get the zipped file extension. More...
 
void setSelection (QString)
 
QString selectedFile ()
 
void addWidgets (QWidget *widgets)
 

Public Attributes

QCheckBox * SaveZip
 
QCheckBox * WithFonts
 
QCheckBox * WithProfiles
 
QFrame * Layout
 
QFrame * LayoutC
 
QComboBox * TxCodeM
 
QLabel * TxCodeT
 
ScFileWidgetfileDialog
 
FDialogPreviewpw
 
QCheckBox * showPreview
 
QPushButton * OKButton
 
QPushButton * CancelB
 

Protected Attributes

QVBoxLayout * vboxLayout
 
QVBoxLayout * vboxLayout1
 
QHBoxLayout * hboxLayout
 
QHBoxLayout * Layout1
 
QHBoxLayout * Layout1C
 
QString ext
 Property with default extension.
 
QString extZip
 Property with default compress extension.
 
int optionFlags
 Option flags given by user in ctore.
 
bool previewIsShown
 

Detailed Description

A Scribus own file dialog. Used almost everywhere. You can see extension handling in e.g. bool SVGExportPlugin::run(QString filename).

Constructor & Destructor Documentation

CustomFDialog::CustomFDialog ( QWidget *  parent,
QString  wDir,
QString  caption = "",
QString  filter = "",
int  flags = fdExistingFiles 
)

Create Scribus file dialog.

Parameters
parenta reference to the QWidget parent.
wDirstarting working directory
captiontext caption of the dialog window
filtera mask/filter. E.g.: *.txt
flagscombination of fdFlags, default to fdExistingFiles

Member Function Documentation

QString CustomFDialog::extension ( )

Get the file extension.

Return values
QStringsee setExtension(QString e)
void CustomFDialog::setExtension ( QString  e)

Set the default extension of the resulting file name.

Parameters
estring extension without any "."
void CustomFDialog::setZipExtension ( QString  e)

Set the "compress" extension of the resulting file name.

Parameters
estring extension without any "."
QString CustomFDialog::zipExtension ( )

Get the zipped file extension.

Return values
QStringsee setZipExtension(QString e)

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