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

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

44 #include <wx/stattext.h> 45 #include <wx/textctrl.h> 46 #include <wx/button.h> 47 #include <wx/cshelp.h> 50 #include <wx/filedlg.h> 81

: m_Contact(&contact_info)

95 

SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);

96

wxPanel::Create( parent,

id

, pos,

size

, style );

101

GetSizer()->SetSizeHints(

this

);

143

wxBoxSizer* itemBoxSizer1 =

new

wxBoxSizer(wxVERTICAL);

144

itemPanel1->SetSizer(itemBoxSizer1);

146

wxFlexGridSizer* itemFlexGridSizer2 =

new

wxFlexGridSizer(0, 1, 0, 0);

147

itemBoxSizer1->Add(itemFlexGridSizer2, 0, wxALIGN_CENTER_HORIZONTAL | wxALL, 5);

149

wxBoxSizer* itemBoxSizer9 =

new

wxBoxSizer(wxHORIZONTAL);

150

itemFlexGridSizer2->Add(itemBoxSizer9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

152

wxStaticText* itemStaticText10 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"First Name"

), wxDefaultPosition, wxSize(100, -1), wxALIGN_CENTRE);

153

itemBoxSizer9->Add(itemStaticText10, 0, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL|wxALL, 5);

155

wxStaticText* itemStaticText11 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"M.I."

), wxDefaultPosition, wxSize(100, -1), wxALIGN_CENTRE);

156

itemBoxSizer9->Add(itemStaticText11, 0, wxALIGN_LEFT |wxALIGN_CENTER_VERTICAL|wxALL, 5);

158

wxStaticText* itemStaticText12 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Last Name"

), wxDefaultPosition, wxSize(100, -1), wxALIGN_CENTRE );

159

itemBoxSizer9->Add(itemStaticText12, 0, wxALIGN_LEFT |wxALIGN_CENTER_VERTICAL|wxALL, 5);

161

wxStaticText* itemStaticText13 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Suffix"

), wxDefaultPosition, wxSize(50, -1), wxALIGN_CENTRE );

162

itemBoxSizer9->Add(itemStaticText13, 0, wxALIGN_LEFT |wxALIGN_CENTER_VERTICAL|wxALL, 5);

169

itemFlexGridSizer2->Add(

m_SingleAuthor

, 0, wxALIGN_CENTER_VERTICAL |wxALL, 0);

171

wxFlexGridSizer* itemFlexGridSizer3 =

new

wxFlexGridSizer(0, 2, 0, 0);

172

itemFlexGridSizer2->Add(itemFlexGridSizer3, 0, wxALIGN_CENTER_HORIZONTAL |wxTOP, 5);

174

wxStaticText* itemStaticText5 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Email (primary)*"

), wxDefaultPosition, wxDefaultSize, 0 );

175

itemFlexGridSizer3->Add(itemStaticText5, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxTOP|wxBOTTOM, 5);

177  m_LabelSecondary

=

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Email (secondary)"

), wxDefaultPosition, wxDefaultSize, 0 );

178

itemFlexGridSizer3->Add(

m_LabelSecondary

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

182

itemFlexGridSizer3->Add(

m_EmailPrimary

, 0, wxALIGN_CENTER_VERTICAL| wxRIGHT | wxTOP | wxBOTTOM, 5);

186

itemFlexGridSizer3->Add(

m_EmailSecondary

, 0, wxALIGN_CENTER_VERTICAL| wxRIGHT | wxTOP | wxBOTTOM, 5);

196  if

(!wxPanel::TransferDataToWindow()) {

200  const auto

& contact =

m_Contact

->GetContact();

208  if

((contact.IsSetAffil() && contact.GetAffil().IsStd()

209

&& contact.GetAffil().GetStd().IsSetEmail()) ||

m_Contact

->IsSetEmail()) {

210

vector<string> emails;

214  NStr::Split

(contact.GetAffil().GetStd().GetEmail(),

",;"

, emails);

216  if

(!emails.empty()) {

219  if

(emails.size() > 1) {

232  if

(!wxPanel::TransferDataFromWindow()) {

243

author->

SetName

().SetName().SetLast(

"?"

);

246  m_Contact

->SetContact().Assign(*author);

252  if

(!email.empty()) {

257  if

(!email.empty()) {

324  text

+=

"Submitter First Name\n"

;

327  text

+=

"Submitter Last Name\n"

;

329  text

+=

"Submitter Primary Email Address\n"

;

virtual bool TransferDataFromWindow()

wxTextCtrl * m_FirstNameCtrl

CRef< objects::CAuthor > GetAuthor() const

void SetAuthor(const objects::CAuthor &author)

wxTextCtrl * m_LastNameCtrl

static bool IsPlaceholder(const objects::CAuthor &author)

virtual void ApplySubmitCommand()=0

virtual bool TransferDataFromWindow()

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

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

Creation.

CRef< objects::CContact_info > m_Contact

virtual void ReportMissingFields(string &text)

~CSubmitterNamePanel()

Destructor.

void ApplyContactInfo(objects::CContact_info &contact_info)

void CreateControls()

Creates the controls and sizers.

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

wxTextCtrl * m_EmailSecondary

wxStaticText * m_LabelSecondary

wxTextCtrl * m_EmailPrimary

void Init()

Initialises member variables.

static bool ShowToolTips()

Should we show tooltips?

void OnPrimeEmailChanged(wxCommandEvent &event)

virtual bool TransferDataToWindow()

CSingleAuthorPanel * m_SingleAuthor

virtual void ApplyCommand()

CSubmitterNamePanel()

Constructors.

CSubmissionPageChangeListener * GetParentWizard(wxWindow *wnd) const

void Reset(void)

Reset reference object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)

Split a string using specified delimiters.

void SetName(TName &value)

Assign a value to Name data member.

const TName & GetName(void) const

Get the Name member data.

bool IsSetName(void) const

Author, Primary or Secondary Check if a value has been assigned to Name data member.

bool IsName(void) const

Check if variant Name is selected.

bool IsSetLast(void) const

Check if a value has been assigned to Last data member.

const TFirst & GetFirst(void) const

Get the First member data.

const TLast & GetLast(void) const

Get the Last member data.

const TName & GetName(void) const

Get the variant data.

bool IsSetFirst(void) const

Check if a value has been assigned to First data member.

static void text(MDB_val *v)

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