NCBI C++ ToolKit
suc_refresh_cntrl.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: suc_refresh_cntrl.hpp 40191 2018-01-04 21:03:28Z asztalos $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Authors: Colleen Bollin
27  */
28 #ifndef _SUC_REFRESH_CNTRL_H_
29 #define _SUC_REFRESH_CNTRL_H_
30 
31 #include <corelib/ncbistd.hpp>
38 
39 
40 
42 
44 {
45 public:
48  virtual ~CSUCRefreshCntrl();
49 
50  virtual void RefreshText(CGenericPanel* text);
51  virtual string GetRefreshedText();
52 
53  void OnError(const string error);
54  void OnSUCData(CSUCResults& sucData);
55 
57  {
58  public:
60  : m_Ctrl(ctrl), m_JobId(CAppJobDispatcher::eInvalidJobID)
61  {
62  NEditingStats::ReportUsage(_("Sort Unique Count"));
63  }
67  }
68 
69  void LoadData(IWorkbench* wb);
70 
71  private:
72  void x_OnJobNotification(CEvent* evt);
75  int m_JobId;
76  };
77 
78  virtual void SetRegistryPath(const string& reg_path);
79  virtual void LoadSettings();
80  virtual void SaveSettings() const;
81 protected:
85  string m_RegPath;
86 };
87 
89 
90 #endif
91  // _SUC_REFRESH_CNTRL_H_
92 
93 
CAppJobDispatcher.
CEventHandler.
CEvent - generic event implementation TODO TODO - Attachments.
Definition: event.hpp:86
CObjectEx –.
Definition: ncbiobj.hpp:2531
CRef –.
Definition: ncbiobj.hpp:618
void OnSUCData(CSUCResults &sucData)
virtual void SetRegistryPath(const string &reg_path)
IWorkbench * m_Workbench
virtual void LoadSettings()
virtual string GetRefreshedText()
CGenericPanel * m_Text
void OnError(const string error)
CRef< CSUCRefreshCntrlHelper > m_Helper
virtual void RefreshText(CGenericPanel *text)
virtual void SaveSettings() const
IWorkbench is the central interface in the application framework.
Definition: workbench.hpp:113
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define _(proto)
Definition: ct_nlmzip_i.h:78
static CAppJobDispatcher & GetInstance()
bool DeleteJob(TJobID job_id)
when a Job is deleted the listener is not notified
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
static void text(MDB_val *v)
Definition: mdb_dump.c:62
void ReportUsage(const wxString &dialog_name)
Report opening & accepting events in the editing package.
Modified on Tue Jul 23 17:52:15 2024 by modify_doxy.py rev. 669887