~ubuntu-branches/ubuntu/utopic/pgadmin3/utopic-proposed

« back to all changes in this revision

Viewing changes to pgadmin/include/schema/pgOperatorFamily.h

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2011-06-07 23:03:54 UTC
  • mfrom: (1.3.1 upstream) (13 sid)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20110607230354-3td4j9y71u4ahcvj
Tags: 1.14.0~beta1-1
* New upstream development release, adding Build-Depends on
  postgresql-server-dev-all >= 117~.
* Add Build-Depends on quilt, (un)patch to debian/rules and patch for fixing
  the include for kwlist.h in pgadmin/db/keywords.c.
* Add pg_config --includedir-server output to CPPFLAGS.
* Remove unrecognized configure options: --with-wx-config,
  --with-pgsql-include, --enable-gtk2, --enable-unicode.
* Clean up manually the files that are left behind after the broken
  distclean.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//////////////////////////////////////////////////////////////////////////
2
2
//
3
3
// pgAdmin III - PostgreSQL Tools
4
 
// 
5
 
// Copyright (C) 2002 - 2010, The pgAdmin Development Team
 
4
//
 
5
// Copyright (C) 2002 - 2011, The pgAdmin Development Team
6
6
// This software is released under the PostgreSQL Licence
7
7
//
8
8
// pgOperatorFamily.h PostgreSQL OperatorFamily
18
18
class pgOperatorFamilyFactory : public pgSchemaObjFactory
19
19
{
20
20
public:
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);
24
24
};
25
25
extern pgOperatorFamilyFactory operatorFamilyFactory;
26
26
 
28
28
class pgOperatorFamily : public pgSchemaObject
29
29
{
30
30
public:
31
 
    pgOperatorFamily(pgSchema *newSchema, const wxString& newName = wxT(""));
32
 
    ~pgOperatorFamily();
33
 
 
34
 
    void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
35
 
 
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(""));
 
32
        ~pgOperatorFamily();
 
33
 
 
34
        wxString GetTranslatedMessage(int kindOfMessage) const;
 
35
        void ShowTreeDetail(ctlTree *browser, frmMain *form = 0, ctlListView *properties = 0, ctlSQLBox *sqlPane = 0);
 
36
 
 
37
        wxString GetFullName()
 
38
        {
 
39
                return GetName() + wxT("(") + GetAccessMethod() + wxT(")");
 
40
        }
 
41
        wxString GetAccessMethod() const
 
42
        {
 
43
                return accessMethod;
 
44
        }
 
45
        void iSetAccessMethod(const wxString &s)
 
46
        {
 
47
                accessMethod = s;
 
48
        }
39
49
        wxString GetSql(ctlTree *browser);
40
50
 
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);
 
51
        bool CanCreate()
 
52
        {
 
53
                return false;
 
54
        }
 
55
        bool CanEdit()
 
56
        {
 
57
                return false;
 
58
        }
 
59
        bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
 
60
        wxString GetHelpPage(bool forCreate) const
 
61
        {
 
62
                return wxT("pg/sql-createopfamily");
 
63
        }
 
64
        pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
46
65
 
47
 
    bool HasStats() { return false; }
48
 
    bool HasDepends() { return true; }
49
 
    bool HasReferences() { return true; }
 
66
        bool HasStats()
 
67
        {
 
68
                return false;
 
69
        }
 
70
        bool HasDepends()
 
71
        {
 
72
                return true;
 
73
        }
 
74
        bool HasReferences()
 
75
        {
 
76
                return true;
 
77
        }
50
78
 
51
79
private:
52
 
    wxString accessMethod;
 
80
        wxString accessMethod;
 
81
};
 
82
 
 
83
class pgOperatorFamilyCollection : public pgSchemaObjCollection
 
84
{
 
85
public:
 
86
        pgOperatorFamilyCollection(pgaFactory *factory, pgSchema *sch);
 
87
        wxString GetTranslatedMessage(int kindOfMessage) const;
53
88
};
54
89
 
55
90
#endif