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

Go to the SVN repository for this file.

1 /*
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: Vasuki Gobu
27  */
28 #ifndef _SRC_OTHER_PNL_H_
29 #define _SRC_OTHER_PNL_H_
30 
31 #include <corelib/ncbistd.hpp>
33 #include "dbxref_panel.hpp"
34 
35 /*!
36  * Includes
37  */
38 
39 ////@begin includes
40 ////@end includes
41 
42 /*!
43  * Forward declarations
44  */
45 
46 ////@begin forward declarations
47 ////@end forward declarations
48 
50 
51 /*!
52  * Control identifiers
53  */
54 
55 ////@begin control identifiers
56 #define SYMBOL_CSOURCEOTHERPANEL_STYLE wxTAB_TRAVERSAL
57 #define SYMBOL_CSOURCEOTHERPANEL_TITLE _("SourceOther")
58 #define SYMBOL_CSOURCEOTHERPANEL_IDNAME ID_CSOURCEOTHERPANEL
59 #define SYMBOL_CSOURCEOTHERPANEL_SIZE wxSize(400, 300)
60 #define SYMBOL_CSOURCEOTHERPANEL_POSITION wxDefaultPosition
61 ////@end control identifiers
62 
63 
64 /*!
65  * CSourceOtherPanel class declaration
66  */
67 
68 class CSourceOtherPanel: public wxPanel
69 {
70  DECLARE_DYNAMIC_CLASS( CSourceOtherPanel )
71  DECLARE_EVENT_TABLE()
72 
73 public:
74  /// Constructors
76  CSourceOtherPanel( wxWindow* parent, wxWindowID id = SYMBOL_CSOURCEOTHERPANEL_IDNAME, const wxPoint& pos = SYMBOL_CSOURCEOTHERPANEL_POSITION, const wxSize& size = SYMBOL_CSOURCEOTHERPANEL_SIZE, long style = SYMBOL_CSOURCEOTHERPANEL_STYLE );
77 
78  /// Creation
79  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CSOURCEOTHERPANEL_IDNAME, const wxPoint& pos = SYMBOL_CSOURCEOTHERPANEL_POSITION, const wxSize& size = SYMBOL_CSOURCEOTHERPANEL_SIZE, long style = SYMBOL_CSOURCEOTHERPANEL_STYLE );
80 
81  /// Destructor
83 
84  /// Initialises member variables
85  void Init();
86 
87  /// Creates the controls and sizers
88  void CreateControls();
89 
90 ////@begin CSourceOtherPanel event handler declarations
91 
92 ////@end CSourceOtherPanel event handler declarations
93 
94 ////@begin CSourceOtherPanel member function declarations
95 
96  /// Retrieves bitmap resources
97  wxBitmap GetBitmapResource( const wxString& name );
98 
99  /// Retrieves icon resources
100  wxIcon GetIconResource( const wxString& name );
101 ////@end CSourceOtherPanel member function declarations
102 
103  /// Should we show tooltips?
104  static bool ShowToolTips();
105 
106 ////@begin CSourceOtherPanel member variables
107  wxTextCtrl* m_CommonNameCtrl;
108  wxTextCtrl* m_LineageCtrl;
109  wxTextCtrl* m_DivisionCtrl;
110  /// Control identifiers
111  enum {
113  ID_TEXTCTRL1 = 10003,
114  ID_TEXTCTRL2 = 10011,
115  ID_TEXTCTRL3 = 10012
116  };
117 ////@end CSourceOtherPanel member variables
118 
119  void TransferFromOrgRef(const objects::COrg_ref& org);
120  void TransferToOrgRef(objects::COrg_ref& org);
121  void OnChangedTaxname(void);
122 
123 protected:
125  CRef<objects::COrg_ref> m_OrgRef; // used for dbxrefs panel
126 };
127 
129 
130 #endif
131  // _SRC_OTHER_PNL_H_
void CreateControls()
Creates the controls and sizers.
CRef< objects::COrg_ref > m_OrgRef
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
~CSourceOtherPanel()
Destructor.
bool Create(wxWindow *parent, wxWindowID id=ID_CSOURCEOTHERPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
static bool ShowToolTips()
Should we show tooltips?
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
CDbxrefPanel * m_Dbxrefs
void OnChangedTaxname(void)
void TransferToOrgRef(objects::COrg_ref &org)
wxTextCtrl * m_LineageCtrl
wxTextCtrl * m_DivisionCtrl
void Init()
Initialises member variables.
CSourceOtherPanel()
Constructors.
void TransferFromOrgRef(const objects::COrg_ref &org)
wxTextCtrl * m_CommonNameCtrl
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_CSOURCEOTHERPANEL_SIZE
#define SYMBOL_CSOURCEOTHERPANEL_IDNAME
#define SYMBOL_CSOURCEOTHERPANEL_STYLE
#define SYMBOL_CSOURCEOTHERPANEL_POSITION
Modified on Fri Sep 20 14:57:57 2024 by modify_doxy.py rev. 669887