0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-23 02:47:28 +03:00

New scale method has been added

This commit is contained in:
fralx
2020-04-27 11:52:25 +03:00
parent e623978281
commit 318af3b221
40 changed files with 558 additions and 273 deletions

View File

@@ -40,8 +40,15 @@ namespace LimeReport{
class ObjectLoadingStateIntf{
public:
virtual bool isLoading() = 0;
virtual void objectLoadStarted() = 0;
virtual void objectLoadFinished() = 0;
virtual void startLoading() = 0;
virtual void finishLoading() = 0;
};
class ObjectSavingStateIntf{
public:
virtual bool isSaving() = 0;
virtual void startSaving() = 0;
virtual void finishSaving() = 0;
};
class ItemsWriterIntf

View File

@@ -116,7 +116,7 @@ void XMLReader::readItemFromNode(QObject* item,QDomElement *node)
{
EASY_BLOCK("readItemFromNode");
ObjectLoadingStateIntf* lf = dynamic_cast<ObjectLoadingStateIntf*>(item);
if(lf) lf->objectLoadStarted();
if(lf) lf->startLoading();
for (int i=0;i<node->childNodes().count();i++){
QDomElement currentNode =node->childNodes().at(i).toElement();
if (currentNode.attribute("Type")=="Object"){
@@ -128,7 +128,7 @@ void XMLReader::readItemFromNode(QObject* item,QDomElement *node)
readTranslation(item,&currentNode);
} else readProperty(item,&currentNode);
}
if (lf) lf->objectLoadFinished();
if (lf) lf->finishLoading();
BaseDesignIntf* baseObj = dynamic_cast<BaseDesignIntf*>(item);
if(baseObj) {