Version: 0.6.0
gxpending.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxPendingUI class. Show pending item in tree or content view
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2010-2012,2013 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/catalogui.h"
24 #include "wxgis/catalog/gxobject.h"
25 
26 #include <wx/imaglist.h>
27 #include <wx/stopwatch.h>
28 
33 class WXDLLIMPEXP_GIS_CLU wxGxPendingUI :
34  public wxGxObject,
35  public IGxObjectUI,
36  public IGxObjectNoFilter
37 {
38  DECLARE_CLASS(wxGxPendingUI)
39  enum
40  {
41  TIMER_ID = 1014
42  };
43 public:
44  wxGxPendingUI(wxVector<wxIcon> *pImageListSmall = NULL, wxVector<wxIcon> *pImageListLarge = NULL, wxGxObject *oParent = NULL, const wxString &soName = wxString(_("Waiting...")), const CPLString &soPath = "");
45  virtual ~wxGxPendingUI(void);
46  //IGxObject
47  virtual wxString GetCategory(void) const {return wxString(_("Waiting..."));};
48  //IGxObjectUI
49  virtual wxIcon GetLargeImage(void);
50  virtual wxIcon GetSmallImage(void);
51  virtual wxString ContextMenu(void) const {return wxEmptyString;};
52  virtual wxString NewMenu(void) const {return wxEmptyString;};
53  //
54  virtual void Stop(void);
55  virtual void StopAndDestroy(void);
56 protected:
57  //events
58  void OnTimer( wxTimerEvent & event);
59 protected:
60  short m_nCurrentImage;
61  wxTimer m_timer;
62  wxStopWatch m_sw;
63  wxVector<wxIcon> *m_pImageListLarge;
64  wxVector<wxIcon> *m_pImageListSmall;
65  short m_nImageCount;
66  wxCriticalSection m_CritSect;
67  unsigned char m_nFinalCountDown;
68  bool m_bFinal;
69 private:
70  DECLARE_EVENT_TABLE()
71 };
72 
Definition: catalogui.h:73
The pending item in tree or content view.
Definition: gxpending.h:33
Definition: catalog.h:123
Definition: gxobject.h:37