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
// pgOperatorFamily.h PostgreSQL OperatorFamily
18
18
class pgOperatorFamilyFactory : public pgSchemaObjFactory
21
pgOperatorFamilyFactory();
22
virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent);
23
virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
21
pgOperatorFamilyFactory();
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 pgOperatorFamilyFactory operatorFamilyFactory;
28
28
class pgOperatorFamily : public pgSchemaObject
31
pgOperatorFamily(pgSchema *newSchema, const wxString& newName = wxT(""));
34
void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
36
wxString GetFullName() { return GetName() + wxT("(") + GetAccessMethod() + wxT(")"); }
37
wxString GetAccessMethod() const { return accessMethod; }
38
void iSetAccessMethod(const wxString&s) { accessMethod=s; }
31
pgOperatorFamily(pgSchema *newSchema, const wxString &newName = wxT(""));
34
wxString GetTranslatedMessage(int kindOfMessage) const;
35
void ShowTreeDetail(ctlTree *browser, frmMain *form = 0, ctlListView *properties = 0, ctlSQLBox *sqlPane = 0);
37
wxString GetFullName()
39
return GetName() + wxT("(") + GetAccessMethod() + wxT(")");
41
wxString GetAccessMethod() const
45
void iSetAccessMethod(const wxString &s)
39
49
wxString GetSql(ctlTree *browser);
41
bool CanCreate() { return false; }
42
bool CanEdit() { return false; }
43
bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
44
wxString GetHelpPage(bool forCreate) const { return wxT("pg/sql-createopfamily"); }
45
pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
59
bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
60
wxString GetHelpPage(bool forCreate) const
62
return wxT("pg/sql-createopfamily");
64
pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
47
bool HasStats() { return false; }
48
bool HasDepends() { return true; }
49
bool HasReferences() { return true; }
52
wxString accessMethod;
80
wxString accessMethod;
83
class pgOperatorFamilyCollection : public pgSchemaObjCollection
86
pgOperatorFamilyCollection(pgaFactory *factory, pgSchema *sch);
87
wxString GetTranslatedMessage(int kindOfMessage) const;