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:
@@ -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
|
||||
|
@@ -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,¤tNode);
|
||||
} else readProperty(item,¤tNode);
|
||||
}
|
||||
if (lf) lf->objectLoadFinished();
|
||||
if (lf) lf->finishLoading();
|
||||
|
||||
BaseDesignIntf* baseObj = dynamic_cast<BaseDesignIntf*>(item);
|
||||
if(baseObj) {
|
||||
|
Reference in New Issue
Block a user