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

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_EDIT___BOND_PANEL__HPP
2 #define GUI_WIDGETS_EDIT___BOND_PANEL__HPP
3 
4 /* $Id: bond_panel.hpp 27153 2012-12-31 19:59:43Z filippov $
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 and Igor Filippov
30  */
31 
32 #include <corelib/ncbistd.hpp>
33 
34 /*!
35  * Includes
36  */
37 
38 
39 #include <wx/panel.h>
40 #include <wx/choice.h>
41 
43 /*!
44  * Forward declarations
45  */
46 
47 
50 
51 
52 /*!
53  * Control identifiers
54  */
55 
56 #define ID_CBONDPANEL 10027
57 #define ID_BONDPANEL_CHOICE 10028
58 #define SYMBOL_CBONDPANEL_STYLE wxTAB_TRAVERSAL
59 #define SYMBOL_CBONDPANEL_TITLE _("Bond Panel")
60 #define SYMBOL_CBONDPANEL_IDNAME ID_CBONDPANEL
61 #define SYMBOL_CBONDPANEL_SIZE wxSize(400, 300)
62 #define SYMBOL_CBONDPANEL_POSITION wxDefaultPosition
63 
64 
65 class CBondPanel: public wxPanel
66 {
67  DECLARE_DYNAMIC_CLASS( CBondPanel )
68  DECLARE_EVENT_TABLE()
69 
70 public:
71  /// Constructors
72  CBondPanel();
73  CBondPanel( wxWindow* parent, CSeqFeatData::EBond bond,
74  wxWindowID id = SYMBOL_CBONDPANEL_IDNAME, const wxPoint& pos = SYMBOL_CBONDPANEL_POSITION, const wxSize& size = SYMBOL_CBONDPANEL_SIZE, long style = SYMBOL_CBONDPANEL_STYLE );
75 
76  /// Creation
77  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CBONDPANEL_IDNAME, const wxPoint& pos = SYMBOL_CBONDPANEL_POSITION, const wxSize& size = SYMBOL_CBONDPANEL_SIZE, long style = SYMBOL_CBONDPANEL_STYLE );
78 
79  /// Destructor
80  ~CBondPanel();
81 
82  /// Initialises member variables
83  void Init();
84 
85  /// Creates the controls and sizers
86  void CreateControls();
87 
88  /// Retrieves bitmap resources
89  wxBitmap GetBitmapResource( const wxString& name );
90 
91  /// Retrieves icon resources
92  wxIcon GetIconResource( const wxString& name );
93 
94 
95  /// Should we show tooltips?
96  static bool ShowToolTips();
97 
98  virtual bool TransferDataFromWindow();
99 
101 
102 private:
104  wxChoice* m_Choice;
105 };
106 
107 
109 
110 #endif // GUI_WIDGETS_EDIT___BOND_PANEL__HPP
USING_SCOPE(objects)
#define SYMBOL_CBONDPANEL_POSITION
Definition: bond_panel.hpp:62
#define SYMBOL_CBONDPANEL_STYLE
Definition: bond_panel.hpp:58
#define SYMBOL_CBONDPANEL_IDNAME
Definition: bond_panel.hpp:60
#define SYMBOL_CBONDPANEL_SIZE
Definition: bond_panel.hpp:61
wxChoice * m_Choice
Definition: bond_panel.hpp:104
bool Create(wxWindow *parent, wxWindowID id=10027, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
Definition: bond_panel.cpp:77
~CBondPanel()
Destructor.
Definition: bond_panel.cpp:94
void CreateControls()
Creates the controls and sizers.
Definition: bond_panel.cpp:104
void Init()
Initialises member variables.
Definition: bond_panel.cpp:99
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
Definition: bond_panel.cpp:158
CSeqFeatData::EBond m_Bond
Definition: bond_panel.hpp:103
CBondPanel()
Constructors.
Definition: bond_panel.cpp:63
CSeqFeatData::EBond GetBond()
Definition: bond_panel.cpp:165
virtual bool TransferDataFromWindow()
Definition: bond_panel.cpp:130
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
Definition: bond_panel.cpp:151
static bool ShowToolTips()
Should we show tooltips?
Definition: bond_panel.cpp:146
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
Modified on Tue May 28 05:50:38 2024 by modify_doxy.py rev. 669887