Public Types | Public Slots | Signals | Public Member Functions | Properties | Private Member Functions

ctkDirectoryButton Class Reference

#include <Libs/Widgets/ctkDirectoryButton.h>

List of all members.

Public Types

enum  Option {
  ShowDirsOnly = 0x00000001, DontResolveSymlinks = 0x00000002, DontConfirmOverwrite = 0x00000004, DontUseSheet = 0x00000008,
  DontUseNativeDialog = 0x00000010, ReadOnly = 0x00000020, HideNameFilterDetails = 0x00000040

Public Slots

void browse ()


void directoryChanged (const QString &)

Public Member Functions

const QString & caption () const
 ctkDirectoryButton (QWidget *parent=0)
 ctkDirectoryButton (const QIcon &icon, const QString &directory, QWidget *parent=0)
 ctkDirectoryButton (const QString &directory, QWidget *parent=0)
QString directory () const
const Options & options () const
 Q_FLAGS (Option Options)
void setCaption (const QString &caption)
void setDirectory (const QString &directory)
void setOptions (const Options &options)


QString caption
QString directory
Options options

Private Member Functions

 CTK_DECLARE_PRIVATE (ctkDirectoryButton)

Detailed Description

Definition at line 33 of file ctkDirectoryButton.h.

Member Enumeration Documentation


Definition at line 44 of file ctkDirectoryButton.h.

Constructor & Destructor Documentation

ctkDirectoryButton::ctkDirectoryButton ( QWidget *  parent = 0  ) 

Definition at line 61 of file ctkDirectoryButton.cpp.

ctkDirectoryButton::ctkDirectoryButton ( const QString &  directory,
QWidget *  parent = 0 

Definition at line 71 of file ctkDirectoryButton.cpp.

ctkDirectoryButton::ctkDirectoryButton ( const QIcon &  icon,
const QString &  directory,
QWidget *  parent = 0 

Definition at line 84 of file ctkDirectoryButton.cpp.

Member Function Documentation

void ctkDirectoryButton::browse (  )  [slot]

Definition at line 146 of file ctkDirectoryButton.cpp.

const QString& ctkDirectoryButton::caption (  )  const
ctkDirectoryButton::CTK_DECLARE_PRIVATE ( ctkDirectoryButton   )  [private]
QString ctkDirectoryButton::directory (  )  const
void ctkDirectoryButton::directoryChanged ( const QString &   )  [signal]

directoryChanged is emitted when the current directory changes if you want a directoryChanged signal as a utility. Feel free to add it

const Options& ctkDirectoryButton::options (  )  const
ctkDirectoryButton::Q_FLAGS ( Option  Options  ) 
void ctkDirectoryButton::setCaption ( const QString &  caption  ) 

The title of the file dialog used to select a new directory If caption is not set, internally use QWidget::tooltip()

Definition at line 118 of file ctkDirectoryButton.cpp.

void ctkDirectoryButton::setDirectory ( const QString &  directory  ) 

Definition at line 97 of file ctkDirectoryButton.cpp.

void ctkDirectoryButton::setOptions ( const Options &  options  ) 

Property Documentation

const QString & ctkDirectoryButton::caption [read, write]

Definition at line 37 of file ctkDirectoryButton.h.

QString ctkDirectoryButton::directory [read, write]

Definition at line 36 of file ctkDirectoryButton.h.

const ctkDirectoryButton::Options & ctkDirectoryButton::options [read, write]

Definition at line 38 of file ctkDirectoryButton.h.

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines