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

Go to the SVN repository for this file.

1 /* $Id: inference_panel.hpp 41013 2018-05-09 21:07:35Z 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 // Generated by DialogBlocks (unregistered), 08/12/2011 09:51:07
29 
30 #ifndef _INFERENCE_PANEL_H_
31 #define _INFERENCE_PANEL_H_
32 
33 #include <corelib/ncbistd.hpp>
34 #include <gui/gui_export.h>
36 
37 /*!
38  * Includes
39  */
40 
41 ////@begin includes
42 ////@end includes
43 
44 #include <wx/checkbox.h>
45 
46 /*!
47  * Forward declarations
48  */
49 
50 ////@begin forward declarations
51 class wxBoxSizer;
52 ////@end forward declarations
53 
55 
56 /*!
57  * Control identifiers
58  */
59 
60 ////@begin control identifiers
61 #define SYMBOL_CINFERENCEPANEL_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
62 #define SYMBOL_CINFERENCEPANEL_TITLE _("InferencePanel")
63 #define SYMBOL_CINFERENCEPANEL_IDNAME ID_CTWOPARTQUALPANEL
64 #define SYMBOL_CINFERENCEPANEL_SIZE wxDefaultSize
65 #define SYMBOL_CINFERENCEPANEL_POSITION wxDefaultPosition
66 ////@end control identifiers
67 
68 
69 /*!
70  * CInferencePanel class declaration
71  */
72 
74 {
75  DECLARE_DYNAMIC_CLASS( CInferencePanel )
76  DECLARE_EVENT_TABLE()
77 
78  public:
79  /// Constructors
81  CInferencePanel( wxWindow* parent, wxWindowID id = SYMBOL_CINFERENCEPANEL_IDNAME, const wxPoint& pos = SYMBOL_CINFERENCEPANEL_POSITION, const wxSize& size = SYMBOL_CINFERENCEPANEL_SIZE, long style = SYMBOL_CINFERENCEPANEL_STYLE );
82 
83  /// Creation
84  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CINFERENCEPANEL_IDNAME, const wxPoint& pos = SYMBOL_CINFERENCEPANEL_POSITION, const wxSize& size = SYMBOL_CINFERENCEPANEL_SIZE, long style = SYMBOL_CINFERENCEPANEL_STYLE );
85 
86  /// Destructor
87  ~CInferencePanel();
88 
89  /// Initialises member variables
90  void Init();
91 
92  /// Creates the controls and sizers
93  void CreateControls();
94 
95  virtual void SetValue(string val);
96  virtual string GetValue();
97  virtual void GetDimensions(int *width, int *height);
98  virtual void OnChildChange(wxWindow *wnd);
99 
100 ////@begin CInferencePanel event handler declarations
101 
102  /// wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CHOICE13
103  void OnChoice13Selected( wxCommandEvent& event );
104 
105 ////@end CInferencePanel event handler declarations
106 
107 ////@begin CInferencePanel member function declarations
108 
109  /// Retrieves bitmap resources
110  wxBitmap GetBitmapResource( const wxString& name );
111 
112  /// Retrieves icon resources
113  wxIcon GetIconResource( const wxString& name );
114 ////@end CInferencePanel member function declarations
115 
116  /// Should we show tooltips?
117  static bool ShowToolTips();
118 
119 ////@begin CInferencePanel member variables
120  wxChoice* m_CategoryCtrl;
121  wxChoice* m_TypeCtrl;
122  wxBoxSizer* m_ExtraCtrlSizer;
123  /// Control identifiers
124  enum {
125  ID_CTWOPARTQUALPANEL = 10083,
126  ID_CHOICE12 = 10084,
127  ID_CHOICE13 = 10096
128  };
129 ////@end CInferencePanel member variables
130 private:
131  // depending on the type of inference, different extra data to be collected
133 };
134 
136 
137 #endif
138 // _INFERENCE_PANEL_H_
virtual void OnChildChange(wxWindow *wnd)
virtual void GetDimensions(int *width, int *height)
virtual void SetValue(string val)
wxBoxSizer * m_ExtraCtrlSizer
wxChoice * m_CategoryCtrl
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.
#define SYMBOL_CINFERENCEPANEL_SIZE
#define SYMBOL_CINFERENCEPANEL_IDNAME
#define SYMBOL_CINFERENCEPANEL_POSITION
#define SYMBOL_CINFERENCEPANEL_STYLE
const struct ncbi::grid::netcache::search::fields::SIZE size
Modified on Fri Dec 01 04:45:23 2023 by modify_doxy.py rev. 669887