wxPanel::Create( parent,
id, pos,
size, style );
98GetSizer()->SetSizeHints(
this);
145wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
146itemPanel1->SetSizer(itemBoxSizer2);
148wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
149itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
153itemBoxSizer3->Add(
m_Partial5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
157itemBoxSizer3->Add(
m_Partial3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
159wxArrayString m_StrandStrings;
160m_StrandStrings.Add(
_(
"&Plus"));
161m_StrandStrings.Add(
_(
"&Minus"));
162 m_Strand=
newwxRadioBox( itemPanel1,
ID_BULKLOC_RBOX,
_(
"Strand"), wxDefaultPosition, wxDefaultSize, m_StrandStrings, 1, wxRA_SPECIFY_ROWS );
164itemBoxSizer2->Add(
m_Strand, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
166wxBoxSizer* itemBoxSizer7 =
newwxBoxSizer(wxHORIZONTAL);
167itemBoxSizer2->Add(itemBoxSizer7, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
169wxBoxSizer* itemBoxSizer8 =
newwxBoxSizer(wxVERTICAL);
170itemBoxSizer7->Add(itemBoxSizer8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
172 m_WholeSeq=
newwxRadioButton( itemPanel1,
ID_BULKLOC_RBTN1,
_(
"Use Whole Sequence Interval"), wxDefaultPosition, wxSize(-1, 15), 0 );
174itemBoxSizer8->Add(
m_WholeSeq, 0, wxALIGN_LEFT|wxALL, 5);
178itemBoxSizer8->Add(
m_Coordinates, 0, wxALIGN_LEFT|wxALL, 5);
180wxBoxSizer* itemBoxSizer11 =
newwxBoxSizer(wxVERTICAL);
181itemBoxSizer7->Add(itemBoxSizer11, 0, wxALIGN_CENTER_VERTICAL|wxALL, 0);
183itemBoxSizer11->Add(5, 15, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
185wxBoxSizer* itemBoxSizer13 =
newwxBoxSizer(wxHORIZONTAL);
186itemBoxSizer11->Add(itemBoxSizer13, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);
188wxStaticText* itemStaticText14 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"From"), wxDefaultPosition, wxDefaultSize, 0 );
189itemBoxSizer13->Add(itemStaticText14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
193itemBoxSizer13->Add(
m_From, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
195wxStaticText* itemStaticText16 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"To"), wxDefaultPosition, wxDefaultSize, 0 );
196itemBoxSizer13->Add(itemStaticText16, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
199 m_To->Enable(
false);
200itemBoxSizer13->Add(
m_To, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
202 m_AddToExisting=
newwxCheckBox( itemPanel1,
ID_BULKLOC_CHCKBOX3,
_(
"Also add to sequences that already have a feature like this"), wxDefaultPosition, wxDefaultSize, 0 );
204itemBoxSizer2->Add(
m_AddToExisting, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
253 m_To->Enable(
false);
264 m_To->Enable(
true);
291 catch(
constexception& e) {
314 catch(
constexception& e) {
342 if(
m_Strand->GetSelection() == 1) {
348 else if(fuzz &&
abs(to - from) <= 1)
352 if(
m_Strand->GetSelection() == 1) {
362loc->
SetInt().SetFrom(from);
363loc->
SetInt().SetTo(to);
365 if(
m_Strand->GetSelection() == 1) {
@ eExtreme_Biological
5' and 3'
USING_SCOPE(ncbi::objects)
TSeqPos GetLength(void) const
~CBulkLocationPanel()
Destructor.
wxRadioButton * m_Coordinates
CRef< objects::CSeq_loc > GetLocForBioseq(const objects::CBioseq &bioseq)
CBulkLocationPanel()
Constructors.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxRadioButton * m_WholeSeq
void Init()
Initialises member variables.
static bool ShowToolTips()
Should we show tooltips?
void OnBulklocRbtn2Selected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_BULKLOC_RBTN2
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void CreateControls()
Creates the controls and sizers.
wxCheckBox * m_AddToExisting
bool Create(wxWindow *parent, wxWindowID id=ID_CBULKLOCATIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 500), long style=wxTAB_TRAVERSAL)
Creation.
void OnBulklocRbtn1Selected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_BULKLOC_RBTN1
void swap(NCBI_NS_NCBI::pair_base_member< T1, T2 > &pair1, NCBI_NS_NCBI::pair_base_member< T1, T2 > &pair2)
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
const string & GetMsg(void) const
Get message string.
virtual const char * what(void) const noexcept
Standard report (includes full backlog).
CConstRef< CSeq_id > GetSeqId(void) const
void SetPartialStart(bool val, ESeqLocExtremes ext)
set / remove e_Lim fuzz on start or stop (lt/gt - indicating partial interval)
void SetPartialStop(bool val, ESeqLocExtremes ext)
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
@ eGetId_Best
return the "best" gi (uses FindBestScore(), with CSeq_id::CalculateScore() as the score function
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to int.
static bool EndsWith(const CTempString str, const CTempString end, ECase use_case=eCase)
Check if a string ends with a specified suffix value.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
static void TrimSuffixInPlace(string &str, const CTempString suffix, ECase use_case=eCase)
Trim suffix from a string (in-place)
static void TrimPrefixInPlace(string &str, const CTempString prefix, ECase use_case=eCase)
Trim prefix from a string (in-place)
@ eLim_tr
space to right of position
void SetPoint(TPoint value)
Assign a value to Point data member.
void SetId(TId &value)
Assign a value to Id data member.
void SetStrand(TStrand value)
Assign a value to Strand data member.
void SetFuzz(TFuzz &value)
Assign a value to Fuzz data member.
constexpr bool empty(list< Ts... >) noexcept
const struct ncbi::grid::netcache::search::fields::SIZE size
string ToStdString(const wxString &s)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4