OSDN Git Service

[denncoCreator] Implementing save functionality. The work is still in progress.
[dennco/denncoCreator.git] / Source / visualizer / component / dcvccellcode.h
1 //  Copyright (c) 2012 Dennco Project
2 //
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.
7 //
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.
12 //
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/>.
15
16 //
17 //  Created by tkawata on Sep-30, 2012.
18 //
19 #ifndef DCVCCELLCODE_H
20 #define DCVCCELLCODE_H
21
22 #include "dcvpagecomponent.h"
23
24 class DCCellCode;
25
26 class DCVCCellCode : public DCVPageComponent
27 {
28 public:
29     DCVCCellCode(DCCellCode *owner);
30
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; }
34
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() {}
42
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; }
46
47     virtual void    saveAttributesToXML(QDomDocument *document, QDomElement* element) {}
48     virtual void    loadAttributesFromXML(QDomElement element) {}
49
50 };
51
52 #endif // DCVCCELLCODE_H