selection.h
changeset 773 340bc29da9a0
parent 772 e3f722759c7e
child 774 2f002657dada
     1.1 --- a/selection.h	Wed May 20 15:40:14 2009 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,56 +0,0 @@
     1.4 -#ifndef SELECTION_H
     1.5 -#define SELECTION_H
     1.6 -
     1.7 -#include <QString>
     1.8 -#include <QList>
     1.9 -#include <QGraphicsScene>
    1.10 -#include <QItemSelectionModel>
    1.11 -
    1.12 -#include "treeitem.h"
    1.13 -
    1.14 -class BranchObj;
    1.15 -class FloatImageObj;
    1.16 -class MapCenterObj;
    1.17 -class LinkableMapObj;
    1.18 -class VymModel;
    1.19 -
    1.20 -
    1.21 -class Selection 
    1.22 -{
    1.23 -public:
    1.24 -	enum Type {Undefined,Branch,MapCenter,FloatImage};
    1.25 -	Selection ();
    1.26 -	~Selection();
    1.27 -	void setModel (VymModel *);
    1.28 -	void update();      
    1.29 -	bool select (LinkableMapObj*);
    1.30 -	bool select (const QString &);
    1.31 -	bool reselect ();
    1.32 -	void unselect ();
    1.33 -	bool isBlocked ();
    1.34 -	void block();
    1.35 -	void unblock();
    1.36 -	bool isEmpty();
    1.37 -//	uint count();
    1.38 -//	Type type();
    1.39 -//	LinkableMapObj * first();		// first in selection list
    1.40 -//	LinkableMapObj * single();		// NULL, if multiple selected
    1.41 -//	BranchObj* getBranch();
    1.42 -//	TreeItem* getBranchItem();		
    1.43 -//	QModelIndex getBranchIndex();	//!< Returns index of first selected branch or mapcenter
    1.44 -	FloatImageObj* getFloatImage();
    1.45 -
    1.46 -	QString getSelectString();
    1.47 -
    1.48 -private:
    1.49 -	QList <LinkableMapObj*> selectList;
    1.50 -	QList <LinkableMapObj*> lastSelectList;
    1.51 -
    1.52 -	VymModel *model;
    1.53 -
    1.54 -	QColor color;
    1.55 -	bool blocked;					//!< if true, no new selection possible
    1.56 -};
    1.57 -
    1.58 -#endif
    1.59 -