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

Go to the SVN repository for this file.

1 /* $Id: secondary_structure_panel.hpp 28513 2013-07-23 17:21:28Z bollin $
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 _SECONDARY_STRUCTURE_PANEL_H_
29 #define _SECONDARY_STRUCTURE_PANEL_H_
30 
31 #include <corelib/ncbistd.hpp>
33 
34 /*!
35  * Includes
36  */
37 
38 ////@begin includes
39 ////@end includes
40 
41 #include <wx/panel.h>
42 #include <wx/choice.h>
43 
44 /*!
45  * Forward declarations
46  */
47 
48 ////@begin forward declarations
49 ////@end forward declarations
50 
52 
53 /*!
54  * Control identifiers
55  */
56 
57 ////@begin control identifiers
58 #define SYMBOL_CSECONDARYSTRUCTUREPANEL_STYLE wxTAB_TRAVERSAL
59 #define SYMBOL_CSECONDARYSTRUCTUREPANEL_TITLE _("SecondaryStructurePanel")
60 #define SYMBOL_CSECONDARYSTRUCTUREPANEL_IDNAME ID_CSECONDARYSTRUCTUREPANEL
61 #define SYMBOL_CSECONDARYSTRUCTUREPANEL_SIZE wxSize(400, 300)
62 #define SYMBOL_CSECONDARYSTRUCTUREPANEL_POSITION wxDefaultPosition
63 ////@end control identifiers
64 
65 
66 /*!
67  * CSecondaryStructurePanel class declaration
68  */
69 
70 class CSecondaryStructurePanel: public wxPanel
71 {
72  DECLARE_DYNAMIC_CLASS( CSecondaryStructurePanel )
73  DECLARE_EVENT_TABLE()
74 
75 public:
76  /// Constructors
79 
80  /// Creation
82 
83  /// Destructor
85 
86  /// Initialises member variables
87  void Init();
88 
89  /// Creates the controls and sizers
90  void CreateControls();
91 
92 ////@begin CSecondaryStructurePanel event handler declarations
93 
94 ////@end CSecondaryStructurePanel event handler declarations
95 
96 ////@begin CSecondaryStructurePanel member function declarations
97 
98  /// Retrieves bitmap resources
99  wxBitmap GetBitmapResource( const wxString& name );
100 
101  /// Retrieves icon resources
102  wxIcon GetIconResource( const wxString& name );
103 ////@end CSecondaryStructurePanel member function declarations
104 
105  /// Should we show tooltips?
106  static bool ShowToolTips();
107 
108 ////@begin CSecondaryStructurePanel member variables
109  wxChoice* m_Type;
110  /// Control identifiers
111  enum {
113  ID_CHOICE17 = 10159
114  };
115 ////@end CSecondaryStructurePanel member variables
116 
117  objects::CSeqFeatData::EPsec_str GetSecondaryStructure();
118  void SetSecondaryStructure(objects::CSeqFeatData::EPsec_str struc);
119 };
120 
122 
123 #endif
124  // _SECONDARY_STRUCTURE_PANEL_H_
void SetSecondaryStructure(objects::CSeqFeatData::EPsec_str struc)
bool Create(wxWindow *parent, wxWindowID id=ID_CSECONDARYSTRUCTUREPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void CreateControls()
Creates the controls and sizers.
void Init()
Initialises member variables.
objects::CSeqFeatData::EPsec_str GetSecondaryStructure()
static bool ShowToolTips()
Should we show tooltips?
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
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 BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
const struct ncbi::grid::netcache::search::fields::SIZE size
#define SYMBOL_CSECONDARYSTRUCTUREPANEL_SIZE
#define SYMBOL_CSECONDARYSTRUCTUREPANEL_POSITION
#define SYMBOL_CSECONDARYSTRUCTUREPANEL_IDNAME
#define SYMBOL_CSECONDARYSTRUCTUREPANEL_STYLE
Modified on Wed May 15 15:05:40 2024 by modify_doxy.py rev. 669887