Optika GUI Toolik Version of the Day
Public Slots | Public Member Functions | Private Attributes
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)

Private Attributes

QString currentFileName
QLabel * pathLabel
bool mustAlreadyExist

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.

Definition at line 40 of file Optika_FileNameWidget.hpp.

Constructor & Destructor Documentation

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

Constructs a FileNameWidget

currentFileNameThe Filename with which the widget should be initialized.
parentThe parent widget.

Definition at line 38 of file Optika_FileNameWidget.cpp.

Member Function Documentation

QString Optika::FileNameWidget::getCurrentFileName ( )

Gets the current filename in the widget.

The current filename in the widget.

Definition at line 52 of file Optika_FileNameWidget.cpp.

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

Sets the current filename in the widget.

Thename to which the widget should be set.

Definition at line 56 of file Optika_FileNameWidget.cpp.

void Optika::FileNameWidget::getNewFileName ( ) [slot]

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

Definition at line 61 of file Optika_FileNameWidget.cpp.

Member Data Documentation

The current file name stored in the list.

Definition at line 76 of file Optika_FileNameWidget.hpp.

The label describing the file path.

Definition at line 81 of file Optika_FileNameWidget.hpp.

Whether or not the file name specified must already exist.

Definition at line 86 of file Optika_FileNameWidget.hpp.

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