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

Go to the SVN repository for this file.

1 /* $Id: single_experiment_panel.hpp 37154 2016-12-08 19:21:13Z asztalos $
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 _SINGLE_EXPERIMENT_PANEL_H_
29 #define _SINGLE_EXPERIMENT_PANEL_H_
30 
31 #include <corelib/ncbistd.hpp>
32 #include <gui/gui_export.h>
33 #include "formattedqual_panel.hpp"
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 SYMBOL_CSINGLEEXPERIMENTPANEL_STYLE wxTAB_TRAVERSAL
57 #define SYMBOL_CSINGLEEXPERIMENTPANEL_TITLE _("SingleExperimentPanel")
58 #define SYMBOL_CSINGLEEXPERIMENTPANEL_IDNAME ID_CSINGLEEXPERIMENTPANEL
59 #define SYMBOL_CSINGLEEXPERIMENTPANEL_SIZE wxSize(400, 300)
60 #define SYMBOL_CSINGLEEXPERIMENTPANEL_POSITION wxDefaultPosition
61 ////@end control identifiers
62 
63 
64 /*!
65  * CSingleExperimentPanel class declaration
66  */
67 
69 {
70  DECLARE_DYNAMIC_CLASS( CSingleExperimentPanel )
71  DECLARE_EVENT_TABLE()
72 
73 public:
74  /// Constructors
77 
78  /// Creation
79  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CSINGLEEXPERIMENTPANEL_IDNAME, const wxPoint& pos = SYMBOL_CSINGLEEXPERIMENTPANEL_POSITION, const wxSize& size = SYMBOL_CSINGLEEXPERIMENTPANEL_SIZE, long style = SYMBOL_CSINGLEEXPERIMENTPANEL_STYLE );
80 
81  /// Destructor
83 
84  /// Initialises member variables
85  void Init();
86 
87  /// Creates the controls and sizers
88  void CreateControls();
89 
90  virtual void SetValue(string val);
91  virtual string GetValue();
92  virtual void GetDimensions(int *width, int *height);
93 
94 ////@begin CSingleExperimentPanel event handler declarations
95 
96  /// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_EXPERIMENT_TXT
97  void OnExperimentTxtTextUpdated( wxCommandEvent& event );
98 
99 ////@end CSingleExperimentPanel event handler declarations
100 
101 ////@begin CSingleExperimentPanel 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 CSingleExperimentPanel member function declarations
109 
110  /// Should we show tooltips?
111  static bool ShowToolTips();
112 
113 ////@begin CSingleExperimentPanel member variables
114  wxChoice* m_Category;
115  wxTextCtrl* m_Experiment;
116  wxTextCtrl* m_PMID;
117  /// Control identifiers
118  enum {
119  ID_CSINGLEEXPERIMENTPANEL = 10179,
120  ID_CHOICE18 = 10180,
121  ID_EXPERIMENT_TXT = 10181,
122  ID_TEXTCTRL2 = 10182
123  };
124 ////@end CSingleExperimentPanel member variables
125 };
126 
128 
129 #endif
130  // _SINGLE_EXPERIMENT_PANEL_H_
virtual void GetDimensions(int *width, int *height)
virtual void SetValue(string val)
Include a standard set of the NCBI C++ Toolkit most basic headers.
static void Init(void)
Definition: cursor6.c:76
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define NCBI_GUIWIDGETS_EDIT_EXPORT
Definition: gui_export.h:526
Defines to provide correct exporting from DLLs in Windows.
const struct ncbi::grid::netcache::search::fields::SIZE size
#define SYMBOL_CSINGLEEXPERIMENTPANEL_IDNAME
#define SYMBOL_CSINGLEEXPERIMENTPANEL_STYLE
#define SYMBOL_CSINGLEEXPERIMENTPANEL_POSITION
#define SYMBOL_CSINGLEEXPERIMENTPANEL_SIZE
#define ID_TEXTCTRL2
Modified on Fri Dec 08 08:20:40 2023 by modify_doxy.py rev. 669887