diff -r e3f722759c7e -r 340bc29da9a0 selection.h --- a/selection.h Wed May 20 15:40:14 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ -#ifndef SELECTION_H -#define SELECTION_H - -#include -#include -#include -#include - -#include "treeitem.h" - -class BranchObj; -class FloatImageObj; -class MapCenterObj; -class LinkableMapObj; -class VymModel; - - -class Selection -{ -public: - enum Type {Undefined,Branch,MapCenter,FloatImage}; - Selection (); - ~Selection(); - void setModel (VymModel *); - void update(); - bool select (LinkableMapObj*); - bool select (const QString &); - bool reselect (); - void unselect (); - bool isBlocked (); - void block(); - void unblock(); - bool isEmpty(); -// uint count(); -// Type type(); -// LinkableMapObj * first(); // first in selection list -// LinkableMapObj * single(); // NULL, if multiple selected -// BranchObj* getBranch(); -// TreeItem* getBranchItem(); -// QModelIndex getBranchIndex(); //!< Returns index of first selected branch or mapcenter - FloatImageObj* getFloatImage(); - - QString getSelectString(); - -private: - QList selectList; - QList lastSelectList; - - VymModel *model; - - QColor color; - bool blocked; //!< if true, no new selection possible -}; - -#endif -