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

Go to the SVN repository for this file.

1 /* $Id: gbqual_semicontrolled.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 _GBQUAL_SEMICONTROLLED_H_
29 #define _GBQUAL_SEMICONTROLLED_H_
30 
31 #include <corelib/ncbistd.hpp>
32 #include <corelib/ncbiobj.hpp>
34 
35 #include <wx/panel.h>
36 #include <wx/frame.h>
37 #include <wx/sizer.h>
38 #include <wx/bitmap.h>
39 #include <wx/icon.h>
40 #include <wx/combobox.h>
41 
42 /*!
43  * Includes
44  */
45 
46 ////@begin includes
47 ////@end includes
48 
49 /*!
50  * Forward declarations
51  */
52 
53 ////@begin forward declarations
54 ////@end forward declarations
55 
57 
58 /*!
59  * Control identifiers
60  */
61 
62 ////@begin control identifiers
63 #define SYMBOL_CGBQUALSEMICONTROLLEDTEXTPANEL_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxTAB_TRAVERSAL
64 #define SYMBOL_CGBQUALSEMICONTROLLEDTEXTPANEL_TITLE _("GBQualText Panel")
65 #define SYMBOL_CGBQUALSEMICONTROLLEDTEXTPANEL_IDNAME ID_CGBQUALTEXTPANEL
66 #define SYMBOL_CGBQUALSEMICONTROLLEDTEXTPANEL_SIZE wxDefaultSize
67 #define SYMBOL_CGBQUALSEMICONTROLLEDTEXTPANEL_POSITION wxDefaultPosition
68 ////@end control identifiers
69 
70 
71 /*!
72  * CGBQualSemicontrolledTextPanel class declaration
73  */
74 
76 {
77  DECLARE_DYNAMIC_CLASS( CGBQualSemicontrolledTextPanel )
78  DECLARE_EVENT_TABLE()
79 
80 public:
81  /// Constructors
84 
85  /// Creation
87 
88  /// Destructor
90 
91  /// Initialises member variables
92  void Init();
93 
94  /// Creates the controls and sizers
95  void CreateControls();
96 
97 ////@begin CGBQualSemicontrolledTextPanel event handler declarations
98 
99 ////@end CGBQualSemicontrolledTextPanel event handler declarations
100 
101 ////@begin CGBQualSemicontrolledTextPanel member function declarations
102 
103  /// Retrieves bitmap resources
104  wxBitmap GetBitmapResource( const wxString& name );
105 
106  /// Retrieves icon resources
107  wxIcon GetIconResource( const wxString& name );
108 ////@end CGBQualSemicontrolledTextPanel member function declarations
109 
110  /// Should we show tooltips?
111  static bool ShowToolTips();
112 
113 ////@begin CGBQualSemicontrolledTextPanel member variables
114  wxComboBox* m_theValue;
115  /// Control identifiers
116  enum {
118  ID_TEXTCTRL = 10049
119  };
120 ////@end CGBQualSemicontrolledTextPanel member variables
121 
122  virtual void SetValue(string val);
123  virtual string GetValue();
124 
125  void SetControlledList (vector<string> choices);
126 
127 };
128 
130 
131 #endif
132  // _GBQUAL_SEMICONTROLLED_H_
void Init()
Initialises member variables.
bool Create(wxWindow *parent, wxWindowID id=ID_CGBQUALTEXTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxTAB_TRAVERSAL)
Creation.
void SetControlledList(vector< string > choices)
static bool ShowToolTips()
Should we show tooltips?
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void CreateControls()
Creates the controls and sizers.
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define SYMBOL_CGBQUALSEMICONTROLLEDTEXTPANEL_STYLE
#define SYMBOL_CGBQUALSEMICONTROLLEDTEXTPANEL_POSITION
#define SYMBOL_CGBQUALSEMICONTROLLEDTEXTPANEL_IDNAME
#define SYMBOL_CGBQUALSEMICONTROLLEDTEXTPANEL_SIZE
#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 Sat Jun 22 10:37:57 2024 by modify_doxy.py rev. 669887