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

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_EDIT___AUTHOR_AFFILIATION_PANEL__HPP
2 #define GUI_WIDGETS_EDIT___AUTHOR_AFFILIATION_PANEL__HPP
3 
4 /* $Id: author_affiliation_panel.hpp 37410 2017-01-06 18:49:23Z 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: Colleen Bollin
30  */
31 
32 #include <corelib/ncbistd.hpp>
33 
34 #include <objmgr/scope.hpp>
35 #include <objects/biblio/Affil.hpp>
36 
38 
39 #include <wx/panel.h>
40 #include <wx/sizer.h>
41 #include <wx/bitmap.h>
42 #include <wx/icon.h>
43 #include <wx/choice.h>
44 #include <wx/textctrl.h>
45 #include <wx/stattext.h>
46 #include "wx/valtext.h"
47 
48 /*!
49  * Includes
50  */
51 
52 ////@begin includes
53 ////@end includes
54 
56 
57 /*!
58  * Forward declarations
59  */
60 
61 ////@begin forward declarations
62 ////@end forward declarations
63 
64 
65 /*!
66  * Control identifiers
67  */
68 
69 
70 ////@begin control identifiers
71 #define SYMBOL_CAUTHORAFFILIATIONPANEL_STYLE wxTAB_TRAVERSAL
72 #define SYMBOL_CAUTHORAFFILIATIONPANEL_TITLE _("AuthorAffiliationPanel")
73 #define SYMBOL_CAUTHORAFFILIATIONPANEL_IDNAME ID_CAUTHORAFFILIATIONPANEL
74 #define SYMBOL_CAUTHORAFFILIATIONPANEL_SIZE wxSize(400, 300)
75 #define SYMBOL_CAUTHORAFFILIATIONPANEL_POSITION wxDefaultPosition
76 ////@end control identifiers
77 
78 
79 /*!
80  * CAuthorAffiliationPanel class declaration
81  */
82 
84 {
85  DECLARE_DYNAMIC_CLASS( CAuthorAffiliationPanel )
86  DECLARE_EVENT_TABLE()
87 
88 public:
89  /// Constructors
91  CAuthorAffiliationPanel( wxWindow* parent, const objects::CAffil& affil, wxWindowID id = SYMBOL_CAUTHORAFFILIATIONPANEL_IDNAME, const wxPoint& pos = SYMBOL_CAUTHORAFFILIATIONPANEL_POSITION, const wxSize& size = SYMBOL_CAUTHORAFFILIATIONPANEL_SIZE, long style = SYMBOL_CAUTHORAFFILIATIONPANEL_STYLE );
92 
93  /// Creation
94  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CAUTHORAFFILIATIONPANEL_IDNAME, const wxPoint& pos = SYMBOL_CAUTHORAFFILIATIONPANEL_POSITION, const wxSize& size = SYMBOL_CAUTHORAFFILIATIONPANEL_SIZE, long style = SYMBOL_CAUTHORAFFILIATIONPANEL_STYLE );
95 
96  /// Destructor
98 
99  /// Initialises member variables
100  void Init();
101 
102  /// Creates the controls and sizers
103  void CreateControls();
104 
105  virtual bool TransferDataToWindow();
106  virtual bool TransferDataFromWindow();
107  void SetAffil(CRef<objects::CAffil> affil);
108  CRef<objects::CAffil> GetAffil();
109 
110 ////@begin CAuthorAffiliationPanel event handler declarations
111 
112 ////@end CAuthorAffiliationPanel event handler declarations
113 
114 ////@begin CAuthorAffiliationPanel member function declarations
115 
116  /// Retrieves bitmap resources
117  wxBitmap GetBitmapResource( const wxString& name );
118 
119  /// Retrieves icon resources
120  wxIcon GetIconResource( const wxString& name );
121 ////@end CAuthorAffiliationPanel member function declarations
122 
123  /// Should we show tooltips?
124  static bool ShowToolTips();
125 
126 ////@begin CAuthorAffiliationPanel member variables
127  wxTextCtrl* m_AffilCtrl;
128  wxTextCtrl* m_DepartmentCtrl;
129  wxTextCtrl* m_StreetCtrl;
130  wxTextCtrl* m_CityCtrl;
131  wxTextCtrl* m_SubCtrl;
132  wxTextCtrl* m_ZipCtrl;
133  wxTextCtrl* m_CountryCtrl;
134  /// Control identifiers
135  enum {
136  ID_CAUTHORAFFILIATIONPANEL = 10002,
137  ID_AUTH_AFFIL_INST = 10003,
138  ID_AUTH_AFFIL_DEPT = 10004,
139  ID_AUTH_AFFIL_ADDRESS = 10005,
140  ID_AUTH_AFFIL_CITY = 10006,
141  ID_AUTH_AFFIL_STATE = 10007,
142  ID_AUTH_AFFIL_CODE = 10008,
143  ID_AUTH_AFFIL_COUNTRY = 10009
144  };
145 ////@end CAuthorAffiliationPanel member variables
146 private:
148 
149 };
150 
152 
153 #endif // GUI_WIDGETS_EDIT___AUTHOR_AFFILIATION_PANEL__HPP
#define SYMBOL_CAUTHORAFFILIATIONPANEL_IDNAME
#define SYMBOL_CAUTHORAFFILIATIONPANEL_POSITION
#define SYMBOL_CAUTHORAFFILIATIONPANEL_STYLE
#define SYMBOL_CAUTHORAFFILIATIONPANEL_SIZE
CAuthorAffiliationPanel(wxWindow *parent, const objects::CAffil &affil, wxWindowID id=ID_CAUTHORAFFILIATIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
CRef< objects::CAffil > m_Affil
Include a standard set of the NCBI C++ Toolkit most basic headers.
static void Init(void)
Definition: cursor6.c:76
#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 NCBI_GUIWIDGETS_EDIT_EXPORT
Definition: gui_export.h:526
const struct ncbi::grid::netcache::search::fields::SIZE size
Modified on Mon Feb 26 04:01:32 2024 by modify_doxy.py rev. 669887