(parent, wb,
id, caption, pos,
size, style);
97SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
103GetSizer()->SetSizeHints(
this);
152 if(width >= 0 && height >= 0)
153SetSize(wxSize(width,height));
158 if(pos_x >= 0 && pos_y >= 0) {
160 for(
unsigned i= 0;
i< wxDisplay::GetCount();
i++)
162wxDisplay display(
i);
163max_x += display.GetGeometry().GetWidth();
165 if(pos_x + width > max_x) pos_x = wxGetDisplaySize().GetWidth()-width-5;
166 if(pos_y + height > wxGetDisplaySize().GetHeight()) pos_y = wxGetDisplaySize().GetHeight()-height-5;
168SetPosition(wxPoint(pos_x,pos_y));
184wxBoxSizer* itemBoxSizer1 =
newwxBoxSizer(wxVERTICAL);
185SetSizer(itemBoxSizer1);
187wxPanel* itemCBulkCmdDlg1 =
newwxPanel(
this,
wxID_ANY);
188itemBoxSizer1->Add(itemCBulkCmdDlg1, 1, wxGROW, 0);
190wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
191itemCBulkCmdDlg1->SetSizer(itemBoxSizer2);
194itemBoxSizer2->Add(
m_ParseOptions, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
196wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
197itemBoxSizer2->Add(itemBoxSizer3, 1, wxALIGN_CENTER_HORIZONTAL|wxALL, 2);
199wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxVERTICAL);
200itemBoxSizer3->Add(itemBoxSizer4, 1, wxALIGN_CENTER_VERTICAL|wxALL, 2);
202wxStaticText* itemStaticText1 =
newwxStaticText( itemCBulkCmdDlg1, wxID_STATIC,
_(
"From"), wxDefaultPosition, wxDefaultSize, 0 );
203itemBoxSizer4->Add(itemStaticText1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
206itemBoxSizer4->Add(
m_Field1, 0, wxALIGN_CENTER_HORIZONTAL, 0);
208wxBoxSizer* itemBoxSizer5 =
newwxBoxSizer(wxVERTICAL);
209itemBoxSizer3->Add(itemBoxSizer5, 1, wxALIGN_CENTER_VERTICAL|wxALL, 2);
211wxStaticText* itemStaticText2 =
newwxStaticText( itemCBulkCmdDlg1, wxID_STATIC,
_(
"To"), wxDefaultPosition, wxDefaultSize, 0 );
212itemBoxSizer5->Add(itemStaticText2, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
215itemBoxSizer5->Add(
m_Field2, 0, wxALIGN_CENTER_HORIZONTAL, 0);
219itemBoxSizer2->Add(
m_Constraint, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
222itemBoxSizer2->Add(panelOkCancel, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
253wxWindowList &slist = win->GetChildren();
254 for(wxWindowList::iterator iter = slist.begin(); iter != slist.end(); ++iter)
256wxWindow* child = *iter;
299 autosubtype =
GetSubtype(field_name_panel, ncRNA_class);
312action1->SetConstraint(constraint);
320action2->SetExistingText(existing_text);
323 cmd= action1->GetActionCommand();
346wxPanel::Create( parent,
id, pos,
size, style );
350GetSizer()->SetSizeHints(
this);
368wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
369itemPanel1->SetSizer(itemBoxSizer2);
371 m_Notebook=
newwxChoicebook(itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize);
372itemBoxSizer2->Add(
m_Notebook, 0, wxGROW|wxALL, 5);
386 m_Notebook->AddPage(panel4,
_(
"CDS-Gene-Prot-mRNA"));
404 m_Notebook->AddPage(panel8,
_(
"Structured Comment"));
429 m_Notebook->AddPage(panel15, wxString(
"Dbxref"));
446 if(page != wxNOT_FOUND)
457wxWindow* win =
m_Notebook->GetCurrentPage();
475 if(sel != wxNOT_FOUND)
477field_type =
m_Notebook->GetPageText(sel).ToStdString();
487wxWindow* win =
m_Notebook->GetCurrentPage();
objects::CSeq_entry_Handle m_TopSeqEntry
bool Create(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)
bool GetTopLevelSeqEntryAndProcessor()
edit::EExistingText x_GetExistingTextHandling(int num_conflicts, bool allow_multiple=false)
virtual bool SetFieldName(const string &field)
string GetFieldType(void) const
CFieldNamePanel * GetFieldNamePanel(void)
CRef< edit::CStringConstraint > GetStringConstraint(void)
static vector< string > GetFieldNames()
void PopulateFeatureListbox(void)
void ListPresentFeaturesFirst(const objects::CSeq_entry_Handle &entry, vector< const objects::CFeatListItem * > *featlist=nullptr)
virtual bool SetFieldName(const string &field)
void SetFieldNames(const vector< string > &field_names)
virtual string GetFieldName(const bool subfield=false)=0
Returns the name of the field as selected in the panel.
static EFieldType GetFieldTypeFromName(const string &field_type_name)
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
static vector< string > GetStrings()
static vector< string > GetFieldNames()
void UpdateChildrenFeaturePanels(wxWindow *win)
CQualChoicePanel * m_Field1
CConstraintPanel * m_Constraint
bool Create(wxWindow *parent, IWorkbench *wb, wxWindowID id=wxID_ANY, const wxString &caption=_("Parse Text"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
static bool ShowToolTips()
virtual void LoadSettings()
void SetFromFieldType(EFieldType field_type)
virtual void SetRegistryPath(const string ®_path)
CQualChoicePanel * m_Field2
wxIcon GetIconResource(const wxString &name)
void SetToFieldType(EFieldType field_type)
wxBitmap GetBitmapResource(const wxString &name)
virtual CRef< CCmdComposite > GetCommand()
virtual void SaveSettings() const
void ProcessUpdateFeatEvent(wxCommandEvent &event)
CParseTextOptionsDlg * m_ParseOptions
CRef< objects::edit::CParseTextOptions > GetParseOptions()
static vector< string > GetFieldNames(bool extended=false)
wxIcon GetIconResource(const wxString &name)
void SetSelection(int page)
CFieldNamePanel * GetFieldNamePanel(void)
static bool ShowToolTips()
wxChoicebook * m_Notebook
CIRef< IEditingAction > CreateEditingAction(CSeq_entry_Handle seh)
string GetField(bool subfield=true)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
wxBitmap GetBitmapResource(const wxString &name)
string GetFieldType(void)
virtual bool SetFieldName(const string &field)
class CRegistryReadView provides a nested hierarchical view at a particular key.
int GetInt(const string &key, int default_val=0) const
access a named key at this level, with no recursion
void Set(const string &key, int val)
access a named key at this level, with no recursion
virtual bool SetFieldName(const string &field)
IWorkbench is the central interface in the application framework.
CRef< CEditingActionConstraint > CreateEditingActionConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class, const string &const_field, CFieldNamePanel::EFieldType const_field_type, int const_subtype, string &const_ncRNA_class, CRef< CConstraintMatcher >constraint)
int GetSubtype(CFieldNamePanel *field_name_panel, string &ncRNA_class)
CIRef< IEditingAction > CreateAction(CSeq_entry_Handle seh, const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class=kEmptyStr, CConstRef< objects::CSeq_submit > submit=CConstRef< objects::CSeq_submit >(NULL))
#define EVT_UPDATE_FEATURE_LIST(id, fn)
const char * kDefinitionLineLabel
const char * kTaxnameAfterBinomial
const char * kBankITComment
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
const struct ncbi::grid::netcache::search::fields::SIZE size
static const char * kFramePosX
static const char * kFrameHeight
static const char * kFramePosY
static const char * kFrameWidth
wxRect GetScreenRect(const wxWindow &win)
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