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

Go to the SVN repository for this file.

1 /* $Id: single_assembly_tracking_panel.hpp 28606 2013-08-06 17:18:45Z 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 _SINGLE_ASSEMBLY_TRACKING_PANEL_H_
29 #define _SINGLE_ASSEMBLY_TRACKING_PANEL_H_
30 
31 #include <corelib/ncbistd.hpp>
32 
33 /*!
34  * Includes
35  */
36 
37 ////@begin includes
38 ////@end includes
40 #include <wx/textctrl.h>
41 #include <wx/panel.h>
42 
43 /*!
44  * Forward declarations
45  */
46 
47 ////@begin forward declarations
48 ////@end forward declarations
49 
51 
52 
53 /*!
54  * Control identifiers
55  */
56 
57 ////@begin control identifiers
58 #define SYMBOL_CSINGLEASSEMBLYTRACKINGPANEL_STYLE wxTAB_TRAVERSAL
59 #define SYMBOL_CSINGLEASSEMBLYTRACKINGPANEL_TITLE _("SingleAssemblyTrackingPanel")
60 #define SYMBOL_CSINGLEASSEMBLYTRACKINGPANEL_IDNAME ID_CSINGLEASSEMBLYTRACKINGPANEL
61 #define SYMBOL_CSINGLEASSEMBLYTRACKINGPANEL_SIZE wxSize(400, 300)
62 #define SYMBOL_CSINGLEASSEMBLYTRACKINGPANEL_POSITION wxDefaultPosition
63 ////@end control identifiers
64 
65 
66 /*!
67  * CSingleAssemblyTrackingPanel class declaration
68  */
69 
71 {
72  DECLARE_DYNAMIC_CLASS( CSingleAssemblyTrackingPanel )
73  DECLARE_EVENT_TABLE()
74 
75 public:
76  /// Constructors
79 
80  /// Creation
82 
83  /// Destructor
85 
86  /// Initialises member variables
87  void Init();
88 
89  /// Creates the controls and sizers
90  void CreateControls();
91 
92  virtual bool TransferDataToWindow();
93  virtual bool TransferDataFromWindow();
95 
96 ////@begin CSingleAssemblyTrackingPanel event handler declarations
97 
98  /// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_ACCESSION_TXT
99  void OnAccessionTxtTextUpdated( wxCommandEvent& event );
100 
101  /// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_START_TXT
102  void OnStartTxtTextUpdated( wxCommandEvent& event );
103 
104  /// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_STOP_TXT
105  void OnStopTxtTextUpdated( wxCommandEvent& event );
106 
107 ////@end CSingleAssemblyTrackingPanel event handler declarations
108 
109 ////@begin CSingleAssemblyTrackingPanel 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 CSingleAssemblyTrackingPanel member function declarations
117 
118  /// Should we show tooltips?
119  static bool ShowToolTips();
120 
121 ////@begin CSingleAssemblyTrackingPanel member variables
122  wxTextCtrl* m_Accession;
123  wxTextCtrl* m_Start;
124  wxTextCtrl* m_Stop;
125  /// Control identifiers
126  enum {
129  ID_START_TXT = 10152,
130  ID_STOP_TXT = 10153
131  };
132 ////@end CSingleAssemblyTrackingPanel member variables
133 
134  static CRef<objects::CUser_field> s_CreateTPAAssemblyField (const string& accession, int from, int to);
135 private:
137 
138  bool x_IsControlled (const string& field);
139 };
140 
142 
143 #endif
144  // _SINGLE_ASSEMBLY_TRACKING_PANEL_H_
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnAccessionTxtTextUpdated(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_ACCESSION_TXT
static bool ShowToolTips()
Should we show tooltips?
void OnStartTxtTextUpdated(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_START_TXT
void OnStopTxtTextUpdated(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_STOP_TXT
virtual CRef< objects::CUser_field > GetUser_field()
bool Create(wxWindow *parent, wxWindowID id=ID_CSINGLEASSEMBLYTRACKINGPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
CSingleAssemblyTrackingPanel(wxWindow *parent, objects::CUser_field &field, wxWindowID id=ID_CSINGLEASSEMBLYTRACKINGPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
void CreateControls()
Creates the controls and sizers.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
static CRef< objects::CUser_field > s_CreateTPAAssemblyField(const string &accession, int from, int to)
void Init()
Initialises member variables.
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_CSINGLEASSEMBLYTRACKINGPANEL_POSITION
#define SYMBOL_CSINGLEASSEMBLYTRACKINGPANEL_STYLE
#define SYMBOL_CSINGLEASSEMBLYTRACKINGPANEL_IDNAME
#define SYMBOL_CSINGLEASSEMBLYTRACKINGPANEL_SIZE
Modified on Wed May 15 15:04:41 2024 by modify_doxy.py rev. 669887