1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
//////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
//
// Copyright (C) 2002 - 2014, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// hdDrawingEditor.h - Main class that manages all other classes
//
//////////////////////////////////////////////////////////////////////////
#ifndef HDDRAWINGEDITOR_H
#define HDDRAWINGEDITOR_H
#include "hotdraw/main/hdDrawingView.h"
#include "hotdraw/tools/hdITool.h"
#include "hotdraw/utilities/hdArrayCollection.h"
class hdDrawingEditor : public hdObject
{
public:
hdDrawingEditor(wxWindow *owner, bool defaultView = true );
~hdDrawingEditor();
hdDrawingView *getExistingView(int diagramIndex);
hdDrawing *getExistingDiagram(int diagramIndex);
virtual hdDrawing *createDiagram(wxWindow *owner, bool fromXml);
virtual void deleteDiagram(int diagramIndex, bool deleteView = true);
virtual void addDiagramFigure(int diagramIndex, hdIFigure *figure);
virtual void removeDiagramFigure(int diagramIndex, hdIFigure *figure);
virtual void addModelFigure(hdIFigure *figure);
virtual void deleteModelFigure(hdIFigure *figure);
virtual void removeFromAllSelections(hdIFigure *figure);
virtual void removeAllDiagramsFigures();
virtual void deleteAllModelFigures();
virtual bool modelIncludes(hdIFigure *figure);
virtual void remOrDelSelFigures(int diagramIndex);
virtual void changeDefaultFiguresFont();
int modelCount();
hdIteratorBase *modelFiguresEnumerator();
hdIteratorBase *diagramsEnumerator();
bool modelHasChanged();
virtual void notifyChanged();
protected:
hdArrayCollection *_diagrams;
hdArrayCollection *_model;
wxWindow *editorOwner;
bool modelChanged;
private:
};
#endif
|