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

Go to the SVN repository for this file.

1 /* $Id: mrna_from_gene_cds_exon.hpp 39649 2017-10-24 15:22:12Z 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: Igor Filippov
27  */
28 #ifndef _MRNA_FROM_GENE_CDS_EXON_H_
29 #define _MRNA_FROM_GENE_CDS_EXON_H_
30 
31 #include <corelib/ncbistd.hpp>
39 
44 
45 /*!
46  * Includes
47  */
48 
49 ////@begin includes
50 ////@end includes
51 
52 #include <wx/sizer.h>
53 #include <wx/radiobut.h>
54 #include <wx/choice.h>
55 
56 /*!
57  * Forward declarations
58  */
59 
60 ////@begin forward declarations
61 class CFeatureTypePanel;
62 class wxBoxSizer;
64 class COkCancelPanel;
65 ////@end forward declarations
66 
68 
69 /*!
70  * Control identifiers
71  */
72 
73 ////@begin control identifiers
74 #define ID_CMRNA_FROM_GENE_CDS_EXON 10468
75 #define SYMBOL_CMRNA_FROM_GENE_CDS_EXON_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
76 #define SYMBOL_CMRNA_FROM_GENE_CDS_EXON_TITLE _("mRNA From Gene, CDS, exon")
77 #define SYMBOL_CMRNA_FROM_GENE_CDS_EXON_IDNAME ID_CMRNA_FROM_GENE_CDS_EXON
78 #define SYMBOL_CMRNA_FROM_GENE_CDS_EXON_SIZE wxSize(900, 500)
79 #define SYMBOL_CMRNA_FROM_GENE_CDS_EXON_POSITION wxDefaultPosition
80 ////@end control identifiers
81 
82 
83 
85 {
86  DECLARE_DYNAMIC_CLASS( CmRNAFromGeneCdsExon )
87  DECLARE_EVENT_TABLE()
88 
89 public:
90  /// Constructors
93 
94  /// Creation
95  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CMRNA_FROM_GENE_CDS_EXON_IDNAME, const wxString& caption = SYMBOL_CMRNA_FROM_GENE_CDS_EXON_TITLE, const wxPoint& pos = SYMBOL_CMRNA_FROM_GENE_CDS_EXON_POSITION, const wxSize& size = SYMBOL_CMRNA_FROM_GENE_CDS_EXON_SIZE, long style = SYMBOL_CMRNA_FROM_GENE_CDS_EXON_STYLE );
96 
97  /// Destructor
99 
100  /// Initialises member variables
101  void Init();
102 
103  /// Creates the controls and sizers
104  void CreateControls();
105 
106  /// Retrieves bitmap resources
107  wxBitmap GetBitmapResource( const wxString& name );
108 
109  /// Retrieves icon resources
110  wxIcon GetIconResource( const wxString& name );
111 
112  /// Should we show tooltips?
113  static bool ShowToolTips();
114 
116  virtual string GetErrorMessage();
117  void OnSelectFeature(wxCommandEvent& event);
118  void OnSelectFeatQual(wxCommandEvent& event);
119  void ProcessUpdateFeatEvent( wxCommandEvent& event );
120 private:
121  string GetSuggestedName(CSeq_feat &feat, CRef<CSeq_feat> prot_feat, CSeq_entry_Handle seh);
122  void GetNameFromGene(CSeq_feat& gene, const wxString& sel_str, bool remove, string &name);
123  void GetNameFromCDS(CSeq_feat& feat, const wxString& sel_str, bool remove, string &name, CRef<CSeq_feat> prot_feat);
124  void GetNameFromExon(CSeq_feat& feat, const wxString& sel_str, bool remove, string &name);
125  void UpdateChildrenFeaturePanels( wxSizer* sizer );
127  wxChoice* m_FeatureType;
131  wxCheckBox* m_SingleInterval;
132  wxCheckBox* m_IncludeUTR;
134  wxChoice *m_GeneQual;
135  wxChoice *m_FeatQual;
136  wxChoice *m_FeatQual2;
137  wxChoice *m_FeatQual3;
138  wxStaticText* m_2ndChoice;
139  wxStaticText* m_3rdChoice;
140  wxTextCtrl *m_StrQual;
141  wxCheckBox* m_Remove;
142  wxCheckBox* m_Remove2;
143  wxCheckBox* m_Remove3;
146 };
147 
149 
150 #endif
151 
CSeq_entry_Handle –.
namespace ncbi::objects::
Definition: Seq_feat.hpp:58
void GetNameFromCDS(CSeq_feat &feat, const wxString &sel_str, bool remove, string &name, CRef< CSeq_feat > prot_feat)
CFeatureFieldNamePanel * m_FeatureConstraint
void OnSelectFeatQual(wxCommandEvent &event)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void UpdateChildrenFeaturePanels(wxSizer *sizer)
static bool ShowToolTips()
Should we show tooltips?
virtual CRef< CCmdComposite > GetCommand()
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnSelectFeature(wxCommandEvent &event)
void ProcessUpdateFeatEvent(wxCommandEvent &event)
CStringConstraintPanel * m_StringConstraintPanel
void GetNameFromGene(CSeq_feat &gene, const wxString &sel_str, bool remove, string &name)
void GetNameFromExon(CSeq_feat &feat, const wxString &sel_str, bool remove, string &name)
string GetSuggestedName(CSeq_feat &feat, CRef< CSeq_feat > prot_feat, CSeq_entry_Handle seh)
void CreateControls()
Creates the controls and sizers.
bool Create(wxWindow *parent, wxWindowID id=10468, const wxString &caption=_("mRNA From Gene, CDS, exon"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(900, 500), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
void Init()
Initialises member variables.
CCapChangePanel * m_CapChangeOptions
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 void DLIST_NAME() remove(DLIST_LIST_TYPE *list, DLIST_TYPE *item)
Definition: dlist.tmpl.h:90
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define SYMBOL_CMRNA_FROM_GENE_CDS_EXON_IDNAME
#define SYMBOL_CMRNA_FROM_GENE_CDS_EXON_SIZE
#define SYMBOL_CMRNA_FROM_GENE_CDS_EXON_STYLE
#define SYMBOL_CMRNA_FROM_GENE_CDS_EXON_POSITION
#define SYMBOL_CMRNA_FROM_GENE_CDS_EXON_TITLE
const struct ncbi::grid::netcache::search::fields::SIZE size
Modified on Fri Sep 20 14:57:38 2024 by modify_doxy.py rev. 669887