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

Go to the SVN repository for this file.

1 /* $Id: bulkcdsaddpanel.hpp 42185 2019-01-09 18:49:13Z filippov $
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 _BULKCDSADDPANEL_H_
29 #define _BULKCDSADDPANEL_H_
30 
31 #include <corelib/ncbistd.hpp>
37 
38 /*!
39  * Includes
40  */
41 
42 ////@begin includes
43 ////@end includes
44 
45 #include <wx/sizer.h>
46 #include <wx/stattext.h>
47 #include <wx/textctrl.h>
48 #include <wx/checkbox.h>
49 
50 
51 /*!
52  * Forward declarations
53  */
54 
55 ////@begin forward declarations
56 class CBulkLocationPanel;
57 ////@end forward declarations
58 
60 
61 /*!
62  * Control identifiers
63  */
64 
65 ////@begin control identifiers
66 #define ID_CBULKCDSADDPANEL 10030
67 #define ID_BULKCDSADD_PROTEIN_NAME 10021
68 #define ID_BULKCDSADD_PROTEIN_DESC 10022
69 #define ID_BULKCDSADD_GENE 10023
70 #define ID_BULKCDSADD_COMMENT 10024
71 #define ID_WINDOW 10027
72 #define SYMBOL_CBULKCDSADDPANEL_STYLE wxTAB_TRAVERSAL
73 #define SYMBOL_CBULKCDSADDPANEL_TITLE _("BulkCDSAddPanel")
74 #define SYMBOL_CBULKCDSADDPANEL_IDNAME ID_CBULKCDSADDPANEL
75 #define SYMBOL_CBULKCDSADDPANEL_SIZE wxSize(400, 300)
76 #define SYMBOL_CBULKCDSADDPANEL_POSITION wxDefaultPosition
77 ////@end control identifiers
78 
79 
80 /*!
81  * CBulkCDSAddPanel class declaration
82  */
83 
85 {
86  DECLARE_DYNAMIC_CLASS( CBulkCDSAddPanel )
87  DECLARE_EVENT_TABLE()
88 
89 public:
90  /// Constructors
92  CBulkCDSAddPanel( wxWindow* parent, objects::CSeq_entry_Handle seh, bool add_location_panel = true, wxWindowID id = SYMBOL_CBULKCDSADDPANEL_IDNAME, const wxPoint& pos = SYMBOL_CBULKCDSADDPANEL_POSITION, const wxSize& size = SYMBOL_CBULKCDSADDPANEL_SIZE, long style = SYMBOL_CBULKCDSADDPANEL_STYLE );
93 
94  /// Creation
95  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CBULKCDSADDPANEL_IDNAME, const wxPoint& pos = SYMBOL_CBULKCDSADDPANEL_POSITION, const wxSize& size = SYMBOL_CBULKCDSADDPANEL_SIZE, long style = SYMBOL_CBULKCDSADDPANEL_STYLE );
96 
97  /// Destructor
99 
100  /// Initialises member variables
101  void Init();
102 
103  /// Creates the controls and sizers
104  void CreateControls();
105 
106 ////@begin CBulkCDSAddPanel event handler declarations
107 
108 ////@end CBulkCDSAddPanel event handler declarations
109 
110 ////@begin CBulkCDSAddPanel member function declarations
111 
112  /// Retrieves bitmap resources
113  wxBitmap GetBitmapResource( const wxString& name );
114 
115  /// Retrieves icon resources
116  wxIcon GetIconResource( const wxString& name );
117 ////@end CBulkCDSAddPanel member function declarations
118 
119  /// Should we show tooltips?
120  static bool ShowToolTips();
121 
122 ////@begin CBulkCDSAddPanel member variables
123  wxTextCtrl* m_ProteinName;
124  wxTextCtrl* m_ProteinDescription;
125  wxTextCtrl* m_GeneSymbol;
126  wxTextCtrl* m_Comment;
127 ////@end CBulkCDSAddPanel member variables
128 
130  virtual string GetErrorMessage();
131  virtual void AddOneCommand(const objects::CBioseq_Handle& bsh, CRef<CCmdComposite> cmd, bool &ambiguous);
132 private:
133  objects::CSeq_entry_Handle m_TopSeqEntry;
134  wxChoice *m_CodonStart;
135  wxCheckBox *m_AddmRNA;
137 };
138 
140 
141 #endif
142  // _BULKCDSADDPANEL_H_
#define SYMBOL_CBULKCDSADDPANEL_IDNAME
#define SYMBOL_CBULKCDSADDPANEL_SIZE
#define SYMBOL_CBULKCDSADDPANEL_STYLE
#define SYMBOL_CBULKCDSADDPANEL_POSITION
static bool ShowToolTips()
Should we show tooltips?
wxTextCtrl * m_GeneSymbol
virtual void AddOneCommand(const objects::CBioseq_Handle &bsh, CRef< CCmdComposite > cmd, bool &ambiguous)
void CreateControls()
Creates the controls and sizers.
wxTextCtrl * m_ProteinDescription
wxTextCtrl * m_Comment
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
objects::CSeq_entry_Handle m_TopSeqEntry
virtual CRef< CCmdComposite > GetCommand()
wxTextCtrl * m_ProteinName
bool Create(wxWindow *parent, wxWindowID id=10030, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
wxCheckBox * m_AddmRNA
void Init()
Initialises member variables.
CBulkCDSAddPanel()
Constructors.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
~CBulkCDSAddPanel()
Destructor.
virtual string GetErrorMessage()
Include a standard set of the NCBI C++ Toolkit most basic headers.
static CS_COMMAND * cmd
Definition: ct_dynamic.c:26
#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
Modified on Thu Dec 07 10:08:53 2023 by modify_doxy.py rev. 669887