A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/macro__selectqual__dlg_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/edit/macro_selectqual_dlg.cpp Source File

46 #include <wx/button.h> 47 #include <wx/choice.h> 80

: m_FieldType(field_type), m_MatchType(match_type)

83  Create

(parent,

id

, caption, pos,

size

, style);

91 bool CSelectQualdDlg::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

94 

SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY|wxWS_EX_BLOCK_EVENTS);

95

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

137

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

138

itemDialog1->SetSizer(itemBoxSizer2);

140

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxHORIZONTAL);

141

itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_LEFT | wxALL, 0);

144

vector<CFieldNamePanel::EFieldType> field_types{

155

wxArrayString field_type_strings;

157  for

(

size_t

index = 0; index < field_types.size(); ++index) {

158  if

(

type

== field_types[index])

159

selected =

static_cast<int>

(index);

163

itemBoxSizer3->Add(

m_FieldChoice

, 0, wxALIGN_LEFT|wxALL, 5);

166  m_EnableBtn

=

new

wxButton(

this

,

wxID_ANY

,

_

(

"Enable selection"

), wxDefaultPosition, wxDefaultSize, 0);

167

itemBoxSizer3->Add(

m_EnableBtn

, 0, wxALIGN_LEFT | wxBOTTOM | wxTOP, 5);

172

itemBoxSizer2->Add(

m_FieldPicker

, 0, wxALIGN_LEFT | wxLEFT | wxRIGHT, 5);

174

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxHORIZONTAL);

175

itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL, 0);

177

wxButton* itemButton5 =

new

wxButton(itemDialog1, wxID_OK,

_

(

"Select"

), wxDefaultPosition, wxDefaultSize, 0);

178

itemBoxSizer4->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);

180

wxButton* itemButton6 =

new

wxButton(itemDialog1, wxID_CANCEL,

_

(

"Cancel"

), wxDefaultPosition, wxDefaultSize, 0);

181

itemBoxSizer4->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;

289

EndModal(wxID_CANCEL);

326  LOG_POST

(

Error

<<

"Field: "

<< field <<

" could not be set in the Apply Table macro"

);

357  switch

(field_type) {

361

panel->HideSourceType();

369

objects::CSeq_entry_Handle seh;

370

panel->ListPresentFeaturesFirst(seh);

390

panel->SetMacroSelf(macro::CMacroBioData::sm_MolInfo);

391

panel->SetFieldName(

"molecule"

);

399  bool

extended =

true

;

402

panel->SetMacroSelf(macro::CMacroBioData::sm_Pubdesc);

403

panel->SetFieldName(

"title"

);

418

panel->SetMacroSelf(

"DBLink"

);

428

panel->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