1
//////////////////////////////////////////////////////////////////////////
3
// pgAdmin III - PostgreSQL Tools
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
6
// This software is released under the BSD Licence
8
// gqbGridJoinTable.h - Table implementation for Join Panel Grid
10
//////////////////////////////////////////////////////////////////////////
12
#ifndef GQBGRIDJOINTABLE_H
13
#define GQBGRIDJOINTABLE_H
16
#include <wx/laywin.h>
19
#include "gqb/gqbQueryObjs.h"
20
#include "gqb/gqbArrayCollection.h"
24
class gqbGridJoinTable : public wxGridTableBase
27
gqbGridJoinTable(gqbController* _controller);
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);
45
gqbController *controller;
46
gqbArrayCollection joins;