wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
85 Create(parent,
id, caption, pos,
size, style);
94wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
97SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
98wxDialog::Create( parent,
id, caption, pos,
size, style );
103GetSizer()->SetSizeHints(
this);
108SetSize(wxSize(280, 750));
169wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
170itemDialog1->SetSizer(itemBoxSizer2);
172wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
173itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
176itemBoxSizer3->Add(
m_ListCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
178 m_ListCtrl->InsertColumn(0,
" Descriptor", wxLIST_FORMAT_LEFT, 237);
187wxBoxSizer* itemBoxSizer5 =
newwxBoxSizer(wxHORIZONTAL);
188itemBoxSizer2->Add(itemBoxSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
190wxBoxSizer* itemBoxSizer6 =
newwxBoxSizer(wxVERTICAL);
191itemBoxSizer5->Add(itemBoxSizer6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
193wxStaticBox* itemStaticBoxSizer7Static =
newwxStaticBox(itemDialog1,
wxID_ANY,
_(
"Optional String Constraint"));
194wxStaticBoxSizer* itemStaticBoxSizer7 =
newwxStaticBoxSizer(itemStaticBoxSizer7Static, wxVERTICAL);
195itemBoxSizer6->Add(itemStaticBoxSizer7, 0, wxALIGN_LEFT|wxALL, 5);
197 m_RadioButton=
newwxRadioButton(itemDialog1,
ID_RBTN_RMVDESC1,
_(
"Remove When Text Is Present"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP);
199itemStaticBoxSizer7->Add(
m_RadioButton, 0, wxALIGN_LEFT|wxALL, 5);
201wxRadioButton* itemRadioButton9 =
newwxRadioButton(itemDialog1,
ID_RBTN_RMVDESC2,
_(
"Remove When Text Is Not Present"));
202itemRadioButton9->SetValue(
false);
203itemStaticBoxSizer7->Add(itemRadioButton9, 0, wxALIGN_LEFT|wxALL, 5);
206itemStaticBoxSizer7->Add(
m_TextCtrl, 0, wxALIGN_LEFT|wxALL, 5);
210itemStaticBoxSizer7->Add(
m_CheckBox, 0, wxALIGN_LEFT|wxALL, 5);
212wxBoxSizer* itemBoxSizer12 =
newwxBoxSizer(wxHORIZONTAL);
213itemBoxSizer2->Add(itemBoxSizer12, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
215wxButton* itemButton13 =
newwxButton( itemDialog1, wxID_OK,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
216itemBoxSizer12->Add(itemButton13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
218wxButton* itemButton14 =
newwxButton( itemDialog1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
219itemBoxSizer12->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
265item =
m_ListCtrl->GetNextItem(item, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
266 if( item == -1 )
break;
280 if((*it)->Which() == choice)
286 if((*it)->GetUser().IsSetType() &&
287(*it)->GetUser().GetType().IsStr() &&
288(*it)->GetUser().GetType().GetStr() == name)
void AddCommand(IEditCommand &command)
CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:
bool Create(wxWindow *parent, wxWindowID id=11000, const wxString &caption=_("Remove Descriptors"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
map< string, objects::CSeqdesc::E_Choice > m_Types
static bool ShowToolTips()
Should we show tooltips?
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
CRef< CCmdComposite > GetCommand()
wxRadioButton * m_RadioButton
void CreateControls()
Creates the controls and sizers.
~CRemoveDescDlg()
Destructor.
CRemoveDescDlg()
Constructors.
objects::CSeq_entry_Handle m_TopSeqEntry
void x_ApplyToSeq_entry(objects::CSeq_entry_Handle tse, const objects::CSeq_entry &se, CCmdComposite *composite, objects::CSeqdesc::E_Choice choice, const string &name)
void Init()
Initialises member variables.
container_type::iterator iterator
const_iterator begin() const
const_iterator end() const
std::ofstream out("events_result.xml")
main entry point for tests
static const char * str(char *buf, int n)
@ eSerial_AsnText
ASN.1 text.
static CObjectOStream * Open(ESerialDataFormat format, CNcbiOstream &outStream, bool deleteOutStream)
Create serial object writer and attach it to an output stream.
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.
CScope & GetScope(void) const
Get scope this handle belongs to.
bool IsMatch(CTempString str, TMatch flags=fMatch_default)
Check existence substring which match a specified pattern.
void Set(CTempStringEx pattern, TCompile flags=fCompile_default)
Set and compile PCRE.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const TSet & GetSet(void) const
Get the variant data.
bool IsSet(void) const
Check if variant Set is selected.
E_Choice
Choice variants.
@ e_Embl
EMBL specific information.
@ e_Het
cofactor, etc associated but not bound
@ e_Num
a numbering system
@ e_User
user defined object
@ e_Update_date
date of last update
@ e_Pub
a reference to the publication
@ e_Pir
PIR specific info.
@ e_Genbank
GenBank specific info.
@ e_Prf
PRF specific information.
@ e_Sp
SWISSPROT specific info.
@ e_Dbxref
xref to other databases
@ e_Comment
a more extensive comment
@ e_Region
overall region (globin locus)
@ e_Molinfo
info on the molecule and techniques
@ e_Maploc
map location of this sequence
@ e_Create_date
date entry first created/released
@ e_Title
a title for this sequence
@ e_Pdb
PDB specific information.
@ e_Name
a name for this sequence
@ e_Source
source of materials, includes Org-ref
const struct ncbi::grid::netcache::search::fields::SIZE size
static int match(PCRE2_SPTR start_eptr, PCRE2_SPTR start_ecode, uint16_t top_bracket, PCRE2_SIZE frame_size, pcre2_match_data *match_data, match_block *mb)
#define ID_CHKBOX_RMVDESC
#define ID_LISTCTRL_DESC_DLG
#define FOR_EACH_SEQENTRY_ON_SEQSET(Itr, Var)
FOR_EACH_SEQENTRY_ON_SEQSET EDIT_EACH_SEQENTRY_ON_SEQSET.
#define FOR_EACH_SEQDESC_ON_SEQENTRY(Itr, Var)
FOR_EACH_SEQDESC_ON_SEQENTRY EDIT_EACH_SEQDESC_ON_SEQENTRY.
C++ wrappers for the Perl-compatible regular expression (PCRE) library.
wxString ToWxString(const string &s)
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