1 // Copyright (c) 2012 Dennco Project
3 // This program is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, either version 3 of the License, or
6 // (at your option) any later version.
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
13 // You should have received a copy of the GNU General Public License
14 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 // Created by tkawata on Sep-30, 2012.
19 #ifndef DCVCCELLCODE_H
20 #define DCVCCELLCODE_H
22 #include "dcvpagecomponent.h"
26 class DCVCCellCode : public DCVPageComponent
29 DCVCCellCode(DCCellCode *owner);
31 virtual DCVCPage * getPageBelonging() const { return NULL; }
32 virtual DCCell * getOwnerCell() const { return NULL; }
33 virtual bool isResizingArea(float x, float y, float z) const { return false; }
35 virtual void changePageBelonging(DCVCPage *page);
36 virtual void prepareChildrenForDraw(bool isAnimationInterval) {}
37 virtual void drawChildren(bool isAnimationInterval) {}
38 virtual void drawChildrenForSelection(QList<DCVComponent*> *itemList) {}
39 virtual void translate() {}
40 virtual void renderOwnShape(bool isAnimationInterval, bool renderAsWireframe) {}
41 virtual void updateShape() {}
43 virtual bool startDrag(float x, float y, float z, bool isResizingDrag){return false;}
44 virtual bool dragging(float x, float y, float z, bool isResizingDrag){return false;}
45 virtual bool endDrag(float x, float y, float z, bool isResizingDrag){return false; }
47 virtual void saveAttributesToXML(QDomDocument *document, QDomElement* element) {}
48 virtual void loadAttributesFromXML(QDomElement element) {}
52 #endif // DCVCCELLCODE_H