New element panel : drag and drop an item from a project collection to a files system collection work.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4375 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2016-03-09 10:17:28 +00:00
parent 73e21c408d
commit c8000d55d9
4 changed files with 171 additions and 1 deletions

View File

@@ -39,7 +39,6 @@ class ECHStrategy
/**
* @brief The ECHSFileToFile class
* Manage the copy of directory or element from a file system collection to another file system collection
* (Work only if the source is the common collection and the destination is the custom collection)
*/
class ECHSFileToFile : public ECHStrategy
{
@@ -52,6 +51,21 @@ class ECHSFileToFile : public ECHStrategy
ElementLocation copyElement(ElementLocation &source, ElementLocation &destination, QString rename = QString());
};
/**
* @brief The ECHSXmlToFile class
* Manage the copy of a directory or element from an xml collection to a file.
*/
class ECHSXmlToFile : public ECHStrategy
{
public:
ECHSXmlToFile (ElementLocation &source, ElementLocation &destination);
ElementLocation copy();
private:
ElementLocation copyDirectory(ElementLocation &source, ElementLocation &destination, QString rename = QString());
ElementLocation copyElement(ElementLocation &source, ElementLocation &destination, QString rename = QString());
};
/**
* @brief The ECHSToXml class
* Manage the copy of a directory or element from a collection (no matter if the source is a file system collection or an xml collection)