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

Go to the SVN repository for this file.

1 #ifndef GUI_PKG_SEQ_EDIT___INPRESSREF_PANEL__HPP
2 #define GUI_PKG_SEQ_EDIT___INPRESSREF_PANEL__HPP
3 /* $Id: inpressref_panel.hpp 42780 2019-04-11 16:35:17Z asztalos $
4  * ===========================================================================
5  *
6  * PUBLIC DOMAIN NOTICE
7  * National Center for Biotechnology Information
8  *
9  * This software/database is a "United States Government Work" under the
10  * terms of the United States Copyright Act. It was written as part of
11  * the author's official duties as a United States Government employee and
12  * thus cannot be copyrighted. This software/database is freely available
13  * to the public for use. The National Library of Medicine and the U.S.
14  * Government have not placed any restriction on its use or reproduction.
15  *
16  * Although all reasonable efforts have been taken to ensure the accuracy
17  * and reliability of the software and data, the NLM and the U.S.
18  * Government do not and cannot warrant the performance or results that
19  * may be obtained by using this software or data. The NLM and the U.S.
20  * Government disclaim all warranties, express or implied, including
21  * warranties of performance, merchantability or fitness for any particular
22  * purpose.
23  *
24  * Please cite the author in any work or product based on this material.
25  *
26  * ===========================================================================
27  *
28  * Authors: Andrea Asztalos
29  */
30 
31 #include <corelib/ncbistd.hpp>
32 #include <wx/panel.h>
33 
34 class wxTextCtrl;
35 
37 
38 
39 /*!
40  * Control identifiers
41  */
42 
43 ////@begin control identifiers
44 #define SYMBOL_CINPRESSREFPANEL_STYLE wxTAB_TRAVERSAL
45 #define SYMBOL_CINPRESSREFPANEL_TITLE _("InPress Reference")
46 #define SYMBOL_CINPRESSREFPANEL_IDNAME ID_CINPRESSREFPANEL
47 #define SYMBOL_CINPRESSREFPANEL_SIZE wxSize(400, 300)
48 #define SYMBOL_CINPRESSREFPANEL_POSITION wxDefaultPosition
49 ////@end control identifiers
50 
51 
52 /*!
53  * CInPressRefPanel class declaration
54  */
55 
56 class CInPressRefPanel: public wxPanel
57 {
58  DECLARE_DYNAMIC_CLASS( CInPressRefPanel )
59  DECLARE_EVENT_TABLE()
60 
61 public:
62  /// Constructors
64  CInPressRefPanel( wxWindow* parent,
65  wxWindowID id = SYMBOL_CINPRESSREFPANEL_IDNAME,
66  const wxPoint& pos = SYMBOL_CINPRESSREFPANEL_POSITION,
67  const wxSize& size = SYMBOL_CINPRESSREFPANEL_SIZE,
68  long style = SYMBOL_CINPRESSREFPANEL_STYLE );
69 
70  /// Creation
71  bool Create( wxWindow* parent,
72  wxWindowID id = SYMBOL_CINPRESSREFPANEL_IDNAME,
73  const wxPoint& pos = SYMBOL_CINPRESSREFPANEL_POSITION,
74  const wxSize& size = SYMBOL_CINPRESSREFPANEL_SIZE,
75  long style = SYMBOL_CINPRESSREFPANEL_STYLE );
76 
77  /// Destructor
79 
80  /// Initialises member variables
81  void Init();
82 
83  /// Creates the controls and sizers
84  void CreateControls();
85 
86 ////@begin CInPressRefPanel event handler declarations
87 
88  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_PMIDLOOKBTN
89  void OnLookupClick( wxCommandEvent& event );
90 
91 ////@end CInPressRefPanel event handler declarations
92 
93 ////@begin CInPressRefPanel member function declarations
94 
95  /// Retrieves bitmap resources
96  wxBitmap GetBitmapResource( const wxString& name );
97 
98  /// Retrieves icon resources
99  wxIcon GetIconResource( const wxString& name );
100 ////@end CInPressRefPanel member function declarations
101 
102  /// Should we show tooltips?
103  static bool ShowToolTips();
104 
105 private:
106 ////@begin CInPressRefPanel member variables
107  wxTextCtrl* m_PubMedID;
108  wxTextCtrl* m_ReferenceTitle;
109  wxTextCtrl* m_JournalTitle;
110  wxTextCtrl* m_YearCtrl;
111  wxTextCtrl* m_VolCtrl;
112  wxTextCtrl* m_IssueCtrl;
113  wxTextCtrl* m_PagesFromCtrl;
114  wxTextCtrl* m_PagesToCtrl;
115 public:
116  /// Control identifiers
117  enum {
123  ID_INPYEAR = 6670,
124  ID_INPVOL = 6671,
125  ID_INPISSUE = 6672,
127  ID_INPPAGESTO = 6674
128  };
129 ////@end CInPressRefPanel member variables
130 };
131 
133 
134 #endif
135  // GUI_PKG_SEQ_EDIT___INPRESSREF_PANEL__HPP
wxTextCtrl * m_PagesFromCtrl
void Init()
Initialises member variables.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
static bool ShowToolTips()
Should we show tooltips?
bool Create(wxWindow *parent, wxWindowID id=ID_CINPRESSREFPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
~CInPressRefPanel()
Destructor.
wxTextCtrl * m_ReferenceTitle
wxTextCtrl * m_VolCtrl
void OnLookupClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_PMIDLOOKBTN
wxTextCtrl * m_YearCtrl
CInPressRefPanel()
Constructors.
wxTextCtrl * m_PubMedID
wxTextCtrl * m_IssueCtrl
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxTextCtrl * m_JournalTitle
void CreateControls()
Creates the controls and sizers.
wxTextCtrl * m_PagesToCtrl
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
#define SYMBOL_CINPRESSREFPANEL_STYLE
#define SYMBOL_CINPRESSREFPANEL_IDNAME
#define SYMBOL_CINPRESSREFPANEL_SIZE
#define SYMBOL_CINPRESSREFPANEL_POSITION
const struct ncbi::grid::netcache::search::fields::SIZE size
Modified on Fri Sep 20 14:57:49 2024 by modify_doxy.py rev. 669887