~ubuntu-branches/debian/squeeze/pgadmin3/squeeze

« back to all changes in this revision

Viewing changes to pgadmin/include/dlg/dlgType.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Porcheron
  • Date: 2008-02-07 00:56:22 UTC
  • mto: (2.1.6 hardy) (6.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20080207005622-c2ail8p4d0sk3dnw
Tags: upstream-1.8.2
ImportĀ upstreamĀ versionĀ 1.8.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//////////////////////////////////////////////////////////////////////////
 
2
//
 
3
// pgAdmin III - PostgreSQL Tools
 
4
// RCS-ID:      $Id: dlgType.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
// dlgType.h - Typeproperty 
 
9
//
 
10
//////////////////////////////////////////////////////////////////////////
 
11
 
 
12
 
 
13
#ifndef __DLG_TYPEPROP
 
14
#define __DLG_TYPEPROP
 
15
 
 
16
#include "dlg/dlgProperty.h"
 
17
 
 
18
class pgType;
 
19
 
 
20
class dlgType : public dlgTypeProperty
 
21
{
 
22
public:
 
23
    dlgType(pgaFactory *factory, frmMain *frame, pgType *node, pgSchema *schema);
 
24
 
 
25
    void CheckChange();
 
26
    wxString GetSql();
 
27
    pgObject *CreateObject(pgCollection *collection);
 
28
    pgObject *GetObject();
 
29
 
 
30
    int Go(bool modal);
 
31
 
 
32
private:
 
33
    pgSchema *schema;
 
34
    pgType *type;
 
35
    void OnTypeChange(wxCommandEvent &ev);
 
36
    void OnMemberAdd(wxCommandEvent &ev);
 
37
    void OnMemberRemove(wxCommandEvent &ev);
 
38
    void OnMemberSelChange(wxListEvent &ev);
 
39
    void OnLabelAdd(wxCommandEvent &ev);
 
40
    void OnLabelRemove(wxCommandEvent &ev);
 
41
    void OnLabelSelChange(wxListEvent &ev);
 
42
    void OnSelChangeTyp(wxCommandEvent &ev);
 
43
    void OnSelChangeTypOrLen(wxCommandEvent &ev);
 
44
    void OnChangeMember(wxCommandEvent &ev);
 
45
 
 
46
    void showDefinition(int panel);
 
47
 
 
48
    wxArrayString memberTypes, memberSizes;
 
49
 
 
50
    DECLARE_EVENT_TABLE()
 
51
};
 
52
 
 
53
 
 
54
#endif