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

Go to the SVN repository for this file.

1 /* $Id: singledbxref_subpanel.hpp 25028 2012-01-12 17:26:13Z katargir $
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 _SINGLEDBXREF_SUBPANEL_H_
29 #define _SINGLEDBXREF_SUBPANEL_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/frame.h>
43 #include <wx/sizer.h>
44 #include <wx/bitmap.h>
45 #include <wx/icon.h>
46 #include <wx/choice.h>
47 #include <wx/textctrl.h>
48 #include <wx/stattext.h>
49 
50 /*!
51  * Forward declarations
52  */
53 
54 ////@begin forward declarations
55 ////@end forward declarations
56 
58 
59 /*!
60  * Control identifiers
61  */
62 
63 ////@begin control identifiers
64 #define SYMBOL_CSINGLEDBXREF_SUBPANEL_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
65 #define SYMBOL_CSINGLEDBXREF_SUBPANEL_TITLE _("SingleDbxrefSubPanel")
66 #define SYMBOL_CSINGLEDBXREF_SUBPANEL_IDNAME ID_CSINGLEDBXREF_SUBPANEL
67 #define SYMBOL_CSINGLEDBXREF_SUBPANEL_SIZE wxSize(400, 300)
68 #define SYMBOL_CSINGLEDBXREF_SUBPANEL_POSITION wxDefaultPosition
69 ////@end control identifiers
70 
71 
72 /*!
73  * CSingleDbxref_SubPanel class declaration
74  */
75 
76 class CSingleDbxref_SubPanel: public wxPanel
77 {
78  DECLARE_DYNAMIC_CLASS( CSingleDbxref_SubPanel )
79  DECLARE_EVENT_TABLE()
80 
81 public:
82  /// Constructors
84  CSingleDbxref_SubPanel( wxWindow* parent, objects::CDbtag& tag, wxWindowID id = SYMBOL_CSINGLEDBXREF_SUBPANEL_IDNAME, const wxPoint& pos = SYMBOL_CSINGLEDBXREF_SUBPANEL_POSITION, const wxSize& size = SYMBOL_CSINGLEDBXREF_SUBPANEL_SIZE, long style = SYMBOL_CSINGLEDBXREF_SUBPANEL_STYLE );
85 
86  /// Creation
87  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CSINGLEDBXREF_SUBPANEL_IDNAME, const wxPoint& pos = SYMBOL_CSINGLEDBXREF_SUBPANEL_POSITION, const wxSize& size = SYMBOL_CSINGLEDBXREF_SUBPANEL_SIZE, long style = SYMBOL_CSINGLEDBXREF_SUBPANEL_STYLE );
88 
89  /// Destructor
91 
92  /// Initialises member variables
93  void Init();
94 
95  /// Creates the controls and sizers
96  void CreateControls();
97 
98  virtual bool TransferDataToWindow();
99  virtual bool TransferDataFromWindow();
101 
102 ////@begin CSingleDbxref_SubPanel event handler declarations
103 
104  /// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL32
105  void OnTextctrl32TextUpdated( wxCommandEvent& event );
106 
107 ////@end CSingleDbxref_SubPanel event handler declarations
108 
109 ////@begin CSingleDbxref_SubPanel 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 CSingleDbxref_SubPanel member function declarations
117 
118  /// Should we show tooltips?
119  static bool ShowToolTips();
120 
121 ////@begin CSingleDbxref_SubPanel member variables
122  wxTextCtrl* m_DbCtrl;
123  wxTextCtrl* m_ObjectIdCtrl;
124  /// Control identifiers
125  enum {
127  ID_TEXTCTRL31 = 10094,
128  ID_TEXTCTRL32 = 10095
129  };
130 ////@end CSingleDbxref_SubPanel member variables
131 private:
133 
134 };
135 
137 
138 #endif
139  // _SINGLEDBXREF_SUBPANEL_H_
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
bool Create(wxWindow *parent, wxWindowID id=ID_CSINGLEDBXREF_SUBPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
CSingleDbxref_SubPanel(wxWindow *parent, objects::CDbtag &tag, wxWindowID id=ID_CSINGLEDBXREF_SUBPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
CRef< objects::CDbtag > m_Tag
void Init()
Initialises member variables.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void CreateControls()
Creates the controls and sizers.
CRef< objects::CDbtag > GetDbtag()
void OnTextctrl32TextUpdated(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL32
static bool ShowToolTips()
Should we show tooltips?
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
const char * tag
#define SYMBOL_CSINGLEDBXREF_SUBPANEL_IDNAME
#define SYMBOL_CSINGLEDBXREF_SUBPANEL_POSITION
#define SYMBOL_CSINGLEDBXREF_SUBPANEL_SIZE
#define SYMBOL_CSINGLEDBXREF_SUBPANEL_STYLE
Modified on Mon Jul 15 05:32:40 2024 by modify_doxy.py rev. 669887