Claudio Valerio 13 years ago
parent d68abb8165
commit 974926e2af
  1. 9
      src/adaptors/UBSvgSubsetAdaptor.cpp
  2. 1
      src/core/UB.h
  3. 2
      src/gui/UBLibNavigatorWidget.cpp
  4. 6
      src/tools/UBGraphicsCache.h

@ -1052,13 +1052,12 @@ bool UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistScene()
UBGraphicsRuler *ruler = qgraphicsitem_cast<UBGraphicsRuler*> (item);
if (ruler && ruler->isVisible())
if (ruler && ruler->isVisible())
{
rulerToSvg(ruler);
continue;
}
qDebug() << item;
UBGraphicsCache* cache = qgraphicsitem_cast<UBGraphicsCache*>(item);
if(cache && cache->isVisible())
{
@ -1068,7 +1067,7 @@ bool UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistScene()
UBGraphicsCompass *compass = qgraphicsitem_cast<UBGraphicsCompass*> (item);
if (compass && compass->isVisible())
if (compass && compass->isVisible())
{
compassToSvg(compass);
continue;
@ -1076,7 +1075,7 @@ bool UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistScene()
UBGraphicsProtractor *protractor = qgraphicsitem_cast<UBGraphicsProtractor*> (item);
if (protractor && protractor->isVisible())
if (protractor && protractor->isVisible())
{
protractorToSvg(protractor);
continue;
@ -1084,7 +1083,7 @@ bool UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistScene()
UBGraphicsTriangle *triangle = qgraphicsitem_cast<UBGraphicsTriangle*> (item);
if (triangle && triangle->isVisible())
if (triangle && triangle->isVisible())
{
triangleToSvg(triangle);
continue;

@ -99,6 +99,7 @@ struct UBGraphicsItemType
StrokeItemType,
TriangleItemType,
MagnifierItemType,
cacheItemType
};
};

@ -73,6 +73,8 @@ UBLibNavigatorWidget::UBLibNavigatorWidget(QWidget *parent, const char *name):QW
connect(libWidget->actionBar(), SIGNAL(searchElement(QString)), mLibWidget, SLOT(onSearchElement(QString)));
connect(libWidget->actionBar(), SIGNAL(newFolderToCreate()), mLibWidget, SLOT(onNewFolderToCreate()));
/*** to update the search bar **/
connect(mLibWidget, SIGNAL(itemClicked()),libWidget->actionBar(), SLOT(onItemChanged()));
connect(mPathViewer, SIGNAL(mouseClick(UBChainedLibElement*)),libWidget->actionBar(), SLOT(onItemChanged()));

@ -19,6 +19,7 @@
#include <QGraphicsSceneMouseEvent>
#include "domain/UBItem.h"
#include "core/UB.h"
#define CACHE_ZVALUE 100000
@ -33,6 +34,11 @@ class UBGraphicsCache : public QGraphicsRectItem, public UBItem
public:
UBGraphicsCache();
~UBGraphicsCache();
enum { Type = UBGraphicsItemType::cacheItemType };
virtual int type() const{ return Type;}
virtual UBItem* deepCopy() const;
QColor maskColor();

Loading…
Cancel
Save