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

Go to the SVN repository for this file.

1 /* $Id: gbqualtext_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 _CGBQUALTEXTPANEL_H_
29 #define _CGBQUALTEXTPANEL_H_
30 
31 #include <corelib/ncbistd.hpp>
32 #include <corelib/ncbiobj.hpp>
34 /*!
35  * Includes
36  */
37 
38 ////@begin includes
39 ////@end includes
40 
41 #include <wx/panel.h>
42 #include <wx/frame.h>
43 #include <wx/sizer.h>
44 #include <wx/bitmap.h>
45 #include <wx/icon.h>
46 #include <wx/choice.h>
47 #include <wx/textctrl.h>
48 #include <wx/stattext.h>
49 #include <wx/valtext.h>
50 
51 /*!
52  * Forward declarations
53  */
54 
55 ////@begin forward declarations
56 ////@end forward declarations
57 
59 
60 /*!
61  * Control identifiers
62  */
63 
64 ////@begin control identifiers
65 #define SYMBOL_CGBQUALTEXTPANEL_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
66 #define SYMBOL_CGBQUALTEXTPANEL_TITLE _("GBQualText Panel")
67 #define SYMBOL_CGBQUALTEXTPANEL_IDNAME ID_CGBQUALTEXTPANEL
68 #define SYMBOL_CGBQUALTEXTPANEL_SIZE wxSize(400, -1)
69 #define SYMBOL_CGBQUALTEXTPANEL_POSITION wxDefaultPosition
70 ////@end control identifiers
71 
72 
73 /*!
74  * CGBQualTextPanel class declaration
75  */
76 
78 {
79  DECLARE_DYNAMIC_CLASS( CGBQualTextPanel )
80  DECLARE_EVENT_TABLE()
81 
82 public:
83  /// Constructors
85  CGBQualTextPanel( wxWindow* parent, wxWindowID id = SYMBOL_CGBQUALTEXTPANEL_IDNAME, const wxString& caption = SYMBOL_CGBQUALTEXTPANEL_TITLE, const wxPoint& pos = SYMBOL_CGBQUALTEXTPANEL_POSITION, const wxSize& size = SYMBOL_CGBQUALTEXTPANEL_SIZE, long style = SYMBOL_CGBQUALTEXTPANEL_STYLE );
86 
87  /// Creation
88  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CGBQUALTEXTPANEL_IDNAME, const wxString& caption = SYMBOL_CGBQUALTEXTPANEL_TITLE, const wxPoint& pos = SYMBOL_CGBQUALTEXTPANEL_POSITION, const wxSize& size = SYMBOL_CGBQUALTEXTPANEL_SIZE, long style = SYMBOL_CGBQUALTEXTPANEL_STYLE );
89 
90  /// Destructor
92 
93  /// Initialises member variables
94  void Init();
95 
96  /// Creates the controls and sizers
97  void CreateControls();
98 
99  virtual void SetValue(string val);
100  virtual string GetValue();
101 
102 ////@begin CGBQualTextPanel event handler declarations
103 
104 ////@end CGBQualTextPanel event handler declarations
105 
106 ////@begin CGBQualTextPanel member function declarations
107 
108  /// Retrieves bitmap resources
109  wxBitmap GetBitmapResource( const wxString& name );
110 
111  /// Retrieves icon resources
112  wxIcon GetIconResource( const wxString& name );
113 ////@end CGBQualTextPanel member function declarations
114 
115  /// Should we show tooltips?
116  static bool ShowToolTips();
117 
118 ////@begin CGBQualTextPanel member variables
119  wxTextCtrl* m_theValue;
120  /// Control identifiers
121  enum {
123  ID_TEXTCTRL = 10049
124  };
125 ////@end CGBQualTextPanel member variables
126 };
127 
129 
130 #endif
131  // _CGBQUALTEXTPANEL_H_
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
~CGBQualTextPanel()
Destructor.
CGBQualTextPanel()
Constructors.
void Init()
Initialises member variables.
wxTextCtrl * m_theValue
virtual string GetValue()
virtual void SetValue(string val)
bool Create(wxWindow *parent, wxWindowID id=ID_CGBQUALTEXTPANEL, const wxString &caption=_("GBQualText Panel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, -1), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
void CreateControls()
Creates the controls and sizers.
static bool ShowToolTips()
Should we show tooltips?
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define SYMBOL_CGBQUALTEXTPANEL_SIZE
#define SYMBOL_CGBQUALTEXTPANEL_IDNAME
#define SYMBOL_CGBQUALTEXTPANEL_TITLE
#define SYMBOL_CGBQUALTEXTPANEL_POSITION
#define SYMBOL_CGBQUALTEXTPANEL_STYLE
#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
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Modified on Thu Dec 07 10:11:05 2023 by modify_doxy.py rev. 669887