Version: 0.6.0
gxdiscconnectionui.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxDiscConnectionUI class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2010-2014 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/catalogui/gxfolderui.h"
24 #include "wxgis/catalog/gxdiscconnection.h"
25 
33 class WXDLLIMPEXP_GIS_CLU wxGxDiscConnectionUI :
34  public wxGxDiscConnection,
35  public IGxObjectUI,
36  public IGxObjectEditUI,
37  public IGxDropTarget,
38  public wxThreadHelper,
39  public wxGxAutoRenamer
40 {
41  DECLARE_DYNAMIC_CLASS(wxGxDiscConnectionUI)
42 public:
44  wxGxDiscConnectionUI(wxGxObject *oParent, int nStoreId, const wxString &soName = wxEmptyString, const CPLString &soPath = "", const wxIcon &SmallIco = wxNullIcon, const wxIcon &LargeIco = wxNullIcon, const wxIcon &SmallIcoDsbl = wxNullIcon, const wxIcon &LargeIcoDsbl = wxNullIcon);
45  virtual ~wxGxDiscConnectionUI(void);
46  //IGxObjectUI
47  virtual wxIcon GetLargeImage(void);
48  virtual wxIcon GetSmallImage(void);
49  virtual wxString ContextMenu(void) const {return wxString(wxT("wxGxDiscConnection.ContextMenu"));};
50  virtual wxString NewMenu(void) const {return wxString(wxT("wxGxDiscConnection.NewMenu"));};
51  //IGxObjectEditUI
52  virtual void EditProperties(wxWindow *parent);
53  //IGxDropTarget
54  virtual bool Drop(const wxArrayString& saGxObjectPaths, bool bMove);
55  //gxObject
56  virtual bool Destroy(void);
57 protected:
58  bool CheckReadable(void);
59  virtual wxThread::ExitCode Entry();
60  bool CreateAndRunCheckThread();
61  void DestroyCheckThread();
62 protected:
63  wxIcon m_Conn16, m_Conn48;
64  wxIcon m_ConnDsbld16, m_ConnDsbld48;
65  char m_nIsReadable;
66 };
67 
Definition: catalogui.h:73
Definition: gxdiscconnectionui.h:33
Definition: catalogui.h:90
Definition: catalogui.h:128
Definition: gxdiscconnection.h:36
Definition: gxobject.h:37
Definition: gxview.h:65