![]() |
QElectroTech
0.8-dev
|
#include <elementdialog.h>
Inherits QDialog.

Public Member Functions | |
| ElementDialog (uint=ElementDialog::OpenElement, QWidget *parent=nullptr) | |
| ElementDialog::ElementDialog. More... | |
| ElementsLocation | location () const |
| ElementDialog::location. More... | |
Static Public Member Functions | |
| static ElementsLocation | getOpenElementLocation (QWidget *parent=nullptr) |
| ElementDialog::getOpenElementLocation Display a dialog for open an element through her location. More... | |
| static ElementsLocation | getSaveElementLocation (QWidget *parent=nullptr) |
| ElementDialog::getSaveElementLocation Display a dialog that allow to user to select an element (existing or not) who he want to save. More... | |
Private Types | |
| enum | { OpenElement = 0, SaveElement = 1, OpenCategory = 2, SaveCategory = 3 } |
Private Member Functions | |
| ElementDialog (const ElementDialog &) | |
| void | setUpWidget () |
| ElementDialog::setUpWidget Build and setup the widgets of this dialog. More... | |
| void | setUpConnection () |
| ElementDialog::setUpConnection Setup connection of this dialog. More... | |
| void | indexClicked (const QModelIndex &index) |
| ElementDialog::indexClicked. More... | |
| void | updateWidget () |
| void | checkCurrentLocation () |
| ElementDialog::checkCurrentLocation Update this dialog according to the current selected location and the current mode. More... | |
| void | checkAccept () |
Static Private Member Functions | |
| static ElementsLocation | execConfiguredDialog (int, QWidget *parent=nullptr) |
| ElementDialog::execConfiguredDialog launch a dialog with the chosen mode. More... | |
Private Attributes | |
| uint | m_mode |
| ElementsLocation | m_location |
| QDialogButtonBox * | m_buttons_box = nullptr |
| QFileNameEdit * | m_text_field = nullptr |
| QTreeView * | m_tree_view = nullptr |
| ElementsCollectionModel * | m_model = nullptr |
This class provides several dialogs to select an element or a category (e.g. new or existing, for opening or for saving...).
|
private |
| ElementDialog::ElementDialog | ( | uint | mode = ElementDialog::OpenElement, |
| QWidget * | parent = nullptr |
||
| ) |
| mode | |
| parent |


|
private |
|
private |


|
private |
ElementDialog::checkCurrentLocation Update this dialog according to the current selected location and the current mode.


|
staticprivate |
ElementDialog::execConfiguredDialog launch a dialog with the chosen mode.
| mode | : mode of the dialog |
| parentWidget | : parent widget of the dialog |


|
static |
ElementDialog::getOpenElementLocation Display a dialog for open an element through her location.
| parentWidget |


|
static |
ElementDialog::getSaveElementLocation Display a dialog that allow to user to select an element (existing or not) who he want to save.
| parentWidget |


|
private |
| index |


| ElementsLocation ElementDialog::location | ( | ) | const |


|
private |
ElementDialog::setUpConnection Setup connection of this dialog.


|
private |
ElementDialog::setUpWidget Build and setup the widgets of this dialog.


|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.18