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

« back to all changes in this revision

Viewing changes to pgadmin/include/gqb/gqbBrowser.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: gqbBrowser.h 7812 2009-04-16 08:29:25Z dpage $
 
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
 
6
// This software is released under the BSD Licence
 
7
//
 
8
// gqbBrowser.h - Tables Tree of GQB.
 
9
//
 
10
//////////////////////////////////////////////////////////////////////////
 
11
 
 
12
#ifndef GQBBROWSER_H
 
13
#define GQBBROWSER_H
 
14
 
 
15
enum gqbImages
 
16
{
 
17
    GQB_IMG_DATABASE = 0,
 
18
    GQB_IMG_NAMESPACE = 1,
 
19
    GQB_IMG_TABLE = 2,
 
20
    GQB_IMG_NAMESPACES = 3,
 
21
    GQB_IMG_CATALOGS = 4,
 
22
    GQB_IMG_CATALOG = 5,
 
23
    GQB_IMG_CATALOG_OBJ = 6,
 
24
    GQB_IMG_VIEW = 7,
 
25
    GQB_IMG_EXTTABLE = 8
 
26
};
 
27
 
 
28
class gqbController;
 
29
 
 
30
class gqbBrowser : public wxTreeCtrl
 
31
{
 
32
public:
 
33
    gqbBrowser(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, gqbController *_controller);
 
34
    ~gqbBrowser();
 
35
    wxTreeItemId& createRoot(wxString &Name);
 
36
    wxTreeItemId& getCatalogRootNode(){return catalogsNode;}
 
37
    wxTreeItemId& getTablesRootNode(){return schemasNode;}
 
38
    void refreshTables(pgConn *connection);
 
39
    void setDnDPoint(int x, int y){xx=x; yy=y;};
 
40
 
 
41
private:
 
42
    enum typeSchema                                             // GQB-TODO: DELETE from here should be locate at gqbDatabase
 
43
    {
 
44
        GQB_CATALOG,
 
45
        GQB_OTHER
 
46
    };
 
47
 
 
48
    wxTreeItemId rootNode,catalogsNode,schemasNode;
 
49
    void OnItemActivated(wxTreeEvent& event);
 
50
    void OnBeginDrag(wxTreeEvent& event);
 
51
    wxString NumToStr(OID value);
 
52
    gqbController *controller;                  //Allow access to controller functions like add table to model
 
53
    wxImageList* imageList;
 
54
    int xx,yy;
 
55
 
 
56
    DECLARE_EVENT_TABLE()
 
57
};
 
58
#endif