33 #include "wx/wxprec.h"
43 #include <wx/hyperlink.h>
88 wxWindowID
id,
const wxString& caption,
const wxPoint& pos,
const wxSize&
size,
long style )
100 wxWindowID
id,
const wxString& caption,
const wxPoint& pos,
const wxSize&
size,
long style )
103 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
104 wxDialog::Create( parent,
id, caption, pos,
size, style );
109 GetSizer()->SetSizeHints(
this);
148 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
149 itemDialog1->SetSizer(itemBoxSizer2);
152 itemBoxSizer2->Add(
m_Panel, 0, wxALIGN_CENTER_HORIZONTAL, 0);
154 wxBoxSizer* itemBoxSizer21 =
new wxBoxSizer(wxHORIZONTAL);
155 itemBoxSizer2->Add(itemBoxSizer21, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
157 wxButton* itemButton5 =
new wxButton( itemDialog1, wxID_OK,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
158 itemBoxSizer21->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
160 wxButton* itemButton6 =
new wxButton( itemDialog1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
161 itemBoxSizer21->Add(itemButton6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
163 wxHyperlinkCtrl* itemHyperlinkCtrl =
new wxHyperlinkCtrl( itemDialog1, wxID_HELP,
_(
"Help"),
wxT(
"https://www.ncbi.nlm.nih.gov/tools/gbench/manual9/#add-assembly-gaps"), wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
164 itemHyperlinkCtrl->SetForegroundColour(wxColour(192, 192, 192));
165 itemBoxSizer21->Add(itemHyperlinkCtrl, 0, wxALIGN_CENTER_VERTICAL, 5);
207 NRawToDeltaSeq::SGapRequestInfo request;
208 m_Panel->
GetMinMax(request.min_known, request.max_known, request.min_unknown, request.max_unknown);
212 bool remove_alignment =
false;
220 if (remove_alignment) {
221 int answer = wxMessageBox(
_(
"Affected alignments will be removed, proceed?"),
_(
"Remove alignments"), wxYES_NO | wxICON_QUESTION);
222 if (answer == wxYES) {
241 bool alignment_affected =
false;
258 if ((*it)->IsLiteral())
260 if ((*it)->GetLiteral().IsSetSeq_data())
263 switch((*it)->GetLiteral().GetSeq_data().Which())
266 str = (*it)->GetLiteral().GetSeq_data().GetIupacna();
283 if (!(*it)->GetLiteral().IsSetSeq_data() || (*it)->GetLiteral().GetSeq_data().IsGap())
285 TSeqPos length = (*it)->GetLiteral().GetLength();
286 iupacna +=
string(length,
'N');
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
void AddCommand(IEditCommand &command)
bool GetAdjustCDS() const
void GetMinMax(long &min_known, long &max_known, long &min_unknown, long &max_unknown)
bool GetKeepGapLength() const
void GetAssemblyParams(bool &is_assembly_gap, int &gap_type, int &linkage, int &linkage_evidence)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void CreateControls()
Creates the controls and sizers.
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Add Assembly Gaps To Sequence"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 100), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
CRawSeqToDeltaByN()
Constructors.
void apply(objects::CSeq_entry_Handle tse, ICommandProccessor *cmdProcessor, string title)
static bool ShowToolTips()
Should we show tooltips?
~CRawSeqToDeltaByN()
Destructor.
void Init()
Initialises member variables.
static void DeltaSeqToRaw(objects::CSeq_entry_Handle tse, ICommandProccessor *cmdProcessor)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CRawSeqToDeltaByNPanel * m_Panel
static SIZE_TYPE Convert(const CTempString &src, TCoding src_coding, TSeqPos pos, TSeqPos length, string &dst, TCoding dst_coding)
Undo/Redo interface for editing operations.
virtual void Execute(IEditCommand *command, wxWindow *window=0)=0
CRef< CCmdComposite > ConvertRawToDeltaByNsCommand(const objects::CSeq_entry_Handle &seh, const SGapRequestInfo &request, bool &remove_alignments, int &count)
unsigned int TSeqPos
Type for sequence locations and lengths.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
CConstRef< CBioseq > GetCompleteBioseq(void) const
Get the complete bioseq.
CScope & GetScope(void) const
Get scope this handle belongs to.
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TRepr GetRepr(void) const
Get the Repr member data.
void SetExt(TExt &value)
Assign a value to Ext data member.
bool IsSetRepr(void) const
Check if a value has been assigned to Repr data member.
bool IsSetExt(void) const
extensions for special types Check if a value has been assigned to Ext data member.
void SetInst(TInst &value)
Assign a value to Inst data member.
void SetRepr(TRepr value)
Assign a value to Repr data member.
list< CRef< CDelta_seq > > Tdata
void SetSeq_data(TSeq_data &value)
Assign a value to Seq_data data member.
void ResetExt(void)
Reset Ext data member.
@ eRepr_delta
sequence made by changes (delta) to others
@ eRepr_raw
continuous sequence
@ e_Ncbi2na
2 bit nucleic acid code
@ e_Iupacna
IUPAC 1 letter nuc acid code.
@ e_Ncbi8na
8 bit extended nucleic acid code
@ e_Ncbi4na
4 bit nucleic acid code
@ eMol_na
just a nucleic acid
const struct ncbi::grid::netcache::search::fields::SIZE size
static const char * str(char *buf, int n)