Version: 0.6.0
gptooldlg.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Toolbox)
3  * Purpose: tool dialog class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009-2011 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 #pragma once
22 /*
23 #include "wxgis/geoprocessing/geoprocessing.h"
24 #include "wxgis/geoprocessingui/geoprocessingui.h"
25 #include "wxgis/geoprocessingui/gpcontrols.h"
26 #include "wxgis/geoprocessingui/gptoolbox.h"
27 
28 #include <wx/intl.h>
29 
30 #include <wx/sizer.h>
31 #include <wx/gdicmn.h>
32 #include <wx/button.h>
33 #include <wx/panel.h>
34 #include <wx/font.h>
35 #include <wx/colour.h>
36 #include <wx/settings.h>
37 #include <wx/string.h>
38 #include <wx/html/htmlwin.h>
39 #include <wx/splitter.h>
40 #include <wx/dialog.h>
41 
42 #include <wx/scrolwin.h>
43 #include <wx/infobar.h>
44 /*
48 class WXDLLIMPEXP_GIS_GPU wxGISGPToolDlg : public wxFrame
49 {
50 public:
51  wxGISGPToolDlg(wxGxRootToolbox* pGxRootToolbox, IGPToolSPtr pTool, bool bSync = false, wxWindow* parent = NULL, wxWindowID id = wxID_ANY, const wxString& title = _("Tool name"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU|wxFRAME_FLOAT_ON_PARENT );//wxSTAY_ON_TOP|wxDIALOG_NO_PARENT|wxCLIP_CHILDREN
52  ~wxGISGPToolDlg();
53  void m_splitterOnIdle( wxIdleEvent& )
54  {
55  m_splitter->SetSashPosition( 0 );
56  m_splitter->Disconnect( wxEVT_IDLE, wxIdleEventHandler( wxGISGPToolDlg::m_splitterOnIdle ), NULL, this );
57  }
58  void SerializeFramePos(bool bSave = true);
59 //events
60  virtual void OnHelp(wxCommandEvent& event);
61  virtual void OnHelpUI(wxUpdateUIEvent& event);
62  virtual void OnOk(wxCommandEvent& event);
63  virtual void OnCancel(wxCommandEvent& event);
64  virtual void OnOkUI(wxUpdateUIEvent& event);
65 //wxTopLevelWindow
66  //virtual bool ShouldPreventAppExit();
67 protected:
68  int m_DataWidth, m_HtmlWidth;
69  IGPToolSPtr m_pTool;
70  wxXmlNode* m_pPropNode;
71  std::vector<wxGISDTBase*> m_pControlsArray;
72  wxGxRootToolbox* m_pGxRootToolbox;
73  bool m_bSync;
74 protected:
75  wxSplitterWindow* m_splitter;
76  wxPanel* m_toolpanel;
77  wxStdDialogButtonSizer* m_sdbSizer1;
78  wxButton* m_sdbSizer1OK;
79  wxButton* m_sdbSizer1Cancel;
80  wxButton* m_sdbSizer1Help;
81  //wxPanel* m_helppanel;
82  wxHtmlWindow* m_htmlWin;
83  wxInfoBar *m_pInfoBar;
84  wxString m_sCurrentErrMsg;
85  int m_nCurrentErrField;
86  wxBoxSizer *m_bSizer2;
87 
88  DECLARE_EVENT_TABLE()
89 };
90 */