Version: 0.6.0
framework.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: framework header.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009-2012 Dmitry Baryshnikov
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  ****************************************************************************/
21 
22 #pragma once
23 
24 #include "wxgis/core/app.h"
25 
26 #include <wx/dnd.h>
27 #include <wx/xml/xml.h>
28 
29 #undef LT_OBJDIR
30 #include "gdal_priv.h"
31 #include "gdal.h"
32 #include "cpl_string.h"
33 
40 class IView
41 {
42 public:
43  virtual ~IView(void){};
44  virtual bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("view")) = 0;
45  virtual bool Activate(IApplication* const pApplication, wxXmlNode* const pConf) = 0;
46  virtual void Deactivate(void) = 0;
47  virtual void Refresh(void) = 0;
48  virtual wxString GetViewName(void) const = 0;
49  virtual wxIcon GetViewIcon(void) = 0;
50  virtual void SetViewIcon(wxIcon Icon) = 0;
51 };
52 
60 {
61 public:
62  virtual ~IViewDropTarget(void){};
63  virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def) = 0;
64  virtual bool OnDropObjects(wxCoord x, wxCoord y, const wxArrayString& GxObjects, bool bIsControlOn) = 0;
65  virtual void OnLeave() = 0;
66  virtual bool CanPaste(void) {return false;};
67 };
68 
Definition: framework.h:40
Definition: framework.h:59
Definition: app.h:32