1.1.4
by Lionel Porcheron
Import upstream version 1.8.2 |
1 |
//////////////////////////////////////////////////////////////////////////
|
2 |
//
|
|
3 |
// pgAdmin III - PostgreSQL Tools
|
|
1.1.14
by Gerfried Fuchs
Import upstream version 1.12.3 |
4 |
//
|
5 |
// Copyright (C) 2002 - 2011, The pgAdmin Development Team
|
|
1.1.8
by Gerfried Fuchs
Import upstream version 1.10.2 |
6 |
// This software is released under the PostgreSQL Licence
|
1.1.4
by Lionel Porcheron
Import upstream version 1.8.2 |
7 |
//
|
8 |
// pgLanguage.h PostgreSQL Language
|
|
9 |
//
|
|
10 |
//////////////////////////////////////////////////////////////////////////
|
|
11 |
||
12 |
#ifndef PGLANGUAGE_H
|
|
13 |
#define PGLANGUAGE_H
|
|
14 |
||
15 |
#include "pgDatabase.h" |
|
16 |
||
17 |
class pgCollection; |
|
18 |
class pgLanguageFactory : public pgDatabaseObjFactory |
|
19 |
{
|
|
20 |
public: |
|
1.1.14
by Gerfried Fuchs
Import upstream version 1.12.3 |
21 |
pgLanguageFactory(); |
22 |
virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent); |
|
23 |
virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr = wxEmptyString); |
|
1.1.4
by Lionel Porcheron
Import upstream version 1.8.2 |
24 |
};
|
25 |
extern pgLanguageFactory languageFactory; |
|
26 |
||
27 |
class pgLanguage : public pgDatabaseObject |
|
28 |
{
|
|
29 |
public: |
|
1.1.14
by Gerfried Fuchs
Import upstream version 1.12.3 |
30 |
pgLanguage(const wxString &newName = wxT("")); |
31 |
||
1.3.1
by Gerfried Fuchs
Import upstream version 1.14.0~beta1 |
32 |
wxString GetTranslatedMessage(int kindOfMessage) const; |
1.1.14
by Gerfried Fuchs
Import upstream version 1.12.3 |
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 |
}
|
|
1.1.4
by Lionel Porcheron
Import upstream version 1.8.2 |
80 |
|
81 |
private: |
|
1.1.14
by Gerfried Fuchs
Import upstream version 1.12.3 |
82 |
wxString handlerProc, validatorProc; |
83 |
bool trusted; |
|
1.1.4
by Lionel Porcheron
Import upstream version 1.8.2 |
84 |
};
|
85 |
||
1.3.1
by Gerfried Fuchs
Import upstream version 1.14.0~beta1 |
86 |
class pgLanguageCollection : public pgDatabaseObjCollection |
87 |
{
|
|
88 |
public: |
|
89 |
pgLanguageCollection(pgaFactory *factory, pgDatabase *db); |
|
90 |
wxString GetTranslatedMessage(int kindOfMessage) const; |
|
91 |
};
|
|
92 |
||
1.1.4
by Lionel Porcheron
Import upstream version 1.8.2 |
93 |
#endif
|