![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
00001 /**************************************************************************** 00002 00003 Copyright (c) 2008 Deepak Chandran 00004 Contact: Deepak Chandran (dchandran1@gmail.com) 00005 See COPYRIGHT.TXT 00006 00007 This file defines functions used to clone graphics items. 00008 These functions used by the copy/paste functions in GraphicsScene and may 00009 also be used by other plugins 00010 00011 ****************************************************************************/ 00012 00013 #ifndef TINKERCELL_CLONEGRAPHICSITEMS_H 00014 #define TINKERCELL_CLONEGRAPHICSITEMS_H 00015 00016 #include <stdlib.h> 00017 #include <QtGui> 00018 #include <QList> 00019 #include <QGraphicsItem> 00020 00021 #ifndef TINKERCELLCOREEXPORT 00022 #ifdef Q_WS_WIN 00023 # if defined(TC_EXPORTS) || defined(TinkerCellCore_EXPORTS) 00024 # define TINKERCELLCOREEXPORT __declspec(dllexport) 00025 # else 00026 # define TINKERCELLCOREEXPORT __declspec(dllimport) 00027 # endif 00028 #else 00029 # define TINKERCELLCOREEXPORT 00030 #endif 00031 #endif 00032 00033 namespace Tinkercell 00034 { 00035 class ItemHandle; 00036 class TextItem; 00037 00043 TINKERCELLCOREEXPORT QGraphicsItem * getGraphicsItem( QGraphicsItem * item ); 00049 TINKERCELLCOREEXPORT QGraphicsItem * cloneGraphicsItem( QGraphicsItem * item ); 00057 TINKERCELLCOREEXPORT QList<QGraphicsItem*> cloneGraphicsItems( QList<QGraphicsItem*>& items, QList<ItemHandle*>& newHandles , bool deep = true); 00062 TINKERCELLCOREEXPORT QList<ItemHandle*> cloneHandles(const QList<ItemHandle*>&); 00063 00064 } 00065 00066 #endif