editor in progress
This commit is contained in:
parent
a0e381b632
commit
2f4e281425
|
@ -2,10 +2,13 @@ include(${QT_USE_FILE})
|
||||||
|
|
||||||
include_directories(${HURRICANE_SOURCE_DIR}/src/hurricane)
|
include_directories(${HURRICANE_SOURCE_DIR}/src/hurricane)
|
||||||
|
|
||||||
set(includes InstanceFigure.h Utils.h)
|
set(includes CellEditor.h CellScene.h)
|
||||||
set(cpps InstanceFigure.cpp CellScene.cpp)
|
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)
|
target_link_libraries(hurricaneeditor ${QT_LIBRARIES} hurricane)
|
||||||
|
|
||||||
install(FILES ${includes} DESTINATION /include/coriolis/hurricane)
|
install(FILES ${includes} DESTINATION /include/coriolis/hurricane)
|
||||||
|
|
|
@ -9,7 +9,6 @@ using namespace Hurricane;
|
||||||
|
|
||||||
class InstanceFigure;
|
class InstanceFigure;
|
||||||
|
|
||||||
|
|
||||||
class CellFigure : public QGraphicsItem {
|
class CellFigure : public QGraphicsItem {
|
||||||
public:
|
public:
|
||||||
CellFigure(Cell* cell);
|
CellFigure(Cell* cell);
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
#include "CellScene.h"
|
#include "CellScene.h"
|
||||||
|
|
||||||
|
CellScene::CellScene(Cell* c)
|
||||||
void CellScene::drawItems(QPainter *painter,
|
: QGraphicsScene()
|
||||||
int numItems,
|
, cell(c)
|
||||||
QGraphicsItem *items[],
|
{}
|
||||||
const QStyleOptionGraphicsItem options[],
|
|
||||||
QWidget *widget) {
|
|
||||||
}
|
|
||||||
|
|
|
@ -3,13 +3,16 @@
|
||||||
|
|
||||||
#include <QGraphicsScene>
|
#include <QGraphicsScene>
|
||||||
|
|
||||||
|
#include "Cell.h"
|
||||||
|
using namespace H;
|
||||||
|
|
||||||
class CellScene : public QGraphicsScene {
|
class CellScene : public QGraphicsScene {
|
||||||
protected :
|
Q_OBJECT
|
||||||
void drawItems(QPainter *painter,
|
|
||||||
int numItems,
|
public:
|
||||||
QGraphicsItem *items[],
|
CellScene(Cell* cell);
|
||||||
const QStyleOptionGraphicsItem options[],
|
private:
|
||||||
QWidget *widget);
|
Cell* cell;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* __CELL_SCENE_H */
|
#endif /* __CELL_SCENE_H */
|
||||||
|
|
|
@ -6,8 +6,7 @@ set(includes CellWidget.h LayersWidget.h CellViewer.h)
|
||||||
set(exports CellViewer.h)
|
set(exports CellViewer.h)
|
||||||
set(cpps CellWidget.cpp LayersWidget.cpp CellViewer.cpp)
|
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})
|
add_library(hurricaneviewer SHARED ${cpps} ${MOC_SRCS})
|
||||||
target_link_libraries(hurricaneviewer ${QT_LIBRARIES} hurricane)
|
target_link_libraries(hurricaneviewer ${QT_LIBRARIES} hurricane)
|
||||||
|
|
Loading…
Reference in New Issue