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

Go to the SVN repository for this file.

1 #ifndef GUI_PKG_SEQ_EDIT___SUBDISCREPANCY_PANEL__HPP
2 #define GUI_PKG_SEQ_EDIT___SUBDISCREPANCY_PANEL__HPP
3 
4 /* $Id: subdiscrepancy_panel.hpp 46622 2021-08-06 20:19:47Z asztalos $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Andrea Asztalos
30  */
31 
32 #include <corelib/ncbiobj.hpp>
35 
36 #include <wx/panel.h>
37 
38 
40 
41 /*!
42  * Control identifiers
43  */
44 
45 ////@begin control identifiers
46 #define SYMBOL_CSUBDISCREPANCYPANEL_STYLE wxTAB_TRAVERSAL
47 #define SYMBOL_CSUBDISCREPANCYPANEL_TITLE _("Submission Discrepancy Panel")
48 #define SYMBOL_CSUBDISCREPANCYPANEL_IDNAME ID_CSUBDISCREPANCYPANEL
49 #define SYMBOL_CSUBDISCREPANCYPANEL_SIZE wxSize(400, 300)
50 #define SYMBOL_CSUBDISCREPANCYPANEL_POSITION wxDefaultPosition
51 ////@end control identifiers
52 
53 class IWorkbench;
54 class CDiscrepancyPanel;
55 
56 /*!
57  * CSubDiscrepancyPanel class declaration
58  */
59 
60 class CSubDiscrepancyPanel: public wxPanel, public ISubmissionPage, public CDiscrepancyPanelHost
61 {
62  DECLARE_DYNAMIC_CLASS( CSubDiscrepancyPanel )
63  DECLARE_EVENT_TABLE()
64 
65 public:
66  /// Constructors
68  CSubDiscrepancyPanel( wxWindow* parent,
69  IWorkbench* wb,
70  const wxString &dir,
71  CGBProjectHandle* ph,
73  wxWindowID id = SYMBOL_CSUBDISCREPANCYPANEL_IDNAME,
74  const wxPoint& pos = SYMBOL_CSUBDISCREPANCYPANEL_POSITION,
75  const wxSize& size = SYMBOL_CSUBDISCREPANCYPANEL_SIZE,
76  long style = SYMBOL_CSUBDISCREPANCYPANEL_STYLE );
77 
78  /// Creation
79  bool Create( wxWindow* parent,
80  wxWindowID id = SYMBOL_CSUBDISCREPANCYPANEL_IDNAME,
81  const wxPoint& pos = SYMBOL_CSUBDISCREPANCYPANEL_POSITION,
82  const wxSize& size = SYMBOL_CSUBDISCREPANCYPANEL_SIZE,
83  long style = SYMBOL_CSUBDISCREPANCYPANEL_STYLE );
84 
85  /// Destructor
87 
88  /// Initialises member variables
89  void Init();
90 
91  /// Creates the controls and sizers
92  void CreateControls();
93 
94  virtual bool TransferDataToWindow();
95 
96 ////@begin CSubDiscrepancyPanel event handler declarations
97 
98  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CSUBDISCREPANCY_REFRESH
99  void OnRefreshClick( wxCommandEvent& event );
100 
101 ////@end CSubDiscrepancyPanel event handler declarations
102 
103 ////@begin CSubDiscrepancyPanel member function declarations
104 
105  virtual bool IsLastPage() const;
106  /// Retrieves bitmap resources
107  wxBitmap GetBitmapResource( const wxString& name );
108 
109  /// Retrieves icon resources
110  wxIcon GetIconResource( const wxString& name );
111 ////@end CSubDiscrepancyPanel member function declarations
112 
113  /// Should we show tooltips?
114  static bool ShowToolTips();
115 
116 ////@begin CSubDiscrepancyPanel member variables
117  /// Control identifiers
118  enum {
121  };
122 ////@end CSubDiscrepancyPanel member variables
123 
124  virtual wxString GetAnchor() { return _("valiodation-submitter-report"); }
125  virtual wxString GetName() const { return SYMBOL_CSUBDISCREPANCYPANEL_TITLE; }
126 
127 private:
129  wxStaticText* m_Modified;
131  wxString m_WorkDir;
134 };
135 
137 
138 #endif
139  // GUI_PKG_SEQ_EDIT___SUBDISCREPANCY_PANEL__HPP
CGBProjectHandle * m_ProjectHandle
void Init()
Initialises member variables.
static bool ShowToolTips()
Should we show tooltips?
void CreateControls()
Creates the controls and sizers.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
CSubDiscrepancyPanel()
Constructors.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
virtual wxString GetName() const
CDiscrepancyPanel * m_Panel
virtual wxString GetAnchor()
virtual bool IsLastPage() const
virtual bool TransferDataToWindow()
ICommandProccessor * m_CmdProcessor
void OnRefreshClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CSUBDISCREPANCY_REFRESH
bool Create(wxWindow *parent, wxWindowID id=ID_CSUBDISCREPANCYPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
Undo/Redo interface for editing operations.
IWorkbench is the central interface in the application framework.
Definition: workbench.hpp:113
#define _(proto)
Definition: ct_nlmzip_i.h:78
static const char * proc
Definition: stats.c:21
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
const struct ncbi::grid::netcache::search::fields::SIZE size
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
#define SYMBOL_CSUBDISCREPANCYPANEL_SIZE
#define SYMBOL_CSUBDISCREPANCYPANEL_STYLE
#define SYMBOL_CSUBDISCREPANCYPANEL_POSITION
#define SYMBOL_CSUBDISCREPANCYPANEL_TITLE
#define SYMBOL_CSUBDISCREPANCYPANEL_IDNAME
Modified on Sat May 25 14:22:07 2024 by modify_doxy.py rev. 669887