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

Go to the SVN repository for this file.

1 /* $Id: voucher_panel.hpp 29060 2013-10-01 19:21:17Z bollin $
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 _VOUCHER_PANEL_H_
29 #define _VOUCHER_PANEL_H_
30 
31 #include <corelib/ncbistd.hpp>
33 #include <wx/textctrl.h>
34 
35 /*!
36  * Includes
37  */
38 
39 ////@begin includes
40 ////@end includes
41 
42 /*!
43  * Forward declarations
44  */
45 
46 ////@begin forward declarations
47 ////@end forward declarations
48 
50 
51 /*!
52  * Control identifiers
53  */
54 
55 ////@begin control identifiers
56 #define ID_CVOUCHERPANEL 10005
57 #define ID_VOUCHER_INST 10009
58 #define ID_VOUCHER_COLL 10016
59 #define ID_VOUCHER_TEXT 10017
60 #define SYMBOL_CVOUCHERPANEL_STYLE wxTAB_TRAVERSAL
61 #define SYMBOL_CVOUCHERPANEL_TITLE _("VoucherPanel")
62 #define SYMBOL_CVOUCHERPANEL_IDNAME ID_CVOUCHERPANEL
63 #define SYMBOL_CVOUCHERPANEL_SIZE wxDefaultSize
64 #define SYMBOL_CVOUCHERPANEL_POSITION wxDefaultPosition
65 ////@end control identifiers
66 
67 
68 /*!
69  * CVoucherPanel class declaration
70  */
71 
73 {
74  DECLARE_DYNAMIC_CLASS( CVoucherPanel )
75  DECLARE_EVENT_TABLE()
76 
77 public:
78  /// Constructors
79  CVoucherPanel();
80  CVoucherPanel( wxWindow* parent, wxWindowID id = SYMBOL_CVOUCHERPANEL_IDNAME, const wxPoint& pos = SYMBOL_CVOUCHERPANEL_POSITION, const wxSize& size = SYMBOL_CVOUCHERPANEL_SIZE, long style = SYMBOL_CVOUCHERPANEL_STYLE );
81 
82  /// Creation
83  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CVOUCHERPANEL_IDNAME, const wxPoint& pos = SYMBOL_CVOUCHERPANEL_POSITION, const wxSize& size = SYMBOL_CVOUCHERPANEL_SIZE, long style = SYMBOL_CVOUCHERPANEL_STYLE );
84 
85  /// Destructor
87 
88  /// Initialises member variables
89  void Init();
90 
91  /// Creates the controls and sizers
92  void CreateControls();
93 
94 ////@begin CVoucherPanel event handler declarations
95 
96  /// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_VOUCHER_INST
97  void OnVoucherInstTextUpdated( wxCommandEvent& event );
98 
99  /// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_VOUCHER_COLL
100  void OnVoucherCollTextUpdated( wxCommandEvent& event );
101 
102  /// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_VOUCHER_TEXT
103  void OnVoucherTextTextUpdated( wxCommandEvent& event );
104 
105 ////@end CVoucherPanel event handler declarations
106 
107 ////@begin CVoucherPanel member function declarations
108 
109  /// Retrieves bitmap resources
110  wxBitmap GetBitmapResource( const wxString& name );
111 
112  /// Retrieves icon resources
113  wxIcon GetIconResource( const wxString& name );
114 ////@end CVoucherPanel member function declarations
115 
116  /// Should we show tooltips?
117  static bool ShowToolTips();
118 
119 ////@begin CVoucherPanel member variables
120  wxTextCtrl* m_Inst;
121  wxTextCtrl* m_Coll;
122  wxTextCtrl* m_ID;
123 ////@end CVoucherPanel member variables
124 
125  virtual string GetValue();
126  virtual void SetValue(const string& val);
127  virtual bool IsWellFormatted(const string& val);
128 };
129 
131 
132 #endif
133  // _VOUCHER_PANEL_H_
void OnVoucherTextTextUpdated(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_VOUCHER_TEXT
void CreateControls()
Creates the controls and sizers.
virtual void SetValue(const string &val)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnVoucherCollTextUpdated(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_VOUCHER_COLL
~CVoucherPanel()
Destructor.
virtual string GetValue()
static bool ShowToolTips()
Should we show tooltips?
virtual bool IsWellFormatted(const string &val)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=10005, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
Creation.
void OnVoucherInstTextUpdated(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_VOUCHER_INST
CVoucherPanel()
Constructors.
wxTextCtrl * m_ID
wxTextCtrl * m_Inst
wxTextCtrl * m_Coll
void Init()
Initialises member variables.
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
#define SYMBOL_CVOUCHERPANEL_IDNAME
#define SYMBOL_CVOUCHERPANEL_STYLE
#define SYMBOL_CVOUCHERPANEL_POSITION
#define SYMBOL_CVOUCHERPANEL_SIZE
Modified on Fri Sep 20 14:57:47 2024 by modify_doxy.py rev. 669887