QElectroTech
0.70
|
The ElementsCategoryEditor class This class provides a dialog to edit an existing category or create a new one. More...
#include <elementscategoryeditor.h>
Public Slots | |
void | acceptCreation () |
ElementsCategoryEditor::acceptCreation Valid the creation of the category. More... | |
void | acceptUpdate () |
ElementsCategoryEditor::acceptUpdate Valid the update of the category. More... | |
Public Member Functions | |
ElementsCategoryEditor (const ElementsLocation &location, bool edit=true, QWidget *parent=nullptr) | |
ElementsCategoryEditor::ElementsCategoryEditor Constructor. More... | |
~ElementsCategoryEditor () override | |
ElementsCategoryEditor::~ElementsCategoryEditor Destructor. More... | |
ElementsLocation | createdLocation () const |
ElementsCategoryEditor::createdLocation. More... | |
Private Member Functions | |
ElementsCategoryEditor (const ElementsCategoryEditor &) | |
void | setUpWidget () |
ElementsCategoryEditor::setUpWidget. More... | |
Private Attributes | |
QDialogButtonBox * | m_buttons |
NameListWidget * | m_names_list |
QLabel * | m_file_name |
QFileNameEdit * | m_file_line_edit |
bool | m_edit_mode |
ElementsLocation | m_location |
ElementsLocation | m_created_location |
The ElementsCategoryEditor class This class provides a dialog to edit an existing category or create a new one.
Definition at line 33 of file elementscategoryeditor.h.
ElementsCategoryEditor::ElementsCategoryEditor | ( | const ElementsLocation & | location, |
bool | edit = true , |
||
QWidget * | parent = nullptr |
||
) |
ElementsCategoryEditor::ElementsCategoryEditor Constructor.
location | : location of the category to edit, or parent directory/category for the creation of a new category |
edit | : true = edit mode, false = creation mode |
parent | : parent widget |
Definition at line 37 of file elementscategoryeditor.cpp.
References acceptCreation(), acceptUpdate(), NamesList::addName(), ElementsLocation::exist(), ElementsLocation::fileSystemPath(), ElementsLocation::isElement(), ElementsLocation::isWritable(), m_buttons, m_edit_mode, m_file_line_edit, m_location, m_names_list, ElementsLocation::nameList(), setUpWidget(), QET::Icons::tr, and QET::QetMessageBox::warning().
|
override |
ElementsCategoryEditor::~ElementsCategoryEditor Destructor.
Definition at line 90 of file elementscategoryeditor.cpp.
|
private |
|
slot |
ElementsCategoryEditor::acceptCreation Valid the creation of the category.
Definition at line 131 of file elementscategoryeditor.cpp.
References ElementsLocation::addToPath(), ElementCollectionHandler::createDir(), QET::QetMessageBox::critical(), ElementsLocation::exist(), NameListWidget::isEmpty(), ElementsLocation::isNull(), ElementsLocation::isWritable(), m_created_location, m_file_line_edit, m_location, m_names_list, NameListWidget::names(), QET::Icons::nl, and QET::Icons::tr.
Referenced by ElementsCategoryEditor().
|
slot |
ElementsCategoryEditor::acceptUpdate Valid the update of the category.
Definition at line 182 of file elementscategoryeditor.cpp.
References NameListWidget::isEmpty(), ElementsLocation::isWritable(), m_location, m_names_list, NameListWidget::names(), and ElementCollectionHandler::setNames().
Referenced by ElementsCategoryEditor().
ElementsLocation ElementsCategoryEditor::createdLocation | ( | ) | const |
ElementsCategoryEditor::createdLocation.
Definition at line 97 of file elementscategoryeditor.cpp.
References m_created_location.
|
private |
ElementsCategoryEditor::setUpWidget.
Definition at line 105 of file elementscategoryeditor.cpp.
References QET::Icons::Cancel, m_buttons, m_file_line_edit, m_file_name, m_names_list, and QET::Icons::tr.
Referenced by ElementsCategoryEditor().
|
private |
Definition at line 47 of file elementscategoryeditor.h.
Referenced by ElementsCategoryEditor(), and setUpWidget().
|
private |
Definition at line 53 of file elementscategoryeditor.h.
Referenced by acceptCreation(), and createdLocation().
|
private |
Definition at line 51 of file elementscategoryeditor.h.
Referenced by ElementsCategoryEditor().
|
private |
Definition at line 50 of file elementscategoryeditor.h.
Referenced by acceptCreation(), ElementsCategoryEditor(), and setUpWidget().
|
private |
Definition at line 49 of file elementscategoryeditor.h.
Referenced by setUpWidget().
|
private |
Definition at line 52 of file elementscategoryeditor.h.
Referenced by acceptCreation(), acceptUpdate(), and ElementsCategoryEditor().
|
private |
Definition at line 48 of file elementscategoryeditor.h.
Referenced by acceptCreation(), acceptUpdate(), ElementsCategoryEditor(), and setUpWidget().