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

« back to all changes in this revision

Viewing changes to pgadmin/include/gqb/gqbGridJoinTable.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$
 
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
 
6
// This software is released under the BSD Licence
 
7
//
 
8
// gqbGridJoinTable.h - Table implementation for Join Panel Grid
 
9
//
 
10
//////////////////////////////////////////////////////////////////////////
 
11
 
 
12
#ifndef GQBGRIDJOINTABLE_H
 
13
#define GQBGRIDJOINTABLE_H
 
14
 
 
15
#include <wx/grid.h>
 
16
#include <wx/laywin.h>
 
17
 
 
18
// App headers
 
19
#include "gqb/gqbQueryObjs.h"
 
20
#include "gqb/gqbArrayCollection.h"
 
21
 
 
22
class gqbController;
 
23
 
 
24
class gqbGridJoinTable : public wxGridTableBase
 
25
{
 
26
public:
 
27
    gqbGridJoinTable(gqbController* _controller);
 
28
    ~gqbGridJoinTable();
 
29
    int GetNumberRows();
 
30
    int GetNumberCols();
 
31
    bool IsEmptyCell(int row, int col);
 
32
    wxString GetValue(int row, int col);
 
33
    wxString GetColLabelValue( int col);
 
34
    void SetValue(int row, int col, const wxString& value);
 
35
    void AppendJoin(gqbQueryJoin *item);
 
36
    void removeJoin(gqbQueryJoin *item);
 
37
    void removeJoins(gqbQueryObject *obj);
 
38
    void emptyTableData();
 
39
    gqbQueryObject *DeleteRow(size_t pos);
 
40
    bool ReplaceJoin(gqbQueryJoin *orig, gqbQueryJoin *newVal);
 
41
    gqbQueryJoin* GetJoin(int row);
 
42
    void selectJoin(gqbQueryJoin *join);
 
43
 
 
44
private:
 
45
    gqbController *controller;
 
46
    gqbArrayCollection joins;
 
47
};
 
48
 
 
49
#endif
 
50