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

Go to the SVN repository for this file.

1 /* $Id: rpttype_panel.hpp 37148 2016-12-08 16:17:23Z filippov $
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 _RPTTYPE_PANEL_H_
29 #define _RPTTYPE_PANEL_H_
30 
31 #include <corelib/ncbistd.hpp>
33 
34 /*!
35  * Includes
36  */
37 
38 ////@begin includes
39 ////@end includes
40 #include <wx/checkbox.h>
41 
42 /*!
43  * Forward declarations
44  */
45 
46 ////@begin forward declarations
47 class wxFlexGridSizer;
48 ////@end forward declarations
49 
51 
52 /*!
53  * Control identifiers
54  */
55 
56 ////@begin control identifiers
57 #define SYMBOL_CRPTTYPEPANEL_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
58 #define SYMBOL_CRPTTYPEPANEL_TITLE _("RptTypePanel")
59 #define SYMBOL_CRPTTYPEPANEL_IDNAME ID_CRPTTYPEPANEL
60 #define SYMBOL_CRPTTYPEPANEL_SIZE wxSize(400, 300)
61 #define SYMBOL_CRPTTYPEPANEL_POSITION wxDefaultPosition
62 ////@end control identifiers
63 
64 
65 /*!
66  * CRptTypePanel class declaration
67  */
68 
70 {
71  DECLARE_DYNAMIC_CLASS( CRptTypePanel )
72  DECLARE_EVENT_TABLE()
73 
74 public:
75  /// Constructors
76  CRptTypePanel();
77  CRptTypePanel( wxWindow* parent, wxWindowID id = SYMBOL_CRPTTYPEPANEL_IDNAME, const wxString& caption = SYMBOL_CRPTTYPEPANEL_TITLE, const wxPoint& pos = SYMBOL_CRPTTYPEPANEL_POSITION, const wxSize& size = SYMBOL_CRPTTYPEPANEL_SIZE, long style = SYMBOL_CRPTTYPEPANEL_STYLE );
78 
79  /// Creation
80  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CRPTTYPEPANEL_IDNAME, const wxString& caption = SYMBOL_CRPTTYPEPANEL_TITLE, const wxPoint& pos = SYMBOL_CRPTTYPEPANEL_POSITION, const wxSize& size = SYMBOL_CRPTTYPEPANEL_SIZE, long style = SYMBOL_CRPTTYPEPANEL_STYLE );
81 
82  /// Destructor
84 
85  /// Initialises member variables
86  void Init();
87 
88  /// Creates the controls and sizers
89  void CreateControls();
90 
91  virtual void SetValue(string val);
92  virtual string GetValue();
93 
94 ////@begin CRptTypePanel event handler declarations
95 
96 ////@end CRptTypePanel event handler declarations
97 
98 ////@begin CRptTypePanel member function declarations
99 
100  /// Retrieves bitmap resources
101  wxBitmap GetBitmapResource( const wxString& name );
102 
103  /// Retrieves icon resources
104  wxIcon GetIconResource( const wxString& name );
105 ////@end CRptTypePanel member function declarations
106 
107  /// Should we show tooltips?
108  static bool ShowToolTips();
109 
110 ////@begin CRptTypePanel member variables
111  wxFlexGridSizer* m_TheSizer;
112  /// Control identifiers
113  enum {
114  ID_CRPTTYPEPANEL = 10090
115  };
116 ////@end CRptTypePanel member variables
117 
118  static bool IsParseable( const string& val );
119 
120 private:
121  wxArrayString m_AcceptedValues;
122  vector<wxCheckBox*> m_Boxes;
123 
124 };
125 
127 
128 #endif
129  // _RPTTYPE_PANEL_H_
vector< wxCheckBox * > m_Boxes
wxFlexGridSizer * m_TheSizer
static bool IsParseable(const string &val)
static bool ShowToolTips()
Should we show tooltips?
virtual string GetValue()
CRptTypePanel()
Constructors.
void CreateControls()
Creates the controls and sizers.
virtual void SetValue(string val)
bool Create(wxWindow *parent, wxWindowID id=ID_CRPTTYPEPANEL, const wxString &caption=_("RptTypePanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
~CRptTypePanel()
Destructor.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxArrayString m_AcceptedValues
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
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_CRPTTYPEPANEL_STYLE
#define SYMBOL_CRPTTYPEPANEL_POSITION
#define SYMBOL_CRPTTYPEPANEL_IDNAME
#define SYMBOL_CRPTTYPEPANEL_TITLE
#define SYMBOL_CRPTTYPEPANEL_SIZE
Modified on Wed Sep 04 15:02:45 2024 by modify_doxy.py rev. 669887