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

Go to the SVN repository for this file.

1 /* $Id: featuregenepanel.hpp 42681 2019-04-02 15:42:12Z 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 _FEATUREGENEPANEL_H_
29 #define _FEATUREGENEPANEL_H_
30 
31 #include <corelib/ncbistd.hpp>
32 #include <serial/serialbase.hpp>
33 #include <objmgr/scope.hpp>
35 
36 /*!
37  * Includes
38  */
39 
40 ////@begin includes
41 ////@end includes
42 #include <wx/panel.h>
43 #include <wx/choice.h>
44 #include <wx/listbox.h>
45 #include <wx/checkbox.h>
46 #include <wx/textctrl.h>
47 #include <wx/radiobox.h>
48 #include <wx/button.h>
49 #include "gene_panel.hpp"
50 
51 /*!
52  * Forward declarations
53  */
54 
55 ////@begin forward declarations
56 ////@end forward declarations
57 
59 
60 /*!
61  * Control identifiers
62  */
63 
64 ////@begin control identifiers
65 #define SYMBOL_CFEATUREGENEPANEL_STYLE wxTAB_TRAVERSAL
66 #define SYMBOL_CFEATUREGENEPANEL_TITLE _("FeatureGenePanel")
67 #define SYMBOL_CFEATUREGENEPANEL_IDNAME ID_CFEATUREGENEPANEL
68 #define SYMBOL_CFEATUREGENEPANEL_SIZE wxDefaultSize
69 #define SYMBOL_CFEATUREGENEPANEL_POSITION wxDefaultPosition
70 ////@end control identifiers
71 
72 
73 /*!
74  * CFeatureGenePanel class declaration
75  */
76 
77 class CFeatureGenePanel: public wxPanel
78 {
79  DECLARE_DYNAMIC_CLASS( CFeatureGenePanel )
80  DECLARE_EVENT_TABLE()
81 
82 public:
83  /// Constructors
85  CFeatureGenePanel( wxWindow* parent, CSerialObject& object, objects::CScope& scope, wxWindowID id = SYMBOL_CFEATUREGENEPANEL_IDNAME, const wxPoint& pos = SYMBOL_CFEATUREGENEPANEL_POSITION, const wxSize& size = SYMBOL_CFEATUREGENEPANEL_SIZE, long style = SYMBOL_CFEATUREGENEPANEL_STYLE );
86 
87  /// Creation
88  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CFEATUREGENEPANEL_IDNAME, const wxPoint& pos = SYMBOL_CFEATUREGENEPANEL_POSITION, const wxSize& size = SYMBOL_CFEATUREGENEPANEL_SIZE, long style = SYMBOL_CFEATUREGENEPANEL_STYLE );
89 
90  /// Destructor
92 
93  /// Initialises member variables
94  void Init();
95 
96  /// Creates the controls and sizers
97  void CreateControls();
98 
99  virtual bool TransferDataFromWindow();
104  void SetModifyPseudo(bool modify_pseudo, const string &pseudo_choice);
105 
106 ////@begin CFeatureGenePanel event handler declarations
107 
108  /// wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CHOICE16
109  void OnSelectGene( wxCommandEvent& event );
110 
111  /// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX13
112  void OnClickSuppress( wxCommandEvent& event );
113 
114  void OnEditGene(wxCommandEvent& event);
115 
116 ////@end CFeatureGenePanel event handler declarations
117 
118 ////@begin CFeatureGenePanel member function declarations
119 
120  /// Retrieves bitmap resources
121  wxBitmap GetBitmapResource( const wxString& name );
122 
123  /// Retrieves icon resources
124  wxIcon GetIconResource( const wxString& name );
125 ////@end CFeatureGenePanel member function declarations
126 
127  /// Should we show tooltips?
128  static bool ShowToolTips();
129 
130 ////@begin CFeatureGenePanel member variables
131  wxListBox* m_GeneChoice;
132  wxRadioBox* m_MapType;
133  wxCheckBox* m_Suppress;
134  /// Control identifiers
135  enum {
137  ID_CHOICE16 = 10130,
138  ID_RADIOBOX4 = 10131,
139  ID_CHECKBOX13 = 10132,
140  ID_BUTTON_EDIT_GENE = 10133
141  };
142 ////@end CFeatureGenePanel member variables
144 private:
146 
150  vector<CConstRef<objects::CGene_ref> > m_GeneList;
151  vector<CConstRef<objects::CSeq_feat> > m_GeneFeatList;
153  wxButton *m_ButtonEditGene;
156 };
157 
159 
160 #endif
161  // _FEATUREGENEPANEL_H_
vector< CConstRef< objects::CSeq_feat > > m_GeneFeatList
static bool ShowToolTips()
Should we show tooltips?
void Init()
Initialises member variables.
CFeatureGenePanel()
Constructors.
CConstRef< objects::CSeq_feat > GetGeneToEdit()
void OnClickSuppress(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX13
bool Create(wxWindow *parent, wxWindowID id=ID_CFEATUREGENEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
Creation.
CRef< objects::CGene_ref > m_GeneRef
void SetModifyPseudo(bool modify_pseudo, const string &pseudo_choice)
CRef< objects::CSeq_loc > GetLocationForGene()
CConstRef< objects::CSeq_feat > m_OverlappingGene
CRef< objects::CScope > m_Scope
CSerialObject * m_Object
CRef< objects::CSeq_feat > GetNewGene()
void AddReciprocicalXref(CRef< objects::CSeq_feat > gene_feat)
CRef< objects::CSeq_feat > GetUpdatedGene()
void OnSelectGene(wxCommandEvent &event)
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CHOICE16
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
~CFeatureGenePanel()
Destructor.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnEditGene(wxCommandEvent &event)
vector< CConstRef< objects::CGene_ref > > m_GeneList
CFeatureGenePanel(wxWindow *parent, CSerialObject &object, objects::CScope &scope, wxWindowID id=ID_CFEATUREGENEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
CGenePanel * m_GeneRefPanel
virtual bool TransferDataFromWindow()
void CreateControls()
Creates the controls and sizers.
Base class for all serializable objects.
Definition: serialbase.hpp:150
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define SYMBOL_CFEATUREGENEPANEL_POSITION
#define SYMBOL_CFEATUREGENEPANEL_SIZE
#define SYMBOL_CFEATUREGENEPANEL_STYLE
#define SYMBOL_CFEATUREGENEPANEL_IDNAME
#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 Mon Jun 24 05:27:36 2024 by modify_doxy.py rev. 669887