25 #include <QDialogButtonBox>    26 #include <QVBoxLayout>    28 #include <QHBoxLayout>    46                                     tr(
"L'item n'est pas une catégorie", 
"message box title"),
    47                                     tr(
"L'item demandé n'est pas une categrie. Abandon.", 
"message box content"));
    51     if (!location.
exist()) {
    53                                     tr(
"Catégorie inexistante", 
"message box title"),
    54                                     tr(
"La catégorie demandée n'existe pas. Abandon.", 
"message box content"));
    59         setWindowTitle(
tr(
"Éditer une catégorie", 
"window title"));
    66         setWindowTitle(
tr(
"Créer une nouvelle catégorie", 
"window title"));
    70         cat_names.
addName(QLocale::system().name().left(2), 
tr(
"Nom de la nouvelle catégorie", 
"default name when creating a new category"));
    78             tr(
"Édition en lecture seule", 
"message box title"),
    79             tr(
"Vous n'avez pas les privilèges nécessaires pour modifier cette catégorie. Elle sera donc ouverte en lecture seule.", 
"message box content")
   107     QVBoxLayout *editor_layout = 
new QVBoxLayout();
   108     setLayout(editor_layout);
   115     connect(
m_buttons, SIGNAL(rejected()), 
this, SLOT(reject()));
   117     QHBoxLayout *internal_name_layout = 
new QHBoxLayout();
   121     editor_layout -> addLayout(internal_name_layout);
   122     editor_layout -> addWidget(
new QLabel(
tr(
"Vous pouvez spécifier un nom par langue pour la catégorie.")));
   145                                      tr(
"Nom interne manquant", 
"message box title"),
   146                                      tr(
"Vous devez spécifier un nom interne.", 
"message box content"));
   156     if (created_location.
exist()) {
   158                                      tr(
"Nom interne déjà utilisé", 
"message box title"),
   159                                      tr(
"Le nom interne que vous avez choisi est déjà utilisé "   160                                         "par une catégorie existante. Veuillez en choisir un autre.",
   161                                         "message box content"));
   170                                      tr(
"Erreur", 
"message box title"),
   171                                      tr(
"Impossible de créer la catégorie", 
"message box content"));
 QFileNameEdit * m_file_line_edit
 
NamesList nameList()
ElementsLocation::nameList. 
 
ElementsLocation m_created_location
 
ElementsLocation createDir(ElementsLocation &parent, const QString &name, const NamesList &name_list)
 
void addName(const QString &, const QString &)
 
NameListWidget * m_names_list
 
bool addToPath(const QString &)
ElementsLocation::addToPath Add a string to the actual path of this location. 
 
void acceptUpdate()
ElementsCategoryEditor::acceptUpdate Valid the update of the category. 
 
QDialogButtonBox * m_buttons
 
ElementsCategoryEditor(const ElementsLocation &location, bool edit=true, QWidget *parent=nullptr)
ElementsCategoryEditor::ElementsCategoryEditor Constructor. 
 
ElementsLocation m_location
 
~ElementsCategoryEditor() override
ElementsCategoryEditor::~ElementsCategoryEditor Destructor. 
 
void acceptCreation()
ElementsCategoryEditor::acceptCreation Valid the creation of the category. 
 
bool exist() const
ElementsLocation::exist. 
 
void setUpWidget()
ElementsCategoryEditor::setUpWidget. 
 
QString fileSystemPath() const
ElementsLocation::fileSystemPath. 
 
bool setNames(ElementsLocation &location, const NamesList &name_list)
ElementCollectionHandler::setNames Set the names stored in  as the names of the item represented by l...
 
ElementsLocation createdLocation() const
ElementsCategoryEditor::createdLocation. 
 
bool isElement() const
ElementsLocation::isElement. 
 
QMessageBox::StandardButton critical(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)
 
bool isWritable() const
ElementsLocation::isWritable. 
 
QMessageBox::StandardButton warning(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)
 
The ElementCollectionHandler class Provide several method to copy element or directory from a collect...