mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Mod doc set style de same
This commit is contained in:
@@ -298,9 +298,9 @@ ElementsLocation ECHSToXml::copy()
|
||||
/******************************************************/
|
||||
|
||||
/**
|
||||
* @brief ElementCollectionHandler::ElementCollectionHandler
|
||||
* @param widget
|
||||
*/
|
||||
@brief ElementCollectionHandler::ElementCollectionHandler
|
||||
@param widget
|
||||
*/
|
||||
ElementCollectionHandler::ElementCollectionHandler() {}
|
||||
|
||||
ElementCollectionHandler::~ElementCollectionHandler()
|
||||
@@ -309,14 +309,14 @@ ElementCollectionHandler::~ElementCollectionHandler()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementCollectionHandler::copy
|
||||
* Copy the content of collection represented by source to the collection represented by destination.
|
||||
* Destination must be a directory, else the copy do nothing and return a null ElementLocation
|
||||
* if destination have an item with the same name of source, a dialog ask to user what to do.
|
||||
* @param source
|
||||
* @param destination
|
||||
* @return
|
||||
*/
|
||||
@brief ElementCollectionHandler::copy
|
||||
Copy the content of collection represented by source to the collection represented by destination.
|
||||
Destination must be a directory, else the copy do nothing and return a null ElementLocation
|
||||
if destination have an item with the same name of source, a dialog ask to user what to do.
|
||||
@param source
|
||||
@param destination
|
||||
@return
|
||||
*/
|
||||
ElementsLocation ElementCollectionHandler::copy(ElementsLocation &source, ElementsLocation &destination)
|
||||
{
|
||||
if (!source.exist() || !destination.exist() || destination.isElement()) return ElementsLocation();
|
||||
@@ -332,14 +332,14 @@ ElementsLocation ElementCollectionHandler::copy(ElementsLocation &source, Elemen
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementCollectionHandler::createDir
|
||||
* Create a directorie with name @name as child of @parent.
|
||||
* Parent must be a directory
|
||||
* @param parent : parent of the dir to create
|
||||
* @param name : name of directorie to create
|
||||
* @param name_list : translations of the directorie name
|
||||
* @return : ElementsLocation that represent the new directorie, location can be null if an error was occurred
|
||||
*/
|
||||
@brief ElementCollectionHandler::createDir
|
||||
Create a directorie with name @name as child of @parent.
|
||||
Parent must be a directory
|
||||
@param parent : parent of the dir to create
|
||||
@param name : name of directorie to create
|
||||
@param name_list : translations of the directorie name
|
||||
@return : ElementsLocation that represent the new directorie, location can be null if an error was occurred
|
||||
*/
|
||||
ElementsLocation ElementCollectionHandler::createDir(ElementsLocation &parent, const QString &name, const NamesList &name_list)
|
||||
{
|
||||
//Parent must be a directorie and writable
|
||||
@@ -393,13 +393,13 @@ ElementsLocation ElementCollectionHandler::createDir(ElementsLocation &parent, c
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementCollectionHandler::importFromProject
|
||||
* Import the element represented by @location to the embedded collection of @project at the same path.
|
||||
* @location must represente an element owned by a project embedded collection
|
||||
* @param project : project where copy the element
|
||||
* @param location : location to copy
|
||||
* @return true if import with success
|
||||
*/
|
||||
@brief ElementCollectionHandler::importFromProject
|
||||
Import the element represented by @location to the embedded collection of @project at the same path.
|
||||
@location must represente an element owned by a project embedded collection
|
||||
@param project : project where copy the element
|
||||
@param location : location to copy
|
||||
@return true if import with success
|
||||
*/
|
||||
bool ElementCollectionHandler::importFromProject(QETProject *project, ElementsLocation &location)
|
||||
{
|
||||
if (!(location.isElement() && location.exist() && location.isProject())) return false;
|
||||
@@ -436,12 +436,12 @@ bool ElementCollectionHandler::importFromProject(QETProject *project, ElementsLo
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementCollectionHandler::setNames
|
||||
* Set the names stored in @name_list as the names of the item represented by location
|
||||
* @param location : location to change the names
|
||||
* @param name_list : NamesList to use
|
||||
* @return return true if success
|
||||
*/
|
||||
@brief ElementCollectionHandler::setNames
|
||||
Set the names stored in @name_list as the names of the item represented by location
|
||||
@param location : location to change the names
|
||||
@param name_list : NamesList to use
|
||||
@return return true if success
|
||||
*/
|
||||
bool ElementCollectionHandler::setNames(ElementsLocation &location, const NamesList &name_list)
|
||||
{
|
||||
if ( !(location.exist() && location.isWritable()) ) {
|
||||
|
||||
Reference in New Issue
Block a user