28 #ifndef _CDSTRANSLATION_PANEL_H_
29 #define _CDSTRANSLATION_PANEL_H_
40 #include "wx/statline.h"
41 #include "wx/hyperlink.h"
44 #include "wx/combobox.h"
45 #include <wx/odcombo.h>
46 #include "wx/checkbox.h"
47 #include <wx/toplevel.h>
48 #include <wx/stattext.h>
55 class wxHyperlinkCtrl;
69 #define SYMBOL_CCDSTRANSLATIONPANEL_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
70 #define SYMBOL_CCDSTRANSLATIONPANEL_TITLE _("CDS TranslationPanel")
71 #define SYMBOL_CCDSTRANSLATIONPANEL_IDNAME ID_CCDSTRANSLATIONPANEL
72 #define SYMBOL_CCDSTRANSLATIONPANEL_SIZE wxSize(400, 300)
73 #define SYMBOL_CCDSTRANSLATIONPANEL_POSITION wxDefaultPosition
97 bool Create( wxWindow* parent,
#define SYMBOL_CCDSTRANSLATIONPANEL_POSITION
#define SYMBOL_CCDSTRANSLATIONPANEL_IDNAME
#define SYMBOL_CCDSTRANSLATIONPANEL_SIZE
#define SYMBOL_CCDSTRANSLATIONPANEL_TITLE
#define SYMBOL_CCDSTRANSLATIONPANEL_STYLE
void Init()
Initialises member variables.
wxStaticText * m_ProteinLengthTxt
CCDSTranslationPanel(wxWindow *parent, objects::CSeq_feat &feat, objects::CScope &scope, wxWindowID id=ID_CCDSTRANSLATIONPANEL, const wxString &caption=_("CDS TranslationPanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
bool Create(wxWindow *parent, wxWindowID id=ID_CCDSTRANSLATIONPANEL, const wxString &caption=_("CDS TranslationPanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
virtual bool TransferDataFromWindow()
static bool IsValidException(const string &text)
objects::CScope * m_Scope
void OnProductChanged(wxCommandEvent &event)
void AdjustForStopCodonHyperlinkClicked(wxHyperlinkEvent &event)
wxEVT_COMMAND_HYPERLINK event handler for ID_HYPERLINKCTRL2
void SetProduct(objects::CSeq_feat &feat)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxTextCtrl * m_TranslationCtrl
virtual void SaveSettings() const
void CreateControls()
Creates the controls and sizers.
void OnRetranslateOnOkChanged(wxCommandEvent &event)
virtual void SetRegistryPath(const string ®_path)
virtual void LoadSettings()
map< string, CConstRef< objects::CSeq_id > > m_SeqIds
wxOwnerDrawnComboBox * m_ProductCtrl
~CCDSTranslationPanel()
Destructor.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool ShouldUpdatemRNALocation()
void x_UpdateForceNear(const string &val)
bool ShouldCreateNewProductSeq()
void OnPredictIntervalHyperlinkClicked(wxHyperlinkEvent &event)
wxEVT_COMMAND_HYPERLINK event handler for ID_PREDICT_INTERVAL
wxCheckBox * m_ConflictCtrl
void SetProtein(objects::CBioseq &bioseq)
void OnRetranslateLinkHyperlinkClicked(wxHyperlinkEvent &event)
wxEVT_COMMAND_HYPERLINK event handler for ID_RETRANSLATE_LINK
bool ShouldUpdateGeneLocation()
void x_NormalizeGeneticCodeName(string &code_name)
wxHyperlinkCtrl * m_RetranslateLink
void x_SetProtein(const objects::CBioseq &protein, CRef< objects::CSeq_feat > cds, objects::CSeq_entry_Handle seh)
CRef< objects::CSeq_feat > m_EditedFeat
wxCheckBox * m_UpdatemRNASpan
void SetProductId(const string &val)
void OnImportCdsProteinHyperlinkClicked(wxHyperlinkEvent &event)
wxEVT_COMMAND_HYPERLINK event handler for ID_IMPORT_CDS_PROTEIN
virtual bool TransferDataToWindow()
CCDSTranslationPanel()
Constructors.
@ ID_RETRANSLATE_ON_OK_BTN
@ ID_CCDSTRANSLATIONPANEL
wxCheckBox * m_UpdateGeneSpan
static bool ShowToolTips()
Should we show tooltips?
void DisableRetranslateOnOk(bool exception, bool pseudo)
CRef< objects::CSeq_id > GetProductId()
CRef< objects::CBioseq > m_EditedBioseq
void x_SetLocationForProtein(CRef< objects::CSeq_feat > cds, objects::CSeq_entry_Handle seh)
wxCheckBox * m_RetranslateOnOkBtn
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
static void text(MDB_val *v)
const struct ncbi::grid::netcache::search::fields::SIZE size