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

Go to the SVN repository for this file.

1 /* $Id: bulk_rna_edit.hpp 38632 2017-06-05 17:16:13Z 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 _BULK_RNA_EDIT_H_
29 #define _BULK_RNA_EDIT_H_
30 
31 #include <corelib/ncbistd.hpp>
37 
39 
40 #define SYMBOL_RNAEDITDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
41 #define SYMBOL_RNAEDITDIALOG_TITLE _("RNA Editing")
42 #define SYMBOL_RNAEDITDIALOG_IDNAME wxID_ANY
43 #define SYMBOL_RNAEDITDIALOG_SIZE wxDefaultSize
44 #define SYMBOL_RNAEDITDIALOG_POSITION wxDefaultPosition
45 
46 
48 {
49  DECLARE_DYNAMIC_CLASS( CBulkRna )
50  DECLARE_EVENT_TABLE()
51 
52 public:
53  /// Constructors
54  CBulkRna();
55  CBulkRna( wxWindow* parent, objects::CSeq_entry_Handle seh, IWorkbench* workbench, CConstRef<objects::CSeq_submit> seqSubmit,
56  wxWindowID id = SYMBOL_RNAEDITDIALOG_IDNAME, const wxString& caption = SYMBOL_RNAEDITDIALOG_TITLE, const wxPoint& pos = SYMBOL_RNAEDITDIALOG_POSITION, const wxSize& size = SYMBOL_RNAEDITDIALOG_SIZE, long style = SYMBOL_RNAEDITDIALOG_STYLE );
57  CBulkRna( wxWindow* parent, const vector<CSeq_feat_Handle> &feat_handles, IWorkbench* workbench = NULL,
58  wxWindowID id = SYMBOL_RNAEDITDIALOG_IDNAME, const wxString& caption = SYMBOL_RNAEDITDIALOG_TITLE, const wxPoint& pos = SYMBOL_RNAEDITDIALOG_POSITION, const wxSize& size = SYMBOL_RNAEDITDIALOG_SIZE, long style = SYMBOL_RNAEDITDIALOG_STYLE );
59 
60  /// Creation
61  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_RNAEDITDIALOG_IDNAME, const wxString& caption = SYMBOL_RNAEDITDIALOG_TITLE, const wxPoint& pos = SYMBOL_RNAEDITDIALOG_POSITION, const wxSize& size = SYMBOL_RNAEDITDIALOG_SIZE, long style = SYMBOL_RNAEDITDIALOG_STYLE );
62 
63  /// Destructor
64  ~CBulkRna();
65 
66  /// Initialises member variables
67  void Init();
68 
69  /// Creates the controls and sizers
70  void CreateControls();
71 
74  string GetErrorMessage();
75  bool IsReadOnlyColumn(string column_name) { if (column_name == "location" || column_name.empty() || column_name == "expand") return true; return false; };
76  int GetCollapsible() {return 0;}
79 
80  wxBitmap GetBitmapResource( const wxString& name );
81 
82  /// Retrieves icon resources
83  wxIcon GetIconResource( const wxString& name );
84 
85  /// Should we show tooltips?
86  static bool ShowToolTips();
87  void OnClickOk( wxCommandEvent& event );
88  void OnClickCancel( wxCommandEvent& event );
90 private:
91  wxGrid* m_Grid;
92  vector<CSeq_feat_Handle> m_FeatHandles;
94  bool m_Modified;
96 };
97 
99 #endif
#define SYMBOL_RNAEDITDIALOG_STYLE
#define SYMBOL_RNAEDITDIALOG_POSITION
#define SYMBOL_RNAEDITDIALOG_TITLE
#define SYMBOL_RNAEDITDIALOG_SIZE
#define SYMBOL_RNAEDITDIALOG_IDNAME
CBioseq_Handle –.
CBulkRna()
Constructors.
static bool ShowToolTips()
Should we show tooltips?
CApplyEditconvertPanel * m_AecrPanel
bool m_Modified
void OnClickOk(wxCommandEvent &event)
void CreateControls()
Creates the controls and sizers.
bool IsReadOnlyColumn(string column_name)
CRef< CCmdComposite > GetCommandFromValuesTable(CRef< objects::CSeq_table >)
wxGrid * m_Grid
~CBulkRna()
Destructor.
void Init()
Initialises member variables.
vector< CSeq_feat_Handle > m_FeatHandles
void OnClickCancel(wxCommandEvent &event)
CRef< objects::CSeq_table > GetValuesTableFromSeqEntry()
virtual const CObject * RowToScopedObjects(int row, TConstScopedObjects &objects, CBioseq_Handle &bsh)
CRef< CCmdComposite > GetCommand()
CRef< objects::CSeq_table > GetChoices(CRef< objects::CSeq_table > values_table)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("RNA Editing"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
CSeqTableGridPanel * m_GridPanel
string GetErrorMessage()
wxBitmap GetBitmapResource(const wxString &name)
int GetCollapsible()
CObject –.
Definition: ncbiobj.hpp:180
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 NULL
Definition: ncbistd.hpp:225
vector< SConstScopedObject > TConstScopedObjects
Definition: objects.hpp:65
#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 row(bind, expected)
Definition: string_bind.c:73
Modified on Mon Apr 22 04:03:36 2024 by modify_doxy.py rev. 669887