Implemented object resizing in view.

This commit is contained in:
Jim Evins
2015-08-15 01:43:06 -04:00
parent ef1cadad0c
commit ec60767184
6 changed files with 262 additions and 76 deletions
+16 -1
View File
@@ -37,14 +37,28 @@ namespace glabels
///
class Handle
{
////////////////////////////
// Location enumeration
////////////////////////////
public:
enum Location { NW, N, NE, E, SE, S, SW, W, P1, P2 };
////////////////////////////
// Lifecycle Methods
////////////////////////////
protected:
Handle( LabelModelObject* owner );
Handle( LabelModelObject* owner, Location location );
public:
virtual ~Handle();
////////////////////////////
// Attribue Methods
////////////////////////////
LabelModelObject* owner() const;
Location location() const;
////////////////////////////
// Drawing Methods
@@ -62,6 +76,7 @@ namespace glabels
////////////////////////////
protected:
LabelModelObject* mOwner;
Location mLocation;
};