Songbook-Client  0.7
This application is a manager of customguitar songbooks
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Slots | Signals | Public Member Functions
CFileChooser Class Reference

CFileChooser is a small widget composed of a QLineEdit and a QPushButton to pick up a file. More...

#include <file-chooser.hh>

List of all members.

Public Slots

void setPath (const QString &path)

Signals

void pathChanged (const QString &path)

Public Member Functions

 CFileChooser (QWidget *parent=0)
 Constructor.
 ~CFileChooser ()
 Destructor.
void readSettings ()
void writeSettings ()
QFileDialog::Options options () const
void setOptions (const QFileDialog::Options &)
QString filter () const
void setFilter (const QString &filter)
QString caption () const
void setCaption (const QString &caption)
QString directory () const
void setDirectory (const QString &directory)
void setDirectory (const QDir &directory)
QString path () const

Detailed Description

CFileChooser is a small widget composed of a QLineEdit and a QPushButton to pick up a file.

The QLineEdit object displays a path to a file and the "browse" QPushButton is connected to a QFileDialog.

file-chooser.png

Member Function Documentation

QString CFileChooser::caption ( ) const

Returns the caption of the QFileDialog.

See also:
setCaption
QString CFileChooser::directory ( ) const

Returns the base directory from which the QFileDialog is opened.

See also:
setDirectory
QString CFileChooser::filter ( ) const

Returns the filter of the QFileDialog.

See also:
setFilter
QFileDialog::Options CFileChooser::options ( ) const

Returns the options of the QFileDialog .

See also:
setOptions
QString CFileChooser::path ( ) const

Returns the path from the QLineEdit.

See also:
setPath
void CFileChooser::pathChanged ( const QString &  path)
signal

This signal is emitted when the path is changed in the QLineEdit.

See also:
path, setPath
void CFileChooser::readSettings ( )

Tries to restore the path previously selected.

See also:
writeSettings
void CFileChooser::setCaption ( const QString &  caption)

Sets the caption of the QFileDialog.

See also:
caption
void CFileChooser::setDirectory ( const QString &  directory)

Sets the base directory from which the QFileDialog is opened.

See also:
directory
void CFileChooser::setDirectory ( const QDir &  directory)

Sets the base directory from which the QFileDialog is opened.

See also:
directory
void CFileChooser::setFilter ( const QString &  filter)

Sets the filter of the QFileDialog.

See also:
filter
void CFileChooser::setOptions ( const QFileDialog::Options &  opts)

Sets the options of the QFileDialog .

See also:
options
void CFileChooser::setPath ( const QString &  path)
slot

Sets the path for the QLineEdit.

See also:
path
void CFileChooser::writeSettings ( )

Saves the selected path.

See also:
readSettings

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