Optika::FileNameWidget Class Reference

#include <Optika_FileNameWidget.hpp>

List of all members.

Public Slots

void getNewFileName ()

Public Member Functions

 FileNameWidget (QString currentFileName=QString(), bool mustAlreadyExist=false, QWidget *parent=0)
QString getCurrentFileName ()
void setCurrentFileName (QString newName)

Detailed Description

A small widget consisting of a button and label that allows the user to select a file through a QFileDialog. The label displays the currently selected file.

Constructor & Destructor Documentation

Optika::FileNameWidget::FileNameWidget ( QString  currentFileName = QString(),
bool  mustAlreadyExist = false,
QWidget *  parent = 0 

Constructs a FileNameWidget

currentFileName The Filename with which the widget should be initialized.
parent The parent widget.

Member Function Documentation

QString Optika::FileNameWidget::getCurrentFileName (  ) 

Gets the current filename in the widget.

The current filename in the widget.
void Optika::FileNameWidget::getNewFileName (  )  [slot]

Opens a QFileDialog allowing the user to select a new filename.

void Optika::FileNameWidget::setCurrentFileName ( QString  newName  ) 

Sets the current filename in the widget.

The name to which the widget should be set.

The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Enumerations
Generated on Wed Apr 13 10:05:55 2011 for Optika by  doxygen 1.6.3