casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Slots | Private Attributes | List of all members
casa::QtFileWidget Class Reference

Widget for choosing a file. More...

#include <QtEditingWidget.qo.h>

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

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. More...
 
 ~QtFileWidget ()
 Destructor. More...
 
casacore::String getFile () const
 Gets/Sets the currently set file. More...
 
void setFile (const casacore::String &file)
 
- Public Member Functions inherited from casa::QtEditingWidget
 QtEditingWidget (QWidget *parent=NULL)
 Constructor which takes an optional parent widget. More...
 
virtual ~QtEditingWidget ()
 Destructor. More...
 
virtual void addRadioButtonsToGroup (QButtonGroup *group) const
 Adds any radio buttons in the widget to the given button group. More...
 

Private Slots

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

Private Attributes

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

Additional Inherited Members

- Signals inherited from casa::QtEditingWidget
void changed ()
 This signal should be emitted whenever the user changes any value settings in the GUI. More...
 
void differentFromSet ()
 This signal should be emitted when the user changes any value settings in the GUI AND the new value is different from the last set value. More...
 
void editDone ()
 to change widget focus when editing done More...
 

Detailed Description

Widget for choosing a file.

Definition at line 104 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 ( )
privateslot

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

void casa::QtFileWidget::fileChanged ( )
privateslot

Slot for when the set file changes.

casacore::String casa::QtFileWidget::getFile ( ) const

Gets/Sets the currently set file.

void casa::QtFileWidget::setFile ( const casacore::String file)
void casa::QtFileWidget::trimFileName ( )
privateslot

Member Data Documentation

bool casa::QtFileWidget::isDirectory_
private

casacore::File chooser directory flag.

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

bool casa::QtFileWidget::isSave_
private

casacore::File chooser save file flag.

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

casacore::String casa::QtFileWidget::itsFile_
private

Last set file.

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


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