pgadmin3/include/dlg/dlgRule.h
2020-07-07 22:19:12 +05:00

44 lines
846 B
C++

//////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
//
// Copyright (C) 2002 - 2016, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// dlgRule.h - Rule property
//
//////////////////////////////////////////////////////////////////////////
#ifndef __DLG_RULEPROP
#define __DLG_RULEPROP
#include "dlg/dlgProperty.h"
class pgTable;
class pgRule;
class ctlSQLBox;
class dlgRule : public dlgProperty
{
public:
dlgRule(pgaFactory *factory, frmMain *frame, pgRule *r, pgTable *tab);
int Go(bool modal);
void CheckChange();
wxString GetSql();
pgObject *CreateObject(pgCollection *collection);
pgObject *GetObject();
private:
pgTable *table;
pgRule *rule;
wxString oldDefinition;
bool didChange();
DECLARE_EVENT_TABLE()
};
#endif