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

« back to all changes in this revision

Viewing changes to pgadmin/include/schema/pgLanguage.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
// pgLanguage.h PostgreSQL Language
18
18
class pgLanguageFactory : public pgDatabaseObjFactory
19
19
{
20
20
public:
21
 
    pgLanguageFactory();
22
 
    virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent);
23
 
    virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
 
21
        pgLanguageFactory();
 
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 pgLanguageFactory languageFactory;
26
26
 
27
27
class pgLanguage : public pgDatabaseObject
28
28
{
29
29
public:
30
 
    pgLanguage(const wxString& newName = wxT(""));
31
 
 
32
 
    void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
33
 
    bool CanDropCascaded() { return true; }
34
 
 
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; }
41
 
 
42
 
    bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
43
 
    wxString GetSql(ctlTree *browser);
44
 
    pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
45
 
 
46
 
    bool HasStats() { return false; }
47
 
    bool HasDepends() { return true; }
48
 
    bool HasReferences() { return true; }
 
30
        pgLanguage(const wxString &newName = wxT(""));
 
31
 
 
32
        wxString GetTranslatedMessage(int kindOfMessage) const;
 
33
        void ShowTreeDetail(ctlTree *browser, frmMain *form = 0, ctlListView *properties = 0, ctlSQLBox *sqlPane = 0);
 
34
        bool CanDropCascaded()
 
35
        {
 
36
                return true;
 
37
        }
 
38
 
 
39
        wxString GetHandlerProc() const
 
40
        {
 
41
                return handlerProc;
 
42
        }
 
43
        void iSetHandlerProc(const wxString &s)
 
44
        {
 
45
                handlerProc = s;
 
46
        }
 
47
        wxString GetValidatorProc() const
 
48
        {
 
49
                return validatorProc;
 
50
        }
 
51
        void iSetValidatorProc(const wxString &s)
 
52
        {
 
53
                validatorProc = s;
 
54
        }
 
55
        bool GetTrusted() const
 
56
        {
 
57
                return trusted;
 
58
        }
 
59
        void iSetTrusted(const bool b)
 
60
        {
 
61
                trusted = b;
 
62
        }
 
63
 
 
64
        bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
 
65
        wxString GetSql(ctlTree *browser);
 
66
        pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
 
67
 
 
68
        bool HasStats()
 
69
        {
 
70
                return false;
 
71
        }
 
72
        bool HasDepends()
 
73
        {
 
74
                return true;
 
75
        }
 
76
        bool HasReferences()
 
77
        {
 
78
                return true;
 
79
        }
49
80
 
50
81
private:
51
 
    wxString handlerProc, validatorProc;
52
 
    bool trusted;
 
82
        wxString handlerProc, validatorProc;
 
83
        bool trusted;
 
84
};
 
85
 
 
86
class pgLanguageCollection : public pgDatabaseObjCollection
 
87
{
 
88
public:
 
89
        pgLanguageCollection(pgaFactory *factory, pgDatabase *db);
 
90
        wxString GetTranslatedMessage(int kindOfMessage) const;
53
91
};
54
92
 
55
93
#endif