44 #include <wx/stattext.h>
45 #include <wx/textctrl.h>
46 #include <wx/choice.h>
47 #include <wx/combobox.h>
48 #include <wx/msgdlg.h>
96 bool CLowerQuals::Create( wxWindow* parent, wxWindowID
id,
const wxString& caption,
const wxPoint& pos,
const wxSize&
size,
long style )
99 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
105 GetSizer()->SetSizeHints(
this);
146 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
147 itemCBulkCmdDlg1->SetSizer(itemBoxSizer2);
151 vector<CFieldNamePanel::EFieldType> field_types;
166 wxBoxSizer* itemBoxSizer6 =
new wxBoxSizer(wxHORIZONTAL);
167 itemBoxSizer2->Add(itemBoxSizer6, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 0);
169 wxRadioButton* itemRadioButton1 =
new wxRadioButton( itemCBulkCmdDlg1,
wxID_ANY,
_(
"Descriptors and Features"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP);
170 itemRadioButton1->SetValue(
true);
171 itemBoxSizer6->Add(itemRadioButton1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
175 itemBoxSizer6->Add(
m_RadioDesc, 0, wxALIGN_CENTER_VERTICAL |wxALL, 5);
179 itemBoxSizer6->Add(
m_RadioFeat, 0, wxALIGN_CENTER_VERTICAL |wxALL, 5);
187 itemBoxSizer2->Add(
m_OkCancel, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
242 vector<CRef<edit::CApplyObject> > objs = col->
GetApplyObjects(seh, constraint_field, string_constraint);
245 wxMessageBox(
wxT(
"No features found!"),
wxT(
"Error"),
246 wxOK | wxICON_ERROR,
NULL);
253 if (!(*src_it)->PreExists())
257 string val = col->
GetVal((*src_it)->GetObject());
258 string new_val =
val;
259 const CSeqdesc * desc =
dynamic_cast<const CSeqdesc *
>((*src_it)->GetOriginalObject());
260 const CSeq_feat* feat =
dynamic_cast<const CSeq_feat *
>((*src_it)->GetOriginalObject());
261 bool is_src_org =
false;
281 cmd->AddCommand(*ecmd);
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()
void UpdateChildrenFeaturePanels(wxSizer *sizer)
wxRadioButton * m_CapTolower
objects::ECapChange GetCapitalizationRequest()
virtual string GetFieldName(const bool subfield=false)
Returns the name of the field as selected in the panel.
bool SetFieldType(CFieldNamePanel::EFieldType field_type, bool is_pair=false)
void ProcessUpdateFeatEvent(wxCommandEvent &event)
CLowerQuals()
Constructors.
virtual string GetErrorMessage()
CFieldChoicePanel * m_FieldType
void CreateControls()
Creates the controls and sizers.
bool Create(wxWindow *parent, wxWindowID id=10147, const wxString &caption=_("Lowercase Qualifiers"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
virtual CRef< CCmdComposite > GetCommand()
~CLowerQuals()
Destructor.
wxRadioButton * m_RadioFeat
static bool ShowToolTips()
Should we show tooltips?
wxRadioButton * m_RadioDesc
COkCancelPanel * m_OkCancel
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void Init()
Initialises member variables.
CCapChangePanel * m_CapChangeOptions
vector< CRef< objects::edit::CApplyObject > > GetApplyObjects(objects::CBioseq_Handle bsh)
string GetVal(const CObject &object)
bool SetVal(CObject &object, const string &val, objects::edit::EExistingText existing_text)
namespace ncbi::objects::
IWorkbench is the central interface in the application framework.
static auto & FixCapitalizationInString
#define EVT_UPDATE_FEATURE_LIST(id, fn)
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
bool IsSetOrg(void) const
Check if a value has been assigned to Org data member.
bool IsSetData(void) const
the specific data Check if a value has been assigned to Data data member.
const TData & GetData(void) const
Get the Data member data.
const TBiosrc & GetBiosrc(void) const
Get the variant data.
bool IsBiosrc(void) const
Check if variant Biosrc is selected.
const TSource & GetSource(void) const
Get the variant data.
bool IsSource(void) const
Check if variant Source is selected.
CRef< CCmdComposite > GetCommandFromApplyObject(objects::edit::CApplyObject &obj)
const struct ncbi::grid::netcache::search::fields::SIZE size
@ eExistingText_replace_old