: m_FieldType(field_type), m_MatchType(match_type)
83 Create(parent,
id, caption, pos,
size, style);
91 bool CSelectQualdDlg::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
94SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY|wxWS_EX_BLOCK_EVENTS);
95wxDialog::Create( parent,
id, caption, pos,
size, style );
137wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
138itemDialog1->SetSizer(itemBoxSizer2);
140wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
141itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_LEFT | wxALL, 0);
144vector<CFieldNamePanel::EFieldType> field_types{
155wxArrayString field_type_strings;
157 for(
size_tindex = 0; index < field_types.size(); ++index) {
158 if(
type== field_types[index])
159selected =
static_cast<int>(index);
163itemBoxSizer3->Add(
m_FieldChoice, 0, wxALIGN_LEFT|wxALL, 5);
166 m_EnableBtn=
newwxButton(
this,
wxID_ANY,
_(
"Enable selection"), wxDefaultPosition, wxDefaultSize, 0);
167itemBoxSizer3->Add(
m_EnableBtn, 0, wxALIGN_LEFT | wxBOTTOM | wxTOP, 5);
172itemBoxSizer2->Add(
m_FieldPicker, 0, wxALIGN_LEFT | wxLEFT | wxRIGHT, 5);
174wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
175itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL, 0);
177wxButton* itemButton5 =
newwxButton(itemDialog1, wxID_OK,
_(
"Select"), wxDefaultPosition, wxDefaultSize, 0);
178itemBoxSizer4->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
180wxButton* itemButton6 =
newwxButton(itemDialog1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0);
181itemBoxSizer4->Add(itemButton6, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
193 switch(macro_field_type) {
241 m_Target.first = macro::CMacroBioData::sm_BioSource;
244 m_Target.first = macro::CMacroBioData::sm_SeqFeat;
247 m_Target.first = macro::CMacroBioData::sm_SeqFeat;
250 m_Target.first = macro::CMacroBioData::sm_RNA;
253 m_Target.first = macro::CMacroBioData::sm_MolInfo;
256 m_Target.first = macro::CMacroBioData::sm_Pubdesc;
259 m_Target.first = macro::CMacroBioData::sm_StrComm;
262 m_Target.first = macro::CMacroBioData::sm_SeqNa;
265 m_Target.first = macro::CMacroBioData::sm_SeqNa;
289EndModal(wxID_CANCEL);
326 LOG_POST(
Error<<
"Field: "<< field <<
" could not be set in the Apply Table macro");
357 switch(field_type) {
361panel->HideSourceType();
369objects::CSeq_entry_Handle seh;
370panel->ListPresentFeaturesFirst(seh);
390panel->SetMacroSelf(macro::CMacroBioData::sm_MolInfo);
391panel->SetFieldName(
"molecule");
399 boolextended =
true;
402panel->SetMacroSelf(macro::CMacroBioData::sm_Pubdesc);
403panel->SetFieldName(
"title");
418panel->SetMacroSelf(
"DBLink");
428panel->SetMacroSelf(
"Misc");
static vector< string > GetFieldNames()
virtual string GetFieldName(const bool subfield=false)=0
Returns the name of the field as selected in the panel.
virtual string GetMacroFieldName(const string &target, const string &selected_field=kEmptyStr)
@ eFieldType_StructuredComment
virtual bool SetFieldName(const string &field)=0
static string GetFieldTypeName(EFieldType field_type)
static EFieldType GetFieldTypeFromName(const string &field_type_name)
static vector< string > GetStrings()
static vector< string > GetMacroFieldNames()
static vector< string > GetFieldNames()
static vector< string > GetMacroFieldNames()
static vector< string > GetFieldNamesWithoutDOI(bool extended=false)
static vector< string > GetMacroFieldNames(bool extended=false)
string GetRnaTypeOnly(void)
static bool ShowToolTips()
Should we show tooltips?
void CreateControls()
Creates the controls and sizers.
void OnSelect(wxCommandEvent &event)
CSelectQualdDlg()
Constructors.
virtual void UpdateEditor(void)
pair< string, string > m_Target
~CSelectQualdDlg()
Destructor.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
EMacroFieldType m_MatchType
void OnEnableClicked(wxCommandEvent &event)
wxBoxSizer * m_FieldPicker
CFieldNamePanel * m_Field
void OnFieldTypeSelected(wxCommandEvent &event)
static CFieldNamePanel::EFieldType s_ConvertFieldtype(EMacroFieldType macro_field_type)
SFieldFromTable m_SelectedField
void OnCancel(wxCommandEvent &event)
void Init()
Initialises member variables.
bool SetField(const string &field, EMacroFieldType type)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
EMacroFieldType m_FieldType
void SetFieldType(CFieldNamePanel::EFieldType field_type)
bool Create(wxWindow *parent, wxWindowID id=ID_CSELECTMATCHFIELDDLG, const wxString &caption=_("Select Qualifier"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(413, 258), long style=wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
void OnEnableUIBtn(wxUpdateUIEvent &event)
const char * kDefinitionLineLabel
#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)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
CTempString UpdateTargetForRnas(const string &rna_type)
const struct ncbi::grid::netcache::search::fields::SIZE size
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