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

Go to the SVN repository for this file.

1 /* $Id: bulk_location_panel.hpp 34894 2016-02-26 19:03:19Z 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 _BULK_LOCATION_PANEL_H_
29 #define _BULK_LOCATION_PANEL_H_
30 
31 #include <corelib/ncbistd.hpp>
34 #include <objects/seq/Bioseq.hpp>
35 
36 /*!
37  * Includes
38  */
39 
40 ////@begin includes
41 ////@end includes
42 #include <wx/panel.h>
43 #include <wx/checkbox.h>
44 #include <wx/radiobut.h>
45 #include <wx/radiobox.h>
46 #include <wx/textctrl.h>
47 
48 /*!
49  * Forward declarations
50  */
51 
52 ////@begin forward declarations
53 ////@end forward declarations
54 
56 
57 /*!
58  * Control identifiers
59  */
60 
61 ////@begin control identifiers
62 #define SYMBOL_CBULKLOCATIONPANEL_STYLE wxTAB_TRAVERSAL
63 #define SYMBOL_CBULKLOCATIONPANEL_TITLE _("BulkLocationPanel")
64 #define SYMBOL_CBULKLOCATIONPANEL_IDNAME ID_CBULKLOCATIONPANEL
65 #define SYMBOL_CBULKLOCATIONPANEL_SIZE wxSize(400, 500)
66 #define SYMBOL_CBULKLOCATIONPANEL_POSITION wxDefaultPosition
67 ////@end control identifiers
68 
69 
70 /*!
71  * CBulkLocationPanel class declaration
72  */
73 
74 class CBulkLocationPanel: public wxPanel
75 {
76  DECLARE_DYNAMIC_CLASS( CBulkLocationPanel )
77  DECLARE_EVENT_TABLE()
78 
79 public:
80  /// Constructors
82  CBulkLocationPanel( wxWindow* parent, wxWindowID id = SYMBOL_CBULKLOCATIONPANEL_IDNAME, const wxPoint& pos = SYMBOL_CBULKLOCATIONPANEL_POSITION, const wxSize& size = SYMBOL_CBULKLOCATIONPANEL_SIZE, long style = SYMBOL_CBULKLOCATIONPANEL_STYLE );
83 
84  /// Creation
85  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CBULKLOCATIONPANEL_IDNAME, const wxPoint& pos = SYMBOL_CBULKLOCATIONPANEL_POSITION, const wxSize& size = SYMBOL_CBULKLOCATIONPANEL_SIZE, long style = SYMBOL_CBULKLOCATIONPANEL_STYLE );
86 
87  /// Destructor
89 
90  /// Initialises member variables
91  void Init();
92 
93  /// Creates the controls and sizers
94  void CreateControls();
95 
96 ////@begin CBulkLocationPanel event handler declarations
97 
98  /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_BULKLOC_RBTN1
99  void OnBulklocRbtn1Selected( wxCommandEvent& event );
100 
101  /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_BULKLOC_RBTN2
102  void OnBulklocRbtn2Selected( wxCommandEvent& event );
103 
104 ////@end CBulkLocationPanel event handler declarations
105 
106 ////@begin CBulkLocationPanel 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 CBulkLocationPanel member function declarations
114 
115  /// Should we show tooltips?
116  static bool ShowToolTips();
117 
118 ////@begin CBulkLocationPanel member variables
119  wxCheckBox* m_Partial5;
120  wxCheckBox* m_Partial3;
121  wxRadioBox* m_Strand;
122  wxRadioButton* m_WholeSeq;
123  wxRadioButton* m_Coordinates;
124  wxTextCtrl* m_From;
125  wxTextCtrl* m_To;
126  wxCheckBox* m_AddToExisting;
127  /// Control identifiers
128  enum {
137  ID_BULKLOC_CHCKBOX3 = 6418
138  };
139 ////@end CBulkLocationPanel member variables
140 
141  CRef<objects::CSeq_loc> GetLocForBioseq (const objects::CBioseq& bioseq);
142  bool ShouldAddToExisting() {return m_AddToExisting->GetValue();};
143 };
144 
146 
147 #endif
148  // _BULK_LOCATION_PANEL_H_
#define SYMBOL_CBULKLOCATIONPANEL_SIZE
#define SYMBOL_CBULKLOCATIONPANEL_STYLE
#define SYMBOL_CBULKLOCATIONPANEL_POSITION
#define SYMBOL_CBULKLOCATIONPANEL_IDNAME
~CBulkLocationPanel()
Destructor.
wxRadioButton * m_Coordinates
CRef< objects::CSeq_loc > GetLocForBioseq(const objects::CBioseq &bioseq)
CBulkLocationPanel()
Constructors.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxRadioButton * m_WholeSeq
void Init()
Initialises member variables.
static bool ShowToolTips()
Should we show tooltips?
void OnBulklocRbtn2Selected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_BULKLOC_RBTN2
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void CreateControls()
Creates the controls and sizers.
bool Create(wxWindow *parent, wxWindowID id=ID_CBULKLOCATIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 500), long style=wxTAB_TRAVERSAL)
Creation.
void OnBulklocRbtn1Selected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_BULKLOC_RBTN1
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
Modified on Wed Apr 17 13:09:45 2024 by modify_doxy.py rev. 669887