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

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_EDIT___LOCALE_PANEL__HPP
2 #define GUI_WIDGETS_EDIT___LOCALE_PANEL__HPP
3 
4 /* $Id: locale_panel.hpp 34283 2015-12-08 21:44:29Z 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 
36 #include <wx/panel.h>
37 
38 /*!
39  * Includes
40  */
41 
42 ////@begin includes
43 ////@end includes
44 
45 
46 /*!
47  * Forward declarations
48  */
49 
50 ////@begin forward declarations
51 ////@end forward declarations
52 
54 
55 class CSerialObject;
56 
57 /*!
58  * Control identifiers
59  */
60 
61 
62 ////@begin control identifiers
63 #define ID_LOCALE 10065
64 #define ID_LOCALE_NAME 10066
65 #define ID_LOCALE_ADDRESS 10067
66 #define ID_LOCALE_CITY 10068
67 #define ID_LOCALE_STATE 10069
68 #define ID_LOCALE_COUNTRY 10070
69 #define ID_LOCALE_PROCNUM 10071
70 #define SYMBOL_CLOCALEPANEL_STYLE wxTAB_TRAVERSAL
71 #define SYMBOL_CLOCALEPANEL_TITLE _("Locale")
72 #define SYMBOL_CLOCALEPANEL_IDNAME ID_LOCALE
73 #define SYMBOL_CLOCALEPANEL_SIZE wxSize(400, 300)
74 #define SYMBOL_CLOCALEPANEL_POSITION wxDefaultPosition
75 ////@end control identifiers
76 
77 
78 /*!
79  * CLocalePanel class declaration
80  */
81 
82 class CLocalePanel: public wxPanel
83 {
84  DECLARE_DYNAMIC_CLASS( CLocalePanel )
85  DECLARE_EVENT_TABLE()
86 
87 public:
88  /// Constructors
89  CLocalePanel();
90  CLocalePanel( wxWindow* parent, CSerialObject& object, wxWindowID id = SYMBOL_CLOCALEPANEL_IDNAME, const wxPoint& pos = SYMBOL_CLOCALEPANEL_POSITION, const wxSize& size = SYMBOL_CLOCALEPANEL_SIZE, long style = SYMBOL_CLOCALEPANEL_STYLE );
91 
92  /// Creation
93  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CLOCALEPANEL_IDNAME, const wxPoint& pos = SYMBOL_CLOCALEPANEL_POSITION, const wxSize& size = SYMBOL_CLOCALEPANEL_SIZE, long style = SYMBOL_CLOCALEPANEL_STYLE );
94 
95  /// Destructor
96  ~CLocalePanel();
97 
98  /// Initialises member variables
99  void Init();
100 
101  /// Creates the controls and sizers
102  void CreateControls();
103 
105 
106 ////@begin CLocalePanel event handler declarations
107 
108 ////@end CLocalePanel event handler declarations
109 
110 ////@begin CLocalePanel member function declarations
111 
112  /// Retrieves bitmap resources
113  wxBitmap GetBitmapResource( const wxString& name );
114 
115  /// Retrieves icon resources
116  wxIcon GetIconResource( const wxString& name );
117 ////@end CLocalePanel member function declarations
118 
119  /// Should we show tooltips?
120  static bool ShowToolTips();
121 
122  virtual bool TransferDataToWindow();
123  virtual bool TransferDataFromWindow();
124 
125 ////@begin CLocalePanel member variables
126 ////@end CLocalePanel member variables
127 private:
130  wxWindow *m_PubDate;
131 };
132 
134 
135 #endif // GUI_WIDGETS_EDIT___LOCALE_PANEL__HPP
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
static bool ShowToolTips()
Should we show tooltips?
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CRef< objects::CMeeting > GetMeeting() const
CLocalePanel()
Constructors.
~CLocalePanel()
Destructor.
CSerialObject * m_Object
void CreateControls()
Creates the controls and sizers.
bool Create(wxWindow *parent, wxWindowID id=10065, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
virtual bool TransferDataFromWindow()
CRef< CSerialObject > m_EditedMeeting
void Init()
Initialises member variables.
wxWindow * m_PubDate
virtual bool TransferDataToWindow()
CRef –.
Definition: ncbiobj.hpp:618
Base class for all serializable objects.
Definition: serialbase.hpp:150
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_CLOCALEPANEL_SIZE
#define SYMBOL_CLOCALEPANEL_POSITION
#define SYMBOL_CLOCALEPANEL_IDNAME
#define SYMBOL_CLOCALEPANEL_STYLE
const struct ncbi::grid::netcache::search::fields::SIZE size
Modified on Fri Sep 20 14:58:02 2024 by modify_doxy.py rev. 669887