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

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_EDIT___RNA_PANEL__HPP
2 #define GUI_WIDGETS_EDIT___RNA_PANEL__HPP
3 
4 /* $Id: rna_panel.hpp 35569 2016-05-25 13:47:34Z asztalos $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Roman Katargin
30  */
31 
32 #include <corelib/ncbistd.hpp>
33 
34 /*!
35  * Includes
36  */
37 
38 ////@begin includes
39 #include "wx/choicebk.h"
40 ////@end includes
41 
42 #include <wx/panel.h>
43 #include <wx/checkbox.h>
44 #include <wx/combobox.h>
45 
46 /*!
47  * Forward declarations
48  */
49 
50 ////@begin forward declarations
51 class wxChoicebook;
52 ////@end forward declarations
53 
55 
57  class CScope;
58  class CTrna_ext;
59  class CSeq_id;
61 
62 class CGBQualPanel;
63 /*!
64  * Control identifiers
65  */
66 
67 ////@begin control identifiers
68 #define SYMBOL_CRNAPANEL_STYLE wxTAB_TRAVERSAL
69 #define SYMBOL_CRNAPANEL_TITLE _("RNA Panel")
70 #define SYMBOL_CRNAPANEL_IDNAME ID_CRNAPANEL
71 #define SYMBOL_CRNAPANEL_SIZE wxSize(400, 300)
72 #define SYMBOL_CRNAPANEL_POSITION wxDefaultPosition
73 ////@end control identifiers
74 
75 
76 class CSerialObject;
77 
78 /*!
79  * CRNAPanel class declaration
80  */
81 
82 class CRNAPanel: public wxPanel
83 {
84  DECLARE_DYNAMIC_CLASS( CRNAPanel )
85  DECLARE_EVENT_TABLE()
86 
87 public:
88  /// Constructors
89  CRNAPanel();
90  CRNAPanel( wxWindow* parent, CSerialObject& object, objects::CScope& scope,
91  wxWindowID id = SYMBOL_CRNAPANEL_IDNAME, const wxPoint& pos = SYMBOL_CRNAPANEL_POSITION, const wxSize& size = SYMBOL_CRNAPANEL_SIZE, long style = SYMBOL_CRNAPANEL_STYLE );
92 
93  /// Creation
94  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CRNAPANEL_IDNAME, const wxPoint& pos = SYMBOL_CRNAPANEL_POSITION, const wxSize& size = SYMBOL_CRNAPANEL_SIZE, long style = SYMBOL_CRNAPANEL_STYLE );
95 
96  /// Destructor
97  ~CRNAPanel();
98 
99  /// Initialises member variables
100  void Init();
101 
102  /// Creates the controls and sizers
103  void CreateControls();
104 
105 ////@begin CRNAPanel event handler declarations
106 
107 ////@end CRNAPanel event handler declarations
108 
109 ////@begin CRNAPanel member function declarations
110 
111  /// Retrieves bitmap resources
112  wxBitmap GetBitmapResource( const wxString& name );
113 
114  /// Retrieves icon resources
115  wxIcon GetIconResource( const wxString& name );
116 ////@end CRNAPanel member function declarations
117 
118  /// Should we show tooltips?
119  static bool ShowToolTips();
120 
121 ////@begin CRNAPanel member variables
122  wxChoicebook* m_Choicebook;
123  wxComboBox* m_TranscriptID;
124  /// Control identifiers
125  enum {
126  ID_CRNAPANEL = 10017,
127  ID_CHOICEBOOK1 = 10018,
128  ID_COMBOBOX1 = 10024
129  };
130 ////@end CRNAPanel member variables
131 
132  virtual bool TransferDataFromWindow();
133  virtual bool TransferDataToWindow();
134  static void x_GetLabelForSeqID(const objects::CSeq_id& id, string& id_label);
135 
136  void SetGBQualPanel(CGBQualPanel* gbqual_panel);
137 
138 private:
139  void x_PopulateTranscriptID();
141  objects::CScope* m_Scope;
145 };
146 
148 
149 #endif // GUI_WIDGETS_EDIT___RNA_PANEL__HPP
CRNAPanel()
Constructors.
Definition: rna_panel.cpp:98
@ ID_CHOICEBOOK1
Definition: rna_panel.hpp:127
virtual bool TransferDataToWindow()
Definition: rna_panel.cpp:477
CRef< objects::CRNA_gen > m_ncRNAGen
Definition: rna_panel.hpp:143
static bool ShowToolTips()
Should we show tooltips?
Definition: rna_panel.cpp:492
bool Create(wxWindow *parent, wxWindowID id=ID_CRNAPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
Definition: rna_panel.cpp:118
void Init()
Initialises member variables.
Definition: rna_panel.cpp:149
void x_PopulateTranscriptID()
Definition: rna_panel.cpp:268
void SetGBQualPanel(CGBQualPanel *gbqual_panel)
Definition: rna_panel.cpp:257
objects::CScope * m_Scope
Definition: rna_panel.hpp:141
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
Definition: rna_panel.cpp:501
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
Definition: rna_panel.cpp:514
virtual bool TransferDataFromWindow()
Definition: rna_panel.cpp:394
wxComboBox * m_TranscriptID
Definition: rna_panel.hpp:123
CRNAPanel(wxWindow *parent, CSerialObject &object, objects::CScope &scope, wxWindowID id=ID_CRNAPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
void CreateControls()
Creates the controls and sizers.
Definition: rna_panel.cpp:162
CRef< objects::CTrna_ext > m_trna
Definition: rna_panel.hpp:142
~CRNAPanel()
Destructor.
Definition: rna_panel.cpp:138
CSerialObject * m_Object
Definition: rna_panel.hpp:140
static void x_GetLabelForSeqID(const objects::CSeq_id &id, string &id_label)
Definition: rna_panel.cpp:319
CRef< objects::CRNA_gen > m_tmRNAGen
Definition: rna_panel.hpp:144
wxChoicebook * m_Choicebook
Definition: rna_panel.hpp:122
CScope –.
Definition: scope.hpp:92
Base class for all serializable objects.
Definition: serialbase.hpp:150
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define END_SCOPE(ns)
End the previously defined scope.
Definition: ncbistl.hpp:75
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define BEGIN_SCOPE(ns)
Define a new scope.
Definition: ncbistl.hpp:72
const struct ncbi::grid::netcache::search::fields::SIZE size
#define SYMBOL_CRNAPANEL_IDNAME
Definition: rna_panel.hpp:70
#define SYMBOL_CRNAPANEL_SIZE
Definition: rna_panel.hpp:71
#define SYMBOL_CRNAPANEL_STYLE
Definition: rna_panel.hpp:68
#define SYMBOL_CRNAPANEL_POSITION
Definition: rna_panel.hpp:72
Modified on Sat Apr 27 11:23:25 2024 by modify_doxy.py rev. 669887