~s-cecilio/lenmus/v5.1.x

« back to all changes in this revision

Viewing changes to src/graphic/GMObject.h

  • Committer: cecilios
  • Date: 2008-09-13 17:53:40 UTC
  • Revision ID: svn-v4:2587a929-2f0e-0410-ae78-fe6f687d5efe:trunk:387

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
class lmController;
58
58
class lmBoxScore;
59
59
class lmGMSelection;
 
60
class lmHandler;
60
61
 
61
62
 
62
63
//------------------------------------------------------------------------------
94
95
        eGMO_ShapeRest,
95
96
    eGMO_ShapeStem,
96
97
        eGMO_ShapeText,
 
98
        eGMO_ShapeTextBlock,
97
99
    eGMO_ShapeTie,
98
100
        eGMO_ShapeTuplet,
99
101
    eGMO_Handler,
159
161
    virtual lmLUnits GetHeight() { return m_uBoundsBottom.y - m_uBoundsTop.y; }
160
162
 
161
163
    virtual bool BoundsContainsPoint(lmUPoint& pointL);
 
164
    virtual bool SelRectContainsPoint(lmUPoint& pointL);
162
165
 
163
166
    // methods related to selection rectangle
164
167
    void SetSelRectangle(lmLUnits x, lmLUnits y, lmLUnits uWidth, lmLUnits uHeight);
168
171
 
169
172
    //rendering
170
173
    virtual void DrawBounds(lmPaper* pPaper, wxColour color);
 
174
        virtual void DrawHandlers(lmPaper* pPaper);
 
175
 
 
176
    //handlers
 
177
        virtual void AddHandler(lmHandler* pHandler);
 
178
        virtual lmHandler* GetFirstHandler();
 
179
        virtual lmHandler* GetNextHandler();
 
180
        virtual int GetNumHandlers() { return (m_pHandlers ? (int)m_pHandlers->size() : 0); }
171
181
 
172
182
        //debugging
173
183
    virtual wxString Dump(int nIndent)=0;
242
252
    //dragging
243
253
    bool                        m_fLeftDraggable;               //this object is draggable
244
254
 
 
255
        //list of handlers contained within this GMObject
 
256
        std::list<lmHandler*>*              m_pHandlers;
 
257
    std::list<lmHandler*>::iterator             m_itHandler;    //for GetFirst(), GetNext() methods
 
258
 
245
259
};
246
260
 
247
261
//------------------------------------------------------------------------------