~ubuntu-branches/debian/sid/pgadmin3/sid

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2009-07-30 12:27:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730122716-fddbh42on721bbs2
Tags: 1.10.0-1
* New upstream release.
* Adjusted watch file to match release candidates.
* Updated to Standards-Version 3.8.2:
  - Moved to Section: database.
  - Add DEB_BUILD_OPTIONS support for parallel building.
  - Move from findstring to filter suggestion for DEB_BUILD_OPTIONS parsing.
* pgagent got split into its own separate source package by upstream.
* Exclude Docs.vcproj from installation.
* Move doc-base.enus from pgadmin3 to pgadmin3-data package, the files are
  in there too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//////////////////////////////////////////////////////////////////////////
2
 
//
3
 
// pgAdmin III - PostgreSQL Tools
4
 
// RCS-ID:      $Id: edbPackageVariable.h 6930 2008-01-02 00:10:01Z dpage $
5
 
// Copyright (C) 2002 - 2008, The pgAdmin Development Team
6
 
// This software is released under the Artistic Licence
7
 
//
8
 
// edbPackageVariable.h - EnterpriseDB Package variable
9
 
//
10
 
//////////////////////////////////////////////////////////////////////////
11
 
 
12
 
#ifndef EDBPACKAGEVARIABLE_H
13
 
#define EDBPACKAGEVARIABLE_H
14
 
 
15
 
#include "edbPackage.h"
16
 
 
17
 
class pgCollection;
18
 
class edbPackageVariable;
19
 
 
20
 
class edbPackageVariableFactory : public edbPackageObjFactory
21
 
{
22
 
public:
23
 
    edbPackageVariableFactory();
24
 
    virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent) { return 0; };
25
 
    virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
26
 
};
27
 
extern edbPackageVariableFactory packageVariableFactory;
28
 
 
29
 
 
30
 
class edbPackageVariable : public edbPackageObject
31
 
{
32
 
public:
33
 
    edbPackageVariable(edbPackage *newPackage, const wxString& newName = wxT(""));
34
 
 
35
 
    void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
36
 
 
37
 
    wxString GetSql(ctlTree *browser);
38
 
 
39
 
    pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
40
 
 
41
 
    wxString GetDataType() const { return dataType; }
42
 
    void iSetDataType(const wxString& s) { dataType = s; }
43
 
    wxString GetVisibility() const { return visibility; }
44
 
    void iSetVisibility(const wxString& s) { visibility = s; }
45
 
 
46
 
    bool CanCreate() { return false; }
47
 
 
48
 
private:
49
 
    wxString dataType, visibility;
50
 
};
51
 
 
52
 
#endif
 
1
//////////////////////////////////////////////////////////////////////////
 
2
//
 
3
// pgAdmin III - PostgreSQL Tools
 
4
// RCS-ID:      $Id: edbPackageVariable.h 7758 2009-03-26 20:49:59Z dpage $
 
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
 
6
// This software is released under the BSD Licence
 
7
//
 
8
// edbPackageVariable.h - EnterpriseDB Package variable
 
9
//
 
10
//////////////////////////////////////////////////////////////////////////
 
11
 
 
12
#ifndef EDBPACKAGEVARIABLE_H
 
13
#define EDBPACKAGEVARIABLE_H
 
14
 
 
15
#include "edbPackage.h"
 
16
 
 
17
class pgCollection;
 
18
class edbPackageVariable;
 
19
 
 
20
class edbPackageVariableFactory : public edbPackageObjFactory
 
21
{
 
22
public:
 
23
    edbPackageVariableFactory();
 
24
    virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent) { return 0; };
 
25
    virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
 
26
};
 
27
extern edbPackageVariableFactory packageVariableFactory;
 
28
 
 
29
 
 
30
class edbPackageVariable : public edbPackageObject
 
31
{
 
32
public:
 
33
    edbPackageVariable(edbPackage *newPackage, const wxString& newName = wxT(""));
 
34
 
 
35
    void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
 
36
 
 
37
    wxString GetSql(ctlTree *browser);
 
38
 
 
39
    pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
 
40
 
 
41
    wxString GetDataType() const { return dataType; }
 
42
    void iSetDataType(const wxString& s) { dataType = s; }
 
43
    wxString GetVisibility() const { return visibility; }
 
44
    void iSetVisibility(const wxString& s) { visibility = s; }
 
45
 
 
46
    bool CanCreate() { return false; }
 
47
 
 
48
private:
 
49
    wxString dataType, visibility;
 
50
};
 
51
 
 
52
#endif