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

Go to the SVN repository for this file.

1 #ifndef GUI_PKG_SEQ_EDIT___SUBVALIDATE_PANEL__HPP
2 #define GUI_PKG_SEQ_EDIT___SUBVALIDATE_PANEL__HPP
3 
4 /* $Id: subvalidate_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 #include <wx/panel.h>
36 
37 
39 
40 /*!
41  * Control identifiers
42  */
43 
44 ////@begin control identifiers
45 #define SYMBOL_CSUBVALIDATEPANEL_STYLE wxTAB_TRAVERSAL
46 #define SYMBOL_CSUBVALIDATEPANEL_TITLE _("Submission Validate Panel")
47 #define SYMBOL_CSUBVALIDATEPANEL_IDNAME ID_CSUBVALIDATEPANEL
48 #define SYMBOL_CSUBVALIDATEPANEL_SIZE wxSize(400, 300)
49 #define SYMBOL_CSUBVALIDATEPANEL_POSITION wxDefaultPosition
50 ////@end control identifiers
51 
52 class IWorkbench;
53 class CValidatePanel;
54 
55 /*!
56  * CSubValidatePanel class declaration
57  */
58 
59 class CSubValidatePanel: public wxPanel, public ISubmissionPage
60 {
61  DECLARE_DYNAMIC_CLASS( CSubValidatePanel )
62  DECLARE_EVENT_TABLE()
63 
64 public:
65  /// Constructors
67  CSubValidatePanel( wxWindow* parent, IWorkbench* wb,
68  objects::CGBProjectHandle* ph,
69  objects::CProjectItem* pi,
70  wxWindowID id = SYMBOL_CSUBVALIDATEPANEL_IDNAME,
71  const wxPoint& pos = SYMBOL_CSUBVALIDATEPANEL_POSITION,
72  const wxSize& size = SYMBOL_CSUBVALIDATEPANEL_SIZE,
73  long style = SYMBOL_CSUBVALIDATEPANEL_STYLE );
74 
75  /// Creation
76  bool Create( wxWindow* parent,
77  wxWindowID id = SYMBOL_CSUBVALIDATEPANEL_IDNAME,
78  const wxPoint& pos = SYMBOL_CSUBVALIDATEPANEL_POSITION,
79  const wxSize& size = SYMBOL_CSUBVALIDATEPANEL_SIZE,
80  long style = SYMBOL_CSUBVALIDATEPANEL_STYLE );
81 
82  /// Destructor
84 
85  /// Initialises member variables
86  void Init();
87 
88  /// Creates the controls and sizers
89  void CreateControls();
90 
91  virtual bool TransferDataToWindow();
92 
93 ////@begin CSubValidatePanel event handler declarations
94 
95  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CSUBVALIDATE_REFRESH
96  void OnValidateClick( wxCommandEvent& event );
97 
98 ////@end CSubValidatePanel event handler declarations
99 
100 ////@begin CSubValidatePanel member function declarations
101 
102  virtual bool IsLastPage() const;
103  /// Retrieves bitmap resources
104  wxBitmap GetBitmapResource( const wxString& name );
105 
106  /// Retrieves icon resources
107  wxIcon GetIconResource( const wxString& name );
108 ////@end CSubValidatePanel member function declarations
109 
110  /// Should we show tooltips?
111  static bool ShowToolTips();
112 
113 ////@begin CSubValidatePanel member variables
114  /// Control identifiers
115  enum {
118  };
119 ////@end CSubValidatePanel member variables
120 
121  void SetProjectItem(objects::CProjectItem* pi) {m_ProjectItem = pi;}
122 
123  virtual wxString GetAnchor() { return _("validation-validate"); }
124  virtual wxString GetName() const { return SYMBOL_CSUBVALIDATEPANEL_TITLE; }
125 
126 private:
128  objects::CGBProjectHandle* m_ProjectHandle;
129  objects::CProjectItem* m_ProjectItem;
131 };
132 
134 
135 #endif
136  // GUI_PKG_SEQ_EDIT___SUBVALIDATE_PANEL__HPP
User-defined methods of the data storage class.
bool Create(wxWindow *parent, wxWindowID id=ID_CSUBVALIDATEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
static bool ShowToolTips()
Should we show tooltips?
CValidatePanel * m_Panel
void OnValidateClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CSUBVALIDATE_REFRESH
CSubValidatePanel()
Constructors.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void SetProjectItem(objects::CProjectItem *pi)
objects::CGBProjectHandle * m_ProjectHandle
~CSubValidatePanel()
Destructor.
void Init()
Initialises member variables.
virtual wxString GetAnchor()
virtual bool TransferDataToWindow()
virtual bool IsLastPage() const
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
virtual wxString GetName() const
objects::CProjectItem * m_ProjectItem
void CreateControls()
Creates the controls and sizers.
IWorkbench is the central interface in the application framework.
Definition: workbench.hpp:113
#define _(proto)
Definition: ct_nlmzip_i.h:78
const float pi
Definition: math.hpp:54
#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_CSUBVALIDATEPANEL_POSITION
#define SYMBOL_CSUBVALIDATEPANEL_TITLE
#define SYMBOL_CSUBVALIDATEPANEL_IDNAME
#define SYMBOL_CSUBVALIDATEPANEL_STYLE
#define SYMBOL_CSUBVALIDATEPANEL_SIZE
Modified on Mon Apr 22 04:03:29 2024 by modify_doxy.py rev. 669887