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/singlequal__panel_8cpp_source.html below:

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

37 #include <wx/choice.h> 38 #include <wx/textctrl.h> 40 #include <wx/button.h> 41 #include <wx/combobox.h> 74

:m_FieldType(

type

), m_MatchType(

type

)

88 

SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);

89

wxPanel::Create( parent,

id

, pos,

size

, style );

94

GetSizer()->SetSizeHints(

this

);

136

wxBoxSizer* itemBoxSizer1 =

new

wxBoxSizer(wxHORIZONTAL);

137

itemPanel1->SetSizer(itemBoxSizer1);

139

wxArrayString m_FieldFirstStrings;

140  m_FieldFirst

=

new

wxComboBox( itemPanel1,

ID_SNGLQUALCH1

, wxEmptyString, wxDefaultPosition, wxSize(169, -1), m_FieldFirstStrings, wxCB_DROPDOWN);

141

itemBoxSizer1->Add(

m_FieldFirst

, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);

143  m_FieldFirst

->SetToolTip(

"Use 'Select' to choose qualifier"

);

145  m_Column

=

new

wxTextCtrl(itemPanel1,

ID_SNGLQUALCOL

, wxEmptyString, wxDefaultPosition, wxSize(30, -1), 0);

146

itemBoxSizer1->Add(

m_Column

, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);

148  m_MatchCheck

=

new

wxCheckBox(itemPanel1,

wxID_ANY

, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);

149

itemBoxSizer1->Add(

m_MatchCheck

, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);

152

wxHyperlinkCtrl* link =

new

wxHyperlinkCtrl(itemPanel1,

wxID_ANY

,

wxT

(

"Select"

),

wxT

(

"select"

), wxDefaultPosition, wxDefaultSize, 0);

153

itemBoxSizer1->Add(link, 0, wxALIGN_CENTER_VERTICAL, 5);

163

wxArrayString arraystring;

178  string

field = first_field;

225  auto

col =

m_Column

->GetValue().ToStdString();

226  const string

& field =

m_FieldFirst

->GetStringSelection().ToStdString();

228  if

(it.m_GUIName == field) {

243  if

(event.GetURL() !=

wxT

(

"select"

)) {

249  if

(dlg.ShowModal() == wxID_OK) {

string GetAsnPathToFieldName(const string &field, EMacroFieldType type, const string &target=kEmptyStr)

static CMacroEditorContext & GetInstance()

vector< string > GetFieldNames(EMacroFieldType type) const

static string NormalizePubFieldName(string orig_label)

static string GetLabelForType(EPubFieldType field_type)

EMacroFieldType GetMatchType() const

SFieldFromTable GetSelection() const

bool SetField(const string &field, EMacroFieldType type)

~CSingleQualPanel()

Destructor.

EMacroFieldType m_FieldType

CSingleQualPanel()

Constructors.

void OnFieldSelected(wxCommandEvent &event)

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

SFieldFromTable GetField()

void OnSelectClicked(wxHyperlinkEvent &event)

bool Create(wxWindow *parent, wxWindowID id=ID_CSINGLEQUALPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)

Creation.

EMacroFieldType m_MatchType

void SetField(const string &first_field, int col)

wxComboBox * m_FieldFirst

wxCheckBox * m_MatchCheck

list< SFieldFromTable > m_AdditionalFields

void CreateControls()

Creates the controls and sizers.

static bool ShowToolTips()

Should we show tooltips?

bool InsertField(const string &field, int col, EMacroFieldType type, bool matching_field)

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

void Init()

Initialises member variables.

const char * kFieldTypeSeqId

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static string IntToString(int value, TNumToStringFlags flags=0, int base=10)

Convert int to string.

static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)

Check if a string starts with a specified prefix value.

static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)

Case-insensitive equality of a substring with another string.

@ eNocase

Case insensitive compare.

const struct ncbi::grid::netcache::search::fields::SIZE size

wxString ToWxString(const string &s)

string ToStdString(const wxString &s)

void ToArrayString(const vector< string > &out, wxArrayString &in)


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