![]() |
Reference documentation for deal.II version 8.4.2
|
#include </build/deal.ii-pdtiAo/deal.ii-8.4.2/contrib/parameter_gui/browse_lineedit.h>
Inherits QFrame.
Public Types | |
| enum | BrowseType |
Public Slots | |
| void | setText (const QString &str) |
Signals | |
| void | editingFinished () |
Public Member Functions | |
| BrowseLineEdit (const BrowseType type=file, QWidget *parent=0) | |
| QSize | sizeHint () const |
| QSize | minimumSizeHint () const |
| QString | text () const |
Public Attributes | |
| BrowseType | browse_type |
Private Slots | |
| void | editing_finished () |
| void | browse () |
Private Attributes | |
| QLineEdit * | line_editor |
| QPushButton * | browse_button |
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.
Definition at line 47 of file browse_lineedit.h.
The browse button opens a file or a directory dialog. This can be specified in the constructor by setting this flag BrowseType.
Definition at line 57 of file browse_lineedit.h.
| 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.
Definition at line 26 of file browse_lineedit.cpp.
| QSize dealii::ParameterGui::BrowseLineEdit::sizeHint | ( | ) | const |
Reimplemented from the QWidget class. Returns the size of the editor.
Definition at line 51 of file browse_lineedit.cpp.
| QSize dealii::ParameterGui::BrowseLineEdit::minimumSizeHint | ( | ) | const |
Reimplemented from the QWidget class.
Definition at line 64 of file browse_lineedit.cpp.
| QString dealii::ParameterGui::BrowseLineEdit::text | ( | ) | const |
Returns the text of the line editor.
Definition at line 77 of file browse_lineedit.cpp.
|
slot |
A slot to set str as text of the line editor.
Definition at line 84 of file browse_lineedit.cpp.
|
signal |
This signal will be emitted, if editing is finished.
|
privateslot |
This slot should be always called, if editing is finished.
Definition at line 91 of file browse_lineedit.cpp.
|
privateslot |
This function opens a file- or a directory dialog as specified in the constructor.
Definition at line 98 of file browse_lineedit.cpp.
| BrowseType dealii::ParameterGui::BrowseLineEdit::browse_type |
This pattern stores the type of the browse dialog.
Definition at line 81 of file browse_lineedit.h.
|
private |
The line editor.
Definition at line 110 of file browse_lineedit.h.
|
private |
The browse button.
Definition at line 114 of file browse_lineedit.h.
1.8.12