1
1
//////////////////////////////////////////////////////////////////////////
3
3
// pgAdmin III - PostgreSQL Tools
5
// Copyright (C) 2002 - 2010, The pgAdmin Development Team
5
// Copyright (C) 2002 - 2011, The pgAdmin Development Team
6
6
// This software is released under the PostgreSQL Licence
8
8
// pgLanguage.h PostgreSQL Language
18
18
class pgLanguageFactory : public pgDatabaseObjFactory
22
virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent);
23
virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
22
virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent);
23
virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr = wxEmptyString);
25
25
extern pgLanguageFactory languageFactory;
27
27
class pgLanguage : public pgDatabaseObject
30
pgLanguage(const wxString& newName = wxT(""));
32
void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
33
bool CanDropCascaded() { return true; }
35
wxString GetHandlerProc() const { return handlerProc; }
36
void iSetHandlerProc(const wxString& s) { handlerProc = s; }
37
wxString GetValidatorProc() const { return validatorProc; }
38
void iSetValidatorProc(const wxString& s) { validatorProc = s; }
39
bool GetTrusted() const { return trusted; }
40
void iSetTrusted(const bool b) { trusted=b; }
42
bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
43
wxString GetSql(ctlTree *browser);
44
pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
46
bool HasStats() { return false; }
47
bool HasDepends() { return true; }
48
bool HasReferences() { return true; }
30
pgLanguage(const wxString &newName = wxT(""));
32
wxString GetTranslatedMessage(int kindOfMessage) const;
33
void ShowTreeDetail(ctlTree *browser, frmMain *form = 0, ctlListView *properties = 0, ctlSQLBox *sqlPane = 0);
34
bool CanDropCascaded()
39
wxString GetHandlerProc() const
43
void iSetHandlerProc(const wxString &s)
47
wxString GetValidatorProc() const
51
void iSetValidatorProc(const wxString &s)
55
bool GetTrusted() const
59
void iSetTrusted(const bool b)
64
bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
65
wxString GetSql(ctlTree *browser);
66
pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
51
wxString handlerProc, validatorProc;
82
wxString handlerProc, validatorProc;
86
class pgLanguageCollection : public pgDatabaseObjCollection
89
pgLanguageCollection(pgaFactory *factory, pgDatabase *db);
90
wxString GetTranslatedMessage(int kindOfMessage) const;