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

Go to the SVN repository for this file.

1 /* $Id: srcmod_checkbox_panel.hpp 29061 2013-10-01 19:31:45Z 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 _SRCMOD_CHECKBOX_PANEL_H_
29 #define _SRCMOD_CHECKBOX_PANEL_H_
30 
31 #include <corelib/ncbistd.hpp>
33 
34 #include <wx/checkbox.h>
35 
36 /*!
37  * Includes
38  */
39 
40 ////@begin includes
41 ////@end includes
42 
43 /*!
44  * Forward declarations
45  */
46 
47 ////@begin forward declarations
48 ////@end forward declarations
49 
51 
52 /*!
53  * Control identifiers
54  */
55 
56 ////@begin control identifiers
57 #define ID_CSRCMODCHECKBOXPANEL 10020
58 #define ID_CHECKBOX 10021
59 #define SYMBOL_CSRCMODCHECKBOXPANEL_STYLE wxTAB_TRAVERSAL
60 #define SYMBOL_CSRCMODCHECKBOXPANEL_TITLE _("SrcModCheckboxPanel")
61 #define SYMBOL_CSRCMODCHECKBOXPANEL_IDNAME ID_CSRCMODCHECKBOXPANEL
62 #define SYMBOL_CSRCMODCHECKBOXPANEL_SIZE wxDefaultSize
63 #define SYMBOL_CSRCMODCHECKBOXPANEL_POSITION wxDefaultPosition
64 ////@end control identifiers
65 
66 
67 /*!
68  * CSrcModCheckboxPanel class declaration
69  */
70 
72 {
73  DECLARE_DYNAMIC_CLASS( CSrcModCheckboxPanel )
74  DECLARE_EVENT_TABLE()
75 
76 public:
77  /// Constructors
80 
81  /// Creation
82  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CSRCMODCHECKBOXPANEL_IDNAME, const wxPoint& pos = SYMBOL_CSRCMODCHECKBOXPANEL_POSITION, const wxSize& size = SYMBOL_CSRCMODCHECKBOXPANEL_SIZE, long style = SYMBOL_CSRCMODCHECKBOXPANEL_STYLE );
83 
84  /// Destructor
86 
87  /// Initialises member variables
88  void Init();
89 
90  /// Creates the controls and sizers
91  void CreateControls();
92 
93 ////@begin CSrcModCheckboxPanel event handler declarations
94 
95  /// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX
96  void OnCheckboxClick( wxCommandEvent& event );
97 
98 ////@end CSrcModCheckboxPanel event handler declarations
99 
100 ////@begin CSrcModCheckboxPanel member function declarations
101 
102  /// Retrieves bitmap resources
103  wxBitmap GetBitmapResource( const wxString& name );
104 
105  /// Retrieves icon resources
106  wxIcon GetIconResource( const wxString& name );
107 ////@end CSrcModCheckboxPanel member function declarations
108 
109  /// Should we show tooltips?
110  static bool ShowToolTips();
111 
112 ////@begin CSrcModCheckboxPanel member variables
113  wxCheckBox* m_Checkbox;
114 ////@end CSrcModCheckboxPanel member variables
115  virtual string GetValue();
116  virtual void SetValue(const string& val);
117  virtual bool IsWellFormatted(const string& val);
118 };
119 
121 
122 #endif
123  // _SRCMOD_CHECKBOX_PANEL_H_
virtual bool IsWellFormatted(const string &val)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnCheckboxClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX
void Init()
Initialises member variables.
virtual void SetValue(const string &val)
static bool ShowToolTips()
Should we show tooltips?
void CreateControls()
Creates the controls and sizers.
CSrcModCheckboxPanel()
Constructors.
bool Create(wxWindow *parent, wxWindowID id=10020, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
Creation.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
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_CSRCMODCHECKBOXPANEL_IDNAME
#define SYMBOL_CSRCMODCHECKBOXPANEL_STYLE
#define SYMBOL_CSRCMODCHECKBOXPANEL_POSITION
#define SYMBOL_CSRCMODCHECKBOXPANEL_SIZE
Modified on Sat Apr 13 11:45:28 2024 by modify_doxy.py rev. 669887