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

Go to the SVN repository for this file.

1 /* $Id: assembly_tracking_panel.hpp 31212 2014-09-12 12:45:01Z bollin $
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 _ASSEMBLY_TRACKING_PANEL_H_
29 #define _ASSEMBLY_TRACKING_PANEL_H_
30 
31 #include <corelib/ncbistd.hpp>
32 #include <objects/seq/Bioseq.hpp>
36 
37 /*!
38  * Includes
39  */
40 
41 ////@begin includes
42 ////@end includes
43 
44 /*!
45  * Forward declarations
46  */
47 
48 ////@begin forward declarations
50 ////@end forward declarations
51 
53 
54 /*!
55  * Control identifiers
56  */
57 
58 ////@begin control identifiers
59 #define SYMBOL_CASSEMBLYTRACKINGPANEL_STYLE wxTAB_TRAVERSAL
60 #define SYMBOL_CASSEMBLYTRACKINGPANEL_TITLE _("Assembly Tracking")
61 #define SYMBOL_CASSEMBLYTRACKINGPANEL_IDNAME ID_CASSEMBLYTRACKINGPANEL
62 #define SYMBOL_CASSEMBLYTRACKINGPANEL_SIZE wxSize(400, 300)
63 #define SYMBOL_CASSEMBLYTRACKINGPANEL_POSITION wxDefaultPosition
64 ////@end control identifiers
65 
66 
67 /*!
68  * CAssemblyTrackingPanel class declaration
69  */
70 
71 class CAssemblyTrackingPanel: public wxPanel, public IDescEditorPanel
72 {
73  DECLARE_DYNAMIC_CLASS( CAssemblyTrackingPanel )
74  DECLARE_EVENT_TABLE()
75 
76 public:
77  /// Constructors
80 
81  /// Creation
82  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CASSEMBLYTRACKINGPANEL_IDNAME, const wxPoint& pos = SYMBOL_CASSEMBLYTRACKINGPANEL_POSITION, const wxSize& size = SYMBOL_CASSEMBLYTRACKINGPANEL_SIZE, long style = SYMBOL_CASSEMBLYTRACKINGPANEL_STYLE );
83 
84  /// Destructor
86 
87  /// Initialises member variables
88  void Init();
89 
90  /// Creates the controls and sizers
91  void CreateControls();
92 
93 ////@begin CAssemblyTrackingPanel event handler declarations
94 
95  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EXPORT_LIST_BTN
96  void OnExportListBtnClick( wxCommandEvent& event );
97 
98  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EXPORT_INTERVALS_BTN
99  void OnExportIntervalsBtnClick( wxCommandEvent& event );
100 
101  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_IMPORT_INTERVALS_BTN
102  void OnImportIntervalsBtnClick( wxCommandEvent& event );
103 
104  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_POPULATE_BTN
105  void OnPopulateBtnClick( wxCommandEvent& event );
106 
107 ////@end CAssemblyTrackingPanel event handler declarations
108 
109 ////@begin CAssemblyTrackingPanel member function declarations
110 
111  /// Retrieves bitmap resources
112  wxBitmap GetBitmapResource( const wxString& name );
113 
114  /// Retrieves icon resources
115  wxIcon GetIconResource( const wxString& name );
116 ////@end CAssemblyTrackingPanel member function declarations
117 
118  /// Should we show tooltips?
119  static bool ShowToolTips();
120 
121 ////@begin CAssemblyTrackingPanel member variables
123  wxButton* m_PopulateBtn;
124  /// Control identifiers
125  enum {
127  ID_WINDOW3 = 10161,
131  ID_POPULATE_BTN = 10165
132  };
133 ////@end CAssemblyTrackingPanel member variables
134 
137 
138  // this function allows importation of TPA assembly fields from the Seq-hist on the sequence
140 
141  // IDescEditorPanel implementation
142  virtual void ChangeSeqdesc(const objects::CSeqdesc& desc);
143  virtual void UpdateSeqdesc(objects::CSeqdesc& desc);
144 
145 private:
148 
149 };
150 
152 
153 #endif
154  // _ASSEMBLY_TRACKING_PANEL_H_
#define SYMBOL_CASSEMBLYTRACKINGPANEL_SIZE
#define SYMBOL_CASSEMBLYTRACKINGPANEL_IDNAME
#define SYMBOL_CASSEMBLYTRACKINGPANEL_POSITION
#define SYMBOL_CASSEMBLYTRACKINGPANEL_STYLE
static bool ShowToolTips()
Should we show tooltips?
void OnImportIntervalsBtnClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_IMPORT_INTERVALS_BTN
virtual void UpdateSeqdesc(objects::CSeqdesc &desc)
CAssemblyTrackingListPanel * m_AccessionsPanel
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void Init()
Initialises member variables.
CRef< objects::CUser_object > GetUser_object()
virtual void ChangeSeqdesc(const objects::CSeqdesc &desc)
void SetUser_object(CRef< objects::CUser_object > user)
void OnExportListBtnClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EXPORT_LIST_BTN
void SetBioseq(CConstRef< objects::CBioseq > seq)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CConstRef< objects::CBioseq > m_Seq
void OnExportIntervalsBtnClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_EXPORT_INTERVALS_BTN
CRef< objects::CUser_object > m_User
bool Create(wxWindow *parent, wxWindowID id=ID_CASSEMBLYTRACKINGPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void CreateControls()
Creates the controls and sizers.
void OnPopulateBtnClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_POPULATE_BTN
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 May 15 15:04:43 2024 by modify_doxy.py rev. 669887