casa::QtFileWidget Class Reference

Widget for choosing a file. More...

#include <QtEditingWidget.qo.h>

Inheritance diagram for casa::QtFileWidget:
casa::QtEditingWidget

List of all members.

Public Member Functions

 QtFileWidget (bool chooseDirectory, bool saveFile, QWidget *parent=NULL)
 Constructor which takes a flag for whether the file is a directory or not (for the file chooser), a flag for whether the file is for saving (and thus doesn't need to exist, for the file chooser), and an optional parent widget.
 ~QtFileWidget ()
 Destructor.
String getFile () const
 Gets/Sets the currently set file.
void setFile (const String &file)

Private Slots

void browse ()
 Slot to show a file chooser and set the result in the line edit.
void fileChanged ()
 Slot for when the set file changes.
void trimFileName ()

Private Attributes

bool isDirectory_
 File chooser directory flag.
bool isSave_
 File chooser save file flag.
String itsFile_
 Last set file.

Detailed Description

Widget for choosing a file.

Definition at line 101 of file QtEditingWidget.qo.h.


Constructor & Destructor Documentation

casa::QtFileWidget::QtFileWidget ( bool  chooseDirectory,
bool  saveFile,
QWidget *  parent = NULL 
)

Constructor which takes a flag for whether the file is a directory or not (for the file chooser), a flag for whether the file is for saving (and thus doesn't need to exist, for the file chooser), and an optional parent widget.

casa::QtFileWidget::~QtFileWidget (  ) 

Destructor.


Member Function Documentation

void casa::QtFileWidget::browse (  )  [private, slot]

Slot to show a file chooser and set the result in the line edit.

void casa::QtFileWidget::fileChanged (  )  [private, slot]

Slot for when the set file changes.

String casa::QtFileWidget::getFile (  )  const

Gets/Sets the currently set file.

void casa::QtFileWidget::setFile ( const String &  file  ) 
void casa::QtFileWidget::trimFileName (  )  [private, slot]

Member Data Documentation

File chooser directory flag.

Definition at line 122 of file QtEditingWidget.qo.h.

File chooser save file flag.

Definition at line 125 of file QtEditingWidget.qo.h.

String casa::QtFileWidget::itsFile_ [private]

Last set file.

Definition at line 128 of file QtEditingWidget.qo.h.


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

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1