casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Slots | Private Attributes
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_
 
     

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

Detailed Description

Widget for choosing a file.

Definition at line 103 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.

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.

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 124 of file QtEditingWidget.qo.h.

File chooser save file flag.

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

Last set file.

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


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