|
OpenFCST: The open-source Fuel Cell Simulation Toolbox
|
The BrowseLineEdit class provides a special line editor for the parameterGUI. More...
#include <browse_lineedit.h>


Public Types | |
| enum | BrowseType { file = 0, directory = 1 } |
The browse button opens a file or a directory dialog. More... | |
Public Slots | |
| void | setText (const QString &str) |
A slot to set str as text of the line editor. More... | |
Signals | |
| void | editingFinished () |
This signal will be emitted, if editing is finished. More... | |
Public Member Functions | |
| BrowseLineEdit (const BrowseType type=file, QWidget *parent=0) | |
| Constructor. More... | |
| QSize | sizeHint () const |
| Reimplemented from the QWidget class. More... | |
| QSize | minimumSizeHint () const |
| Reimplemented from the QWidget class. More... | |
| QString | text () const |
| Returns the text of the line editor. More... | |
Public Attributes | |
| BrowseType | browse_type |
| This pattern stores the type of the browse dialog. More... | |
Private Slots | |
| void | editing_finished () |
This slot should be always called, if editing is finished. More... | |
| void | browse () |
| This function opens a file- or a directory dialog as specified in the constructor. More... | |
Private Attributes | |
| QLineEdit * | line_editor |
| The line editor. More... | |
| QPushButton * | browse_button |
| The browse button. More... | |
The BrowseLineEdit class provides a special line editor for the parameterGUI.
While editing file- or directory names it is much more easier to have a file-dialog and just click on existing files or directories. This editor provides a simple QLineEditor and a browse-button which opens a file- or a directory dialog. Clicking on existing files or directories copies the path to the line editor. Depending on the BrowseType given in the constructor the browse button opens a file or a directory dialog.
| dealii::ParameterGui::BrowseLineEdit::BrowseLineEdit | ( | const BrowseType | type = file, |
| QWidget * | parent = 0 |
||
| ) |
Constructor.
The type of the browse dialog can be specified by the flag BrowseType, the default is file.
|
privateslot |
This function opens a file- or a directory dialog as specified in the constructor.
|
privateslot |
This slot should be always called, if editing is finished.
|
signal |
This signal will be emitted, if editing is finished.
| QSize dealii::ParameterGui::BrowseLineEdit::minimumSizeHint | ( | ) | const |
Reimplemented from the QWidget class.
|
slot |
A slot to set str as text of the line editor.
| QSize dealii::ParameterGui::BrowseLineEdit::sizeHint | ( | ) | const |
Reimplemented from the QWidget class.
Returns the size of the editor.
| QString dealii::ParameterGui::BrowseLineEdit::text | ( | ) | const |
Returns the text of the line editor.
|
private |
The browse button.
| BrowseType dealii::ParameterGui::BrowseLineEdit::browse_type |
This pattern stores the type of the browse dialog.
|
private |
The line editor.
1.8.5