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

Go to the SVN repository for this file.

1 /* $Id: exon_from_cds.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 _EXON_FROM_CDS_H_
29 #define _EXON_FROM_CDS_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_CEXONFROMCDS wxID_ANY
75 #define SYMBOL_CEXONFROMCDS_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
76 #define SYMBOL_CEXONFROMCDS_TITLE _("Exon From CDS")
77 #define SYMBOL_CEXONFROMCDS_IDNAME ID_CEXONFROMCDS
78 #define SYMBOL_CEXONFROMCDS_SIZE wxSize(900, 500)
79 #define SYMBOL_CEXONFROMCDS_POSITION wxDefaultPosition
80 ////@end control identifiers
81 
82 
83 
84 class CExonFromCds: public CBulkCmdDlg
85 {
86  DECLARE_DYNAMIC_CLASS( CExonFromCds )
87  DECLARE_EVENT_TABLE()
88 
89 public:
90  /// Constructors
91  CExonFromCds();
92  CExonFromCds( wxWindow* parent, IWorkbench* wb, CSeqFeatData::ESubtype subtype, const string &title, wxWindowID id = SYMBOL_CEXONFROMCDS_IDNAME, const wxString& caption = SYMBOL_CEXONFROMCDS_TITLE, const wxPoint& pos = SYMBOL_CEXONFROMCDS_POSITION, const wxSize& size = SYMBOL_CEXONFROMCDS_SIZE, long style = SYMBOL_CEXONFROMCDS_STYLE );
93 
94  /// Creation
95  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CEXONFROMCDS_IDNAME, const wxString& caption = SYMBOL_CEXONFROMCDS_TITLE, const wxPoint& pos = SYMBOL_CEXONFROMCDS_POSITION, const wxSize& size = SYMBOL_CEXONFROMCDS_SIZE, long style = SYMBOL_CEXONFROMCDS_STYLE );
96 
97  /// Destructor
98  ~CExonFromCds();
99 
100  /// Initialises member variables
101  void Init();
102 
103  /// Creates the controls and sizers
104  void CreateControls();
105 
106  void ProcessUpdateFeatEvent( wxCommandEvent& event );
107 
108 
109  /// Retrieves bitmap resources
110  wxBitmap GetBitmapResource( const wxString& name );
111 
112  /// Retrieves icon resources
113  wxIcon GetIconResource( const wxString& name );
114 
115  /// Should we show tooltips?
116  static bool ShowToolTips();
117 
119  virtual string GetErrorMessage();
120 
121 private:
122  void AddIntron( CSeq_entry_Handle seh, CRef<CCmdComposite> cmd, int intron_start, int intron_stop, bool intron_fuzz_start, bool intron_fuzz_stop, CRef<CSeq_id> id, TSeqPos seq_length, int exon_number, bool minus_strand);
123 
127  wxCheckBox* m_Introns;
128  wxTextCtrl * m_Number;
132  string m_Title;
133 };
134 
136 
137 #endif
138 
string m_ErrorMessage
void AddIntron(CSeq_entry_Handle seh, CRef< CCmdComposite > cmd, int intron_start, int intron_stop, bool intron_fuzz_start, bool intron_fuzz_stop, CRef< CSeq_id > id, TSeqPos seq_length, int exon_number, bool minus_strand)
virtual string GetErrorMessage()
static bool ShowToolTips()
Should we show tooltips?
void CreateControls()
Creates the controls and sizers.
wxCheckBox * m_Introns
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CFieldChoicePanel * m_FieldType
~CExonFromCds()
Destructor.
void Init()
Initialises member variables.
COkCancelPanel * m_OkCancel
CStringConstraintPanel * m_StringConstraintPanel
CSeqFeatData::ESubtype m_Type
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Exon From CDS"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(900, 500), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
void ProcessUpdateFeatEvent(wxCommandEvent &event)
virtual CRef< CCmdComposite > GetCommand()
wxTextCtrl * m_Number
CExonFromCds()
Constructors.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
CSeq_entry_Handle –.
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.
#define SYMBOL_CEXONFROMCDS_STYLE
#define SYMBOL_CEXONFROMCDS_POSITION
#define SYMBOL_CEXONFROMCDS_TITLE
#define SYMBOL_CEXONFROMCDS_SIZE
#define SYMBOL_CEXONFROMCDS_IDNAME
static CS_COMMAND * cmd
Definition: ct_dynamic.c:26
unsigned int TSeqPos
Type for sequence locations and lengths.
Definition: ncbimisc.hpp:875
#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 Fri Apr 12 17:18:11 2024 by modify_doxy.py rev. 669887