frameobj.h
author insilmaril
Thu, 31 Aug 2006 12:51:20 +0000
branchqt4-port
changeset 19 caba269c3757
parent 2 608f976aa7bb
child 408 c2a05fa925a1
permissions -rw-r--r--
More undo/redo commands. Undo debug output still enabled
     1 #ifndef FRAMEOBJ_H
     2 #define FRAMEOBJ_H
     3 
     4 #include "mapobj.h"
     5 
     6 enum FrameType {NoFrame,Rectangle};
     7 
     8 class FrameObj:public MapObj {
     9 public:
    10     FrameObj();
    11     FrameObj(Q3Canvas*);
    12     ~FrameObj();
    13     void init();
    14     void clear();
    15     void move (double x,double y);    // move to absolute Position
    16     void moveBy (double x,double y);  // move to relative Position
    17 	void positionBBox();			 
    18 	void calcBBoxSize();			
    19 	void setRect (const QRect &);	  // set dimensions			
    20     int getBorder();
    21     FrameType getFrameType ();
    22     QString getFrameTypeName ();
    23     void setFrameType (const FrameType &);
    24     void setFrameType (const QString &);
    25     void setVisibility(bool);
    26 
    27 protected:
    28     FrameType type;
    29     Q3CanvasRectangle* rectFrame;
    30     int border;									// distance text - frame
    31 };
    32 #endif
    33