mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin III - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2002 - 2016, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
// hdDrawingEditor.h - Main class that manages all other classes
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef DDDRAWINGEDITOR_H
|
|
#define DDDRAWINGEDITOR_H
|
|
|
|
#include "hotdraw/main/hdDrawingEditor.h"
|
|
class frmDatabaseDesigner;
|
|
|
|
enum
|
|
{
|
|
MNU_NEWTABLE = 321
|
|
};
|
|
|
|
class ddDatabaseDesign;
|
|
|
|
class ddDrawingEditor : public hdDrawingEditor
|
|
{
|
|
public:
|
|
ddDrawingEditor(wxWindow *owner, wxWindow *frmOwner, ddDatabaseDesign *design);
|
|
virtual hdDrawing *createDiagram(wxWindow *owner, bool fromXml);
|
|
virtual void remOrDelSelFigures(int diagramIndex);
|
|
void checkRelationshipsConsistency(int diagramIndex);
|
|
void checkAllDigramsRelConsistency();
|
|
ddDatabaseDesign *getDesign()
|
|
{
|
|
return databaseDesign;
|
|
};
|
|
virtual void notifyChanged();
|
|
|
|
protected:
|
|
private:
|
|
ddDatabaseDesign *databaseDesign;
|
|
frmDatabaseDesigner *frm;
|
|
};
|
|
#endif
|