QElectroTech 0.100.0-dev
|
#include <elementdialog.h>
Inherits QDialog.
Public Member Functions | |
ElementDialog (uint=ElementDialog::OpenElement, QWidget *parent=nullptr) | |
ElementDialog::ElementDialog. | |
ElementsLocation | location () const |
ElementDialog::location. | |
Static Public Member Functions | |
static ElementsLocation | getOpenElementLocation (QWidget *parent=nullptr) |
ElementDialog::getOpenElementLocation Display a dialog for open an element through her location. | |
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. | |
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. | |
void | setUpConnection () |
ElementDialog::setUpConnection Setup connection of this dialog. | |
void | indexClicked (const QModelIndex &index) |
ElementDialog::indexClicked. | |
void | updateWidget () |
void | checkCurrentLocation () |
ElementDialog::checkCurrentLocation Update this dialog according to the current selected location and the current mode. | |
void | checkAccept () |
Static Private Member Functions | |
static ElementsLocation | execConfiguredDialog (int, QWidget *parent=nullptr) |
ElementDialog::execConfiguredDialog launch a dialog with the chosen mode. | |
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 |
||
) |
|
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 |