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

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_EDIT___GENE_PANEL__HPP
2 #define GUI_WIDGETS_EDIT___GENE_PANEL__HPP
3 
4 /* $Id: gene_panel.hpp 30569 2014-06-12 18:33:02Z 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/ncbiobj.hpp>
33 
34 /*!
35  * Includes
36  */
37 
38 #include <wx/panel.h>
39 
40 ////@begin includes
41 ////@end includes
42 
44 
45 BEGIN_SCOPE(objects) // namespace ncbi::objects::
46 class CScope;
48 
49 /*!
50  * Forward declarations
51  */
52 
53 ////@begin forward declarations
54 ////@end forward declarations
55 
56 /*!
57  * Control identifiers
58  */
59 
60 ////@begin control identifiers
61 #define SYMBOL_CGENEPANEL_STYLE wxTAB_TRAVERSAL
62 #define SYMBOL_CGENEPANEL_TITLE _("Gene")
63 #define SYMBOL_CGENEPANEL_IDNAME ID_CGENEPANEL
64 #define SYMBOL_CGENEPANEL_SIZE wxSize(400, 300)
65 #define SYMBOL_CGENEPANEL_POSITION wxDefaultPosition
66 ////@end control identifiers
67 
68 
69 class CSerialObject;
70 
71 /*!
72  * CGenePanel class declaration
73  */
74 
75 class CGenePanel: public wxPanel
76 {
77  DECLARE_DYNAMIC_CLASS( CGenePanel )
78  DECLARE_EVENT_TABLE()
79 
80 public:
81  /// Constructors
82  CGenePanel();
83  CGenePanel( wxWindow* parent, CSerialObject& object, objects::CScope& scope,
84  wxWindowID id = SYMBOL_CGENEPANEL_IDNAME, const wxPoint& pos = SYMBOL_CGENEPANEL_POSITION, const wxSize& size = SYMBOL_CGENEPANEL_SIZE, long style = SYMBOL_CGENEPANEL_STYLE );
85 
86  /// Creation
87  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CGENEPANEL_IDNAME, const wxPoint& pos = SYMBOL_CGENEPANEL_POSITION, const wxSize& size = SYMBOL_CGENEPANEL_SIZE, long style = SYMBOL_CGENEPANEL_STYLE );
88 
89  /// Destructor
90  ~CGenePanel();
91 
92  /// Initialises member variables
93  void Init();
94 
95  /// Creates the controls and sizers
96  void CreateControls();
97 
98 ////@begin CGenePanel event handler declarations
99 
100 ////@end CGenePanel event handler declarations
101 
102 ////@begin CGenePanel member function declarations
103 
104  /// Retrieves bitmap resources
105  wxBitmap GetBitmapResource( const wxString& name );
106 
107  /// Retrieves icon resources
108  wxIcon GetIconResource( const wxString& name );
109 ////@end CGenePanel member function declarations
110 
111  /// Should we show tooltips?
112  static bool ShowToolTips();
113 
114 ////@begin CGenePanel member variables
115  /// Control identifiers
116  enum {
117  ID_CGENEPANEL = 10003,
122  ID_TEXT5_GENEPNL = 10008
123  };
124 ////@end CGenePanel member variables
125 
126 private:
128 };
129 
131 
132 #endif // GUI_WIDGETS_EDIT___GENE_PANEL__HPP
bool Create(wxWindow *parent, wxWindowID id=ID_CGENEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
Definition: gene_panel.cpp:96
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
Definition: gene_panel.cpp:231
~CGenePanel()
Destructor.
Definition: gene_panel.cpp:116
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
Definition: gene_panel.cpp:218
CSerialObject * m_Object
Definition: gene_panel.hpp:127
void CreateControls()
Creates the controls and sizers.
Definition: gene_panel.cpp:138
void Init()
Initialises member variables.
Definition: gene_panel.cpp:127
CGenePanel()
Constructors.
Definition: gene_panel.cpp:76
static bool ShowToolTips()
Should we show tooltips?
Definition: gene_panel.cpp:209
CScope –.
Definition: scope.hpp:92
Base class for all serializable objects.
Definition: serialbase.hpp:150
#define SYMBOL_CGENEPANEL_IDNAME
Definition: gene_panel.hpp:63
#define SYMBOL_CGENEPANEL_POSITION
Definition: gene_panel.hpp:65
#define SYMBOL_CGENEPANEL_STYLE
Definition: gene_panel.hpp:61
#define SYMBOL_CGENEPANEL_SIZE
Definition: gene_panel.hpp:64
#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
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Modified on Fri May 24 14:54:19 2024 by modify_doxy.py rev. 669887