Tome
A generic data editor for games supporting arbitrary input and output formats.
Public Member Functions | List of all members
Tome::FilePickerWidget Class Reference

Widget that allows to browse for a file and shows the current path. More...

#include <filepickerwidget.h>

Inheritance diagram for Tome::FilePickerWidget:

Public Member Functions

 FilePickerWidget (FacetsController &facetsController, ProjectController &projectController, QWidget *parent=0)
 Constructs a new widget that allows to browse for a file and shows the current path. More...
 
QVariant getFileName () const
 Gets the current file name. More...
 
void setFileName (const QVariant &fileName)
 Sets the current file name. More...
 
void setFieldType (const QString &fieldType)
 Sets the type of the field to edit with this widget (e.g. custom type deriving from File). More...
 

Detailed Description

Widget that allows to browse for a file and shows the current path.

Constructor & Destructor Documentation

◆ FilePickerWidget()

FilePickerWidget::FilePickerWidget ( FacetsController facetsController,
ProjectController projectController,
QWidget *  parent = 0 
)
explicit

Constructs a new widget that allows to browse for a file and shows the current path.

Parameters
facetsControllerController for validating type facets.
projectControllerController for creating, loading and saving projects.
parentOptional owner widget.

Member Function Documentation

◆ getFileName()

QVariant FilePickerWidget::getFileName ( ) const

Gets the current file name.

Returns
Current file name.

◆ setFieldType()

void FilePickerWidget::setFieldType ( const QString &  fieldType)

Sets the type of the field to edit with this widget (e.g. custom type deriving from File).

Parameters
fieldTypeType of the field to edit with this widget

◆ setFileName()

void FilePickerWidget::setFileName ( const QVariant &  fileName)

Sets the current file name.

Parameters
fileNameCurrent file name.

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