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

« back to all changes in this revision

Viewing changes to src/include/pgConstraints.h

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Enrici, src/frm/frmBackup.cpp, debian/control
  • Date: 2006-10-06 21:06:48 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 edgy)
  • Revision ID: james.westby@ubuntu.com-20061006210648-nscnazrse5jbwswf
* Patched frmBackup.cpp to ensure the schema is specified when backing up
  individual tables. (Closes: #387256)
  [src/frm/frmBackup.cpp]
* Cleaned up and updated description of the package. (Closes: #379188)
  [debian/control]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//////////////////////////////////////////////////////////////////////////
2
2
//
3
3
// pgAdmin III - PostgreSQL Tools
4
 
// RCS-ID:      $Id: pgConstraints.h,v 1.12 2004/01/02 23:15:00 dpage Exp $
5
 
// Copyright (C) 2002 - 2004, The pgAdmin Development Team
 
4
// RCS-ID:      $Id: pgConstraints.h 4874 2006-01-06 17:33:27Z dpage $
 
5
// Copyright (C) 2002 - 2006, The pgAdmin Development Team
6
6
// This software is released under the Artistic Licence
7
7
//
8
8
// pgConstraints.h - Constraint collection
13
13
#ifndef __CONSTRAINTS_H
14
14
#define __CONSTRAINTS_H
15
15
 
16
 
#include "pgCollection.h"
17
 
 
18
 
class pgTable;
19
 
class pgConstraints : public pgCollection
 
16
#include "pgTable.h"
 
17
 
 
18
 
 
19
class pgConstraintCollection : public pgTableObjCollection
20
20
{
21
21
public:
22
 
    pgConstraints(pgSchema *sch);
23
 
    ~pgConstraints();
24
 
    int GetIcon() { return PGICON_CONSTRAINT; }
25
 
    bool IsCollectionForType(int objType);
26
 
    bool CanCreate() { return true; };
27
 
    wxString GetHelpPage(bool forCreate) const { return wxT("sql-altertable"); }
 
22
    pgConstraintCollection(pgaFactory *factory, pgTable *table);
 
23
    ~pgConstraintCollection();
 
24
    wxString GetHelpPage(bool forCreate) const { return wxT("pg/sql-altertable"); }
 
25
    bool CanCreate() { return false; }
28
26
    wxMenu *GetNewMenu();
29
27
 
30
 
    void ShowTreeDetail(wxTreeCtrl *browser, frmMain *form, ctlListView *properties, ctlSQLBox *sqlPane);
 
28
    void ShowTreeDetail(ctlTree *browser, frmMain *form, ctlListView *properties, ctlSQLBox *sqlPane);
31
29
    pgTable *table;
32
30
};
33
31
 
34
32
 
 
33
class pgConstraintFactory : public pgTableObjFactory
 
34
{
 
35
public:
 
36
    pgConstraintFactory();
 
37
    virtual dlgProperty *CreateDialog(class frmMain *,class pgObject *,class pgObject *) { return 0; }
 
38
    virtual pgCollection *CreateCollection(pgObject *obj);
 
39
};
 
40
extern pgConstraintFactory constraintFactory;
 
41
extern pgaCollectionFactory constraintCollectionFactory;
 
42
 
35
43
#endif