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

Go to the SVN repository for this file.

1 #ifndef GUI_PKG_SEQ_EDIT___VALID_DISC_PANEL__HPP
2 #define GUI_PKG_SEQ_EDIT___VALID_DISC_PANEL__HPP
3 /* $Id: sub_validate_disc_tab.hpp 46622 2021-08-06 20:19:47Z asztalos $
4  * ===========================================================================
5  *
6  * PUBLIC DOMAIN NOTICE
7  * National Center for Biotechnology Information
8  *
9  * This software/database is a "United States Government Work" under the
10  * terms of the United States Copyright Act. It was written as part of
11  * the author's official duties as a United States Government employee and
12  * thus cannot be copyrighted. This software/database is freely available
13  * to the public for use. The National Library of Medicine and the U.S.
14  * Government have not placed any restriction on its use or reproduction.
15  *
16  * Although all reasonable efforts have been taken to ensure the accuracy
17  * and reliability of the software and data, the NLM and the U.S.
18  * Government do not and cannot warrant the performance or results that
19  * may be obtained by using this software or data. The NLM and the U.S.
20  * Government disclaim all warranties, express or implied, including
21  * warranties of performance, merchantability or fitness for any particular
22  * purpose.
23  *
24  * Please cite the author in any work or product based on this material.
25  *
26  * ===========================================================================
27  *
28  * Authors: Andrea Asztalos
29  */
30 
31 #include <corelib/ncbistd.hpp>
36 #include <wx/event.h>
37 #include <wx/panel.h>
38 #include <wx/bookctrl.h>
39 
40 class wxListbook;
41 
43 
44 class CSubValidatePanel;
46 
47 /*!
48  * Control identifiers
49  */
50 
51 ////@begin control identifiers
52 #define SYMBOL_VALID_DISC_PANEL_STYLE wxTAB_TRAVERSAL
53 #define SYMBOL_VALID_DISC_PANEL_TITLE _("Validate and Discrepancy Panel")
54 #define SYMBOL_VALID_DISC_PANEL_IDNAME ID_VALID_DISC_PANEL
55 #define SYMBOL_VALID_DISC_PANEL_SIZE wxSize(400, 300)
56 #define SYMBOL_VALID_DISC_PANEL_POSITION wxDefaultPosition
57 ////@end control identifiers
58 
59 
60 /*!
61  * CSubValidateDiscPanel class declaration
62  */
63 
64 class CSubValidateDiscPanel: public wxPanel, public ISubmissionPage
65 {
66  DECLARE_DYNAMIC_CLASS( CSubValidateDiscPanel )
67  DECLARE_EVENT_TABLE()
68 
69 public:
70  /// Constructors
72  CSubValidateDiscPanel( wxWindow* parent,
73  IWorkbench* wb,
74  const wxString &dir,
75  objects::CGBProjectHandle* ph,
76  objects::CProjectItem* pi,
78  wxWindowID id = SYMBOL_VALID_DISC_PANEL_IDNAME,
79  const wxPoint& pos = SYMBOL_VALID_DISC_PANEL_POSITION,
80  const wxSize& size = SYMBOL_VALID_DISC_PANEL_SIZE,
81  long style = SYMBOL_VALID_DISC_PANEL_STYLE );
82 
83  /// Creation
84  bool Create( wxWindow* parent,
85  wxWindowID id = SYMBOL_VALID_DISC_PANEL_IDNAME,
86  const wxPoint& pos = SYMBOL_VALID_DISC_PANEL_POSITION,
87  const wxSize& size = SYMBOL_VALID_DISC_PANEL_SIZE,
88  long style = SYMBOL_VALID_DISC_PANEL_STYLE );
89 
90  /// Destructor
92 
93  /// Initialises member variables
94  void Init();
95 
96  /// Creates the controls and sizers
97  void CreateControls();
98  virtual bool TransferDataToWindow();
99 
100 ////@begin CSubValidateDiscPanel event handler declarations
101  void OnPageChanged(wxBookCtrlEvent& event);
102  void OnPageChanging(wxBookCtrlEvent& event);
103 ////@end CSubValidateDiscPanel event handler declarations
104 
105 ////@begin CSubValidateDiscPanel member function declarations
106  virtual bool StepForward();
107  virtual bool StepBackward();
108 
109  /// Retrieves bitmap resources
110  wxBitmap GetBitmapResource( const wxString& name );
111 
112  /// Retrieves icon resources
113  wxIcon GetIconResource( const wxString& name );
114 ////@end CSubValidateDiscPanel member function declarations
115 
116  /// Should we show tooltips?
117  static bool ShowToolTips();
118 
119  virtual void ApplyCommand();
120  virtual bool IsLastPage() const;
121  virtual wxString GetAnchor();
122  virtual wxString GetName() const;
123 
124  void SetProjectItem(objects::CProjectItem* pi);
125 
126 private:
128 
130  wxString m_WorkDir;
131  objects::CGBProjectHandle* m_ProjectHandle;
132  objects::CProjectItem* m_ProjectItem;
134 
135 ////@begin CSubValidateDiscPanel member variables
136  wxListbook* m_Listbook;
139 
140 public:
141  /// Control identifiers
142  enum {
145  };
146 ////@end CSubValidateDiscPanel member variables
147 };
148 
150 
151 #endif
152  // GUI_PKG_SEQ_EDIT___VALID_DISC_PANEL__HPP
User-defined methods of the data storage class.
void CreateControls()
Creates the controls and sizers.
void Init()
Initialises member variables.
CSubValidateDiscPanel(wxWindow *parent, IWorkbench *wb, const wxString &dir, objects::CGBProjectHandle *ph, objects::CProjectItem *pi, ICommandProccessor *proc, wxWindowID id=ID_VALID_DISC_PANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
void OnPageChanging(wxBookCtrlEvent &event)
CSubValidateDiscPanel()
Constructors.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnPageChanged(wxBookCtrlEvent &event)
bool Create(wxWindow *parent, wxWindowID id=ID_VALID_DISC_PANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
objects::CGBProjectHandle * m_ProjectHandle
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void SetProjectItem(objects::CProjectItem *pi)
ISubmissionPage * x_GetCurrentPage() const
virtual bool IsLastPage() const
ICommandProccessor * m_CmdProcessor
objects::CProjectItem * m_ProjectItem
CSubValidatePanel * m_ValidatePanel
virtual wxString GetName() const
CSubDiscrepancyPanel * m_DiscrepancyPanel
static bool ShowToolTips()
Should we show tooltips?
Undo/Redo interface for editing operations.
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.
static const char * proc
Definition: stats.c:21
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
#define SYMBOL_VALID_DISC_PANEL_SIZE
#define SYMBOL_VALID_DISC_PANEL_IDNAME
#define SYMBOL_VALID_DISC_PANEL_POSITION
#define SYMBOL_VALID_DISC_PANEL_STYLE
Modified on Mon May 20 05:05:54 2024 by modify_doxy.py rev. 669887