QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ElementsCategoryEditor Class Reference

The ElementsCategoryEditor class This class provides a dialog to edit an existing category or create a new one. More...

#include <elementscategoryeditor.h>

Inherits QDialog.

Collaboration diagram for ElementsCategoryEditor:
Collaboration graph

Public Slots

void acceptCreation ()
 ElementsCategoryEditor::acceptCreation Valid the creation of the category.
 
void acceptUpdate ()
 ElementsCategoryEditor::acceptUpdate Valid the update of the category.
 

Public Member Functions

 ElementsCategoryEditor (const ElementsLocation &location, bool edit=true, QWidget *parent=nullptr)
 ElementsCategoryEditor::ElementsCategoryEditor Constructor.
 
 ~ElementsCategoryEditor () override
 ElementsCategoryEditor::~ElementsCategoryEditor Destructor.
 
ElementsLocation createdLocation () const
 ElementsCategoryEditor::createdLocation.
 

Private Member Functions

 ElementsCategoryEditor (const ElementsCategoryEditor &)
 
void setUpWidget ()
 ElementsCategoryEditor::setUpWidget.
 

Private Attributes

QDialogButtonBox * m_buttons
 
NameListWidgetm_names_list
 
QLabel * m_file_name
 
QFileNameEditm_file_line_edit
 
bool m_edit_mode
 
ElementsLocation m_location
 
ElementsLocation m_created_location
 

Detailed Description

The ElementsCategoryEditor class This class provides a dialog to edit an existing category or create a new one.

Constructor & Destructor Documentation

◆ ElementsCategoryEditor() [1/2]

ElementsCategoryEditor::ElementsCategoryEditor ( const ElementsLocation location,
bool  edit = true,
QWidget *  parent = nullptr 
)

ElementsCategoryEditor::ElementsCategoryEditor Constructor.

Parameters
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
Here is the call graph for this function:

◆ ~ElementsCategoryEditor()

ElementsCategoryEditor::~ElementsCategoryEditor ( )
override

◆ ElementsCategoryEditor() [2/2]

ElementsCategoryEditor::ElementsCategoryEditor ( const ElementsCategoryEditor )
private

Member Function Documentation

◆ acceptCreation

void ElementsCategoryEditor::acceptCreation ( )
slot

ElementsCategoryEditor::acceptCreation Valid the creation of the category.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acceptUpdate

void ElementsCategoryEditor::acceptUpdate ( )
slot

ElementsCategoryEditor::acceptUpdate Valid the update of the category.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createdLocation()

ElementsLocation ElementsCategoryEditor::createdLocation ( ) const

ElementsCategoryEditor::createdLocation.

Returns
the location of the created directory
Here is the caller graph for this function:

◆ setUpWidget()

void ElementsCategoryEditor::setUpWidget ( )
private

ElementsCategoryEditor::setUpWidget.

Here is the caller graph for this function:

Member Data Documentation

◆ m_buttons

QDialogButtonBox* ElementsCategoryEditor::m_buttons
private

◆ m_created_location

ElementsLocation ElementsCategoryEditor::m_created_location
private

◆ m_edit_mode

bool ElementsCategoryEditor::m_edit_mode
private

◆ m_file_line_edit

QFileNameEdit* ElementsCategoryEditor::m_file_line_edit
private

◆ m_file_name

QLabel* ElementsCategoryEditor::m_file_name
private

◆ m_location

ElementsLocation ElementsCategoryEditor::m_location
private

◆ m_names_list

NameListWidget* ElementsCategoryEditor::m_names_list
private

The documentation for this class was generated from the following files: