https://github.com/ialhashim/topo-blend
Revision 39b13612ebd645a65eda854771b517371f2f858a authored by ennetws on 13 March 2015, 18:17:18 UTC, committed by ennetws on 13 March 2015, 18:17:18 UTC
1 parent c702819
Tip revision: 39b13612ebd645a65eda854771b517371f2f858a authored by ennetws on 13 March 2015, 18:17:18 UTC
Create README.md
Create README.md
Tip revision: 39b1361
ShapesGallery.h
#pragma once
#include "DemoPage.h"
#include "ShapeItem.h"
class ShapesGallery : public DemoPage
{
Q_OBJECT
public:
explicit ShapesGallery(Scene * scene, QString title);
private:
QVector<QGraphicsItem*> listA, listB;
int indexA, indexB;
ShapeItem *makeShapeItem( QString name, PropertyMap info, int idx, bool isRight );
void arrangeList(QVector<QGraphicsItem *> &list, int x);
void scrollTo(QVector<QGraphicsItem *> &list, int & index);
int indexOf(QString graphName);
DatasetMap m_dataset;
PropertyMap m_categories;
signals:
void shapeChanged(int,QGraphicsItem*);
public slots:
void show();
void hide();
void loadDataset(DatasetMap dataset);
void layout();
void wheelEvent(QGraphicsSceneWheelEvent*);
void scrollToItem(ShapeItem* item);
void appendShape(QString name, PropertyMap data);
void setCategories( PropertyMap categories );
void reloadDataset( QString filter );
};
Computing file changes ...