/*
* This file is part of rasdaman community.
*
* Rasdaman community is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Rasdaman community is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
rasdaman GmbH.
*
* For more information please see <http://www.rasdaman.org>
* or contact Peter Baumann via <baumann@rasdaman.com>.
/
/**
* PURPOSE:
*
* rView query shell. Handles editing, loading, saving and execution
* of RasQL queries. Actual database accesses are performed through
* class rView's member functions.
*
* COMMENTS:
* None
*/
// Standard wxWindows preamble.
#ifdef __GNUG__
#pragma implementation
#endif
#include <wx/wxprec.h>
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <string.h>
#include <iostream.h>
#include <ctype.h>
#ifdef EARLY_TEMPLATE
#define __EXECUTABLE__
#endif
#include "raslib/rmdebug.hh"
#include "rviewApp.hh"
#include "rviewUtils.hh"
//#include "rviewDb.hh"
#include "rviewQuery.hh"
#include "rviewPrefs.hh"
const int rviewQuery::query_width = 500;
const int rviewQuery::query_height = 300;
const int rviewQuery::query_border = 8;
const int rviewQuery::query_bottom = 50;
const int rviewQuery::query_bwidth = 80;
const int rviewQuery::query_bheight = 40;
const char rviewQuery::query_extension[] = ".ql";
const char rviewQuery::query_firstline[] = "-- rview-Query";
// The Query window counter
int rviewQuery::queryCounter = 0;
// Lookup tables for fonts. These have to be sorted case-sensitively!
const keyword_to_ident_c rviewQuery::fontNameTab[] = {
{wxDECORATIVE, "decorative"},
{wxDEFAULT, "default"},
{wxMODERN, "modern"},
{wxROMAN, "roman"},
|