editor in progress

This commit is contained in:
Christophe Alexandre 2008-01-22 20:16:03 +00:00
parent a0e381b632
commit 2f4e281425
5 changed files with 20 additions and 19 deletions

View File

@ -2,10 +2,13 @@ include(${QT_USE_FILE})
include_directories(${HURRICANE_SOURCE_DIR}/src/hurricane)
set(includes InstanceFigure.h Utils.h)
set(cpps InstanceFigure.cpp CellScene.cpp)
set(includes CellEditor.h CellScene.h)
set(exports CellEditor.h)
set(cpps InstanceFigure.cpp CellScene.cpp CellEditor.cpp)
add_library(hurricaneeditor SHARED ${cpps})
QT4_WRAP_CPP(MOC_SRCS ${includes})
add_library(hurricaneeditor SHARED ${cpps} ${MOC_SRCS})
target_link_libraries(hurricaneeditor ${QT_LIBRARIES} hurricane)
install(FILES ${includes} DESTINATION /include/coriolis/hurricane)

View File

@ -9,7 +9,6 @@ using namespace Hurricane;
class InstanceFigure;
class CellFigure : public QGraphicsItem {
public:
CellFigure(Cell* cell);

View File

@ -1,9 +1,6 @@
#include "CellScene.h"
void CellScene::drawItems(QPainter *painter,
int numItems,
QGraphicsItem *items[],
const QStyleOptionGraphicsItem options[],
QWidget *widget) {
}
CellScene::CellScene(Cell* c)
: QGraphicsScene()
, cell(c)
{}

View File

@ -3,13 +3,16 @@
#include <QGraphicsScene>
#include "Cell.h"
using namespace H;
class CellScene : public QGraphicsScene {
protected :
void drawItems(QPainter *painter,
int numItems,
QGraphicsItem *items[],
const QStyleOptionGraphicsItem options[],
QWidget *widget);
Q_OBJECT
public:
CellScene(Cell* cell);
private:
Cell* cell;
};
#endif /* __CELL_SCENE_H */

View File

@ -6,8 +6,7 @@ set(includes CellWidget.h LayersWidget.h CellViewer.h)
set(exports CellViewer.h)
set(cpps CellWidget.cpp LayersWidget.cpp CellViewer.cpp)
QT4_WRAP_CPP(MOC_SRCS ${includes})
Q4_WRAP_CPP(MOC_SRCS ${includes})
add_library(hurricaneviewer SHARED ${cpps} ${MOC_SRCS})
target_link_libraries(hurricaneviewer ${QT_LIBRARIES} hurricane)