wxPanel::Create( parent,
id, pos,
size, style );
96GetSizer()->SetSizeHints(
this);
136wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
137itemPanel1->SetSizer(itemBoxSizer2);
139wxStaticText* itemStaticText3 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Descriptors may apply to a single sequence or to a set of sequences. Please choose the location for the new descriptor."), wxDefaultPosition, wxDefaultSize, 0 );
140itemStaticText3->Wrap(200);
141itemBoxSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
143wxArrayString m_LocationStrings;
145itemBoxSizer2->Add(
m_Location, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
196}
else if(se.
IsSet()) {
211wxArrayString choices;
225 return m_List[pos].second;
237wxWindow *win = GetParent();
238wxTopLevelWindow* gui_widget =
nullptr;
239 while(win && !gui_widget)
241wxTopLevelWindow* gui_widget =
dynamic_cast<wxTopLevelWindow*
>(win);
242win = win->GetParent();
void GetLabel(string *label, ELabelType type) const
pair< string, objects::CSeq_entry_Handle > TNameSeqEntry
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
IDescEditorNotify * m_Notify
CDescPlacementPanel()
Constructors.
~CDescPlacementPanel()
Destructor.
void PopulateLocationChoices(objects::CSeq_entry_Handle seh)
void OnDescPlacementCtrlSelected(wxCommandEvent &event)
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_DESC_PLACEMENT_CTRL
bool Create(wxWindow *parent, wxWindowID id=ID_CDESCPLACEMENTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void Init()
Initialises member variables.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
vector< TNameSeqEntry > TNameSeqEntryList
void CreateControls()
Creates the controls and sizers.
objects::CSeq_entry_Handle GetLocationChoice()
static bool ShowToolTips()
Should we show tooltips?
void x_AddToStrings(const objects::CSeq_entry &se, objects::CScope &scope)
virtual void LocationChange(objects::CSeq_entry_Handle, wxTopLevelWindow *gui_widget)=0
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
string GetSeqIdString(bool with_version=false) const
Return seqid string with optional version for text seqid type.
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
CSeq_entry_Handle GetSeq_entryHandle(CDataLoader *loader, const TBlobId &blob_id, EMissing action=eMissing_Default)
Get Seq-entry handle by its blob-id, with possible loading.
CConstRef< CSeq_entry > GetCompleteSeq_entry(void) const
Complete and get const reference to the seq-entry.
CScope & GetScope(void) const
Get scope this handle belongs to.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
const TSet & GetSet(void) const
Get the variant data.
bool IsSeq(void) const
Check if variant Seq is selected.
bool IsSet(void) const
Check if variant Set is selected.
const TSeq_set & GetSeq_set(void) const
Get the Seq_set member data.
list< CRef< CSeq_entry > > TSeq_set
const struct ncbi::grid::netcache::search::fields::SIZE size
wxString ToWxString(const string &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