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

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_EDIT___REGION_PANEL__HPP
2 #define GUI_WIDGETS_EDIT___REGION_PANEL__HPP
3 
4 /* $Id: region_panel.hpp 39032 2017-07-21 16:04:03Z filippov $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Roman Katargin and Igor Filippov
30  */
31 
32 #include <corelib/ncbistd.hpp>
33 
34 /*!
35  * Includes
36  */
37 
38 
39 #include <wx/panel.h>
40 #include <wx/textctrl.h>
41 #include <wx/checkbox.h>
42 
43 /*!
44  * Forward declarations
45  */
46 
47 
49 
50 
51 
52 /*!
53  * Control identifiers
54  */
55 
56 #define ID_CREGIONPANEL 10017
57 #define ID_REGIONPANEL_TEXTCTRL 10018
58 #define SYMBOL_CREGIONPANEL_STYLE wxTAB_TRAVERSAL
59 #define SYMBOL_CREGIONPANEL_TITLE _("Region Panel")
60 #define SYMBOL_CREGIONPANEL_IDNAME ID_CREGIONPANEL
61 #define SYMBOL_CREGIONPANEL_SIZE wxSize(400, 300)
62 #define SYMBOL_CREGIONPANEL_POSITION wxDefaultPosition
63 
64 
65 class CSerialObject;
66 
67 
68 class CRegionPanel: public wxPanel
69 {
70  DECLARE_DYNAMIC_CLASS( CRegionPanel )
71  DECLARE_EVENT_TABLE()
72 
73 public:
74  /// Constructors
75  CRegionPanel();
76  CRegionPanel( wxWindow* parent, string region,
77  wxWindowID id = SYMBOL_CREGIONPANEL_IDNAME, const wxPoint& pos = SYMBOL_CREGIONPANEL_POSITION, const wxSize& size = SYMBOL_CREGIONPANEL_SIZE, long style = SYMBOL_CREGIONPANEL_STYLE );
78 
79  /// Creation
80  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CREGIONPANEL_IDNAME, const wxPoint& pos = SYMBOL_CREGIONPANEL_POSITION, const wxSize& size = SYMBOL_CREGIONPANEL_SIZE, long style = SYMBOL_CREGIONPANEL_STYLE );
81 
82  /// Destructor
83  ~CRegionPanel();
84 
85  /// Initialises member variables
86  void Init();
87 
88  /// Creates the controls and sizers
89  void CreateControls();
90 
91  /// Retrieves bitmap resources
92  wxBitmap GetBitmapResource( const wxString& name );
93 
94  /// Retrieves icon resources
95  wxIcon GetIconResource( const wxString& name );
96 
97 
98  /// Should we show tooltips?
99  static bool ShowToolTips();
100 
101  virtual bool TransferDataFromWindow();
102 
103  string GetRegion();
105 private:
106  string m_Region;
107  wxTextCtrl* m_TextCtrl;
108  wxCheckBox* m_ConvertToMiscFeat;
109 };
110 
112 
113 #endif // GUI_WIDGETS_EDIT___REGION_PANEL__HPP
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CRegionPanel()
Constructors.
string GetRegion()
void Init()
Initialises member variables.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
bool GetConvertToMiscFeat(void)
virtual bool TransferDataFromWindow()
wxCheckBox * m_ConvertToMiscFeat
static bool ShowToolTips()
Should we show tooltips?
void CreateControls()
Creates the controls and sizers.
bool Create(wxWindow *parent, wxWindowID id=10017, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
~CRegionPanel()
Destructor.
wxTextCtrl * m_TextCtrl
Base class for all serializable objects.
Definition: serialbase.hpp:150
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_CREGIONPANEL_POSITION
#define SYMBOL_CREGIONPANEL_IDNAME
#define SYMBOL_CREGIONPANEL_STYLE
#define SYMBOL_CREGIONPANEL_SIZE
Modified on Fri Sep 20 14:57:58 2024 by modify_doxy.py rev. 669887