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

« back to all changes in this revision

Viewing changes to pgadmin/include/schema/pgTextSearchParser.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: pgTextSearchParser.h 7758 2009-03-26 20:49:59Z dpage $
 
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
 
6
// This software is released under the BSD Licence
 
7
//
 
8
// pgTextSearchParser.h PostgreSQL Text Search Parser
 
9
//
 
10
//////////////////////////////////////////////////////////////////////////
 
11
 
 
12
#ifndef PG_TSPARSER_H
 
13
#define PG_TSPARSER_H
 
14
 
 
15
 
 
16
#include "pgSchema.h"
 
17
 
 
18
 
 
19
class pgTextSearchParserFactory : public pgSchemaObjFactory
 
20
{
 
21
public:
 
22
    pgTextSearchParserFactory();
 
23
    virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent);
 
24
    virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
 
25
};
 
26
extern pgTextSearchParserFactory textSearchParserFactory;
 
27
 
 
28
class pgTextSearchParser : public pgSchemaObject
 
29
{
 
30
public:
 
31
    pgTextSearchParser(pgSchema *newSchema, const wxString& newName = wxT(""));
 
32
    ~pgTextSearchParser();
 
33
 
 
34
    void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
 
35
    virtual wxString GetQuotedIdentifier() const { return GetName(); }
 
36
    bool CanDropCascaded() { return GetSchema()->GetMetaType() != PGM_CATALOG; }
 
37
 
 
38
    wxString GetStart() const { return start; }
 
39
    void iSetStart(const wxString& s) { start=s; }
 
40
    wxString GetGettoken() const { return gettoken; }
 
41
    void iSetGettoken(const wxString& s) { gettoken=s; }
 
42
    wxString GetEnd() const { return end; }
 
43
    void iSetEnd(const wxString& s) { end=s; }
 
44
    wxString GetLextypes() const { return lextypes; }
 
45
    void iSetLextypes(const wxString& s) { lextypes=s; }
 
46
    wxString GetHeadline() const { return headline; }
 
47
    void iSetHeadline(const wxString& s) { headline=s; }
 
48
 
 
49
    bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
 
50
    wxString GetSql(ctlTree *browser);
 
51
    pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
 
52
 
 
53
    bool HasStats() { return false; }
 
54
    bool HasDepends() { return true; }
 
55
    bool HasReferences() { return true; }
 
56
 
 
57
private:
 
58
    wxString start, gettoken, end, lextypes, headline;
 
59
};
 
60
 
 
61
#endif