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

Go to the SVN repository for this file.

1 /* $Id: extend_partial_features.hpp 39649 2017-10-24 15:22:12Z 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: Igor Filippov
27  */
28 #ifndef _EXTEND_PARTIAL_FEAT_H_
29 #define _EXTEND_PARTIAL_FEAT_H_
30 
31 #include <corelib/ncbistd.hpp>
39 
43 
44 /*!
45  * Includes
46  */
47 
48 ////@begin includes
49 ////@end includes
50 
51 #include <wx/sizer.h>
52 #include <wx/radiobut.h>
53 #include <wx/choice.h>
54 
55 /*!
56  * Forward declarations
57  */
58 
59 ////@begin forward declarations
60 class CFeatureTypePanel;
61 class wxBoxSizer;
63 class COkCancelPanel;
64 ////@end forward declarations
65 
67 
68 /*!
69  * Control identifiers
70  */
71 
72 ////@begin control identifiers
73 #define ID_CEXTENDPARTFEATDLG 10268
74 #define ID_EFL_FEATURETYPE 10269
75 #define SYMBOL_CEXTENDPARTFEATDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
76 #define SYMBOL_CEXTENDPARTFEATDLG_TITLE _("Extend Partial Features")
77 #define SYMBOL_CEXTENDPARTFEATDLG_IDNAME ID_CEXTENDPARTFEATDLG
78 #define SYMBOL_CEXTENDPARTFEATDLG_SIZE wxSize(900, 500)
79 #define SYMBOL_CEXTENDPARTFEATDLG_POSITION wxDefaultPosition
80 ////@end control identifiers
81 
82 
83 /*!
84  * CBulkEditFeatDlg class declaration
85  */
86 
88 {
89  DECLARE_DYNAMIC_CLASS( CExtendPartialFeatDlg )
90  DECLARE_EVENT_TABLE()
91 
92 public:
93  /// Constructors
95  CExtendPartialFeatDlg( wxWindow* parent, IWorkbench* wb, wxWindowID id = SYMBOL_CEXTENDPARTFEATDLG_IDNAME, const wxString& caption = SYMBOL_CEXTENDPARTFEATDLG_TITLE, const wxPoint& pos = SYMBOL_CEXTENDPARTFEATDLG_POSITION, const wxSize& size = SYMBOL_CEXTENDPARTFEATDLG_SIZE, long style = SYMBOL_CEXTENDPARTFEATDLG_STYLE );
96 
97  /// Creation
98  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CEXTENDPARTFEATDLG_IDNAME, const wxString& caption = SYMBOL_CEXTENDPARTFEATDLG_TITLE, const wxPoint& pos = SYMBOL_CEXTENDPARTFEATDLG_POSITION, const wxSize& size = SYMBOL_CEXTENDPARTFEATDLG_SIZE, long style = SYMBOL_CEXTENDPARTFEATDLG_STYLE );
99 
100  /// Destructor
102 
103  /// Initialises member variables
104  void Init();
105 
106  /// Creates the controls and sizers
107  void CreateControls();
108 
109  void ProcessUpdateFeatEvent( wxCommandEvent& event );
110 
111 
112  /// Retrieves bitmap resources
113  wxBitmap GetBitmapResource( const wxString& name );
114 
115  /// Retrieves icon resources
116  wxIcon GetIconResource( const wxString& name );
117 
118  /// Should we show tooltips?
119  static bool ShowToolTips();
120 
122  virtual string GetErrorMessage();
123  void ApplyToAllAndDie();
125 private:
126  static bool Is5AtStartOfSeq(const CSeq_loc& loc, CBioseq_Handle bsh);
127  static bool Is3AtEndOfSeq(const CSeq_loc& loc, CBioseq_Handle bsh);
133  wxCheckBox* m_Extend5Btn;
134  wxCheckBox* m_Extend3Btn;
135 };
136 
138 
139 #endif
140 
CBioseq_Handle –.
static CRef< CCmdComposite > ExtendCDS(CSeq_entry_Handle seh)
static bool ShowToolTips()
Should we show tooltips?
virtual CRef< CCmdComposite > GetCommand()
static bool Is3AtEndOfSeq(const CSeq_loc &loc, CBioseq_Handle bsh)
static bool Is5AtStartOfSeq(const CSeq_loc &loc, CBioseq_Handle bsh)
void Init()
Initialises member variables.
bool Create(wxWindow *parent, wxWindowID id=10268, const wxString &caption=_("Extend Partial Features"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(900, 500), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
void ProcessUpdateFeatEvent(wxCommandEvent &event)
CStringConstraintPanel * m_StringConstraintPanel
void CreateControls()
Creates the controls and sizers.
CFeatureTypePanel * m_FeatureType
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CSeq_entry_Handle –.
IWorkbench is the central interface in the application framework.
Definition: workbench.hpp:113
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define SYMBOL_CEXTENDPARTFEATDLG_POSITION
#define SYMBOL_CEXTENDPARTFEATDLG_IDNAME
#define SYMBOL_CEXTENDPARTFEATDLG_SIZE
#define SYMBOL_CEXTENDPARTFEATDLG_STYLE
#define SYMBOL_CEXTENDPARTFEATDLG_TITLE
#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 Sun Jul 14 04:59:22 2024 by modify_doxy.py rev. 669887