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

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

35 #include <wx/button.h> 85  Create

(parent,

id

, caption, pos,

size

, style);

93 bool CTitlePanel::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

96 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

97

wxPanel::Create( parent,

id

, pos,

size

, style );

102

GetSizer()->SetSizeHints(

this

);

142

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

143

itemPanel1->SetSizer(itemBoxSizer2);

146

itemBoxSizer2->Add(

m_TitleCtrl

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

148

wxButton* itemButton1 =

new

wxButton( itemPanel1,

ID_PUB_TITLE_SEARCH

,

_

(

"Search Title on the Web"

), wxDefaultPosition, wxDefaultSize, 0 );

149

itemBoxSizer2->Add(itemButton1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

161  case

objects::CTitle::C_E::e_Abr:

164  case

objects::CTitle::C_E::e_Coden:

167  case

objects::CTitle::C_E::e_Isbn:

170  case

objects::CTitle::C_E::e_Iso_jta:

173  case

objects::CTitle::C_E::e_Issn:

176  case

objects::CTitle::C_E::e_Jta:

179  case

objects::CTitle::C_E::e_Ml_jta:

182  case

objects::CTitle::C_E::e_Name:

185  case

objects::CTitle::C_E::e_Trans:

188  case

objects::CTitle::C_E::e_Tsub:

195  return

wxPanel::TransferDataToWindow();

201  if

(!wxPanel::TransferDataFromWindow())

210  case

objects::CTitle::C_E::e_Abr:

213  case

objects::CTitle::C_E::e_Coden:

216  case

objects::CTitle::C_E::e_Isbn:

219  case

objects::CTitle::C_E::e_Iso_jta:

222  case

objects::CTitle::C_E::e_Issn:

225  case

objects::CTitle::C_E::e_Jta:

228  case

objects::CTitle::C_E::e_Ml_jta:

231  case

objects::CTitle::C_E::e_Name:

234  case

objects::CTitle::C_E::e_Trans:

237  case

objects::CTitle::C_E::e_Tsub:

291

wxURI google_url (

wxT

(

"http://www.google.com/search?q="

) + title);

292

wxString google_encoded_url = google_url.BuildURI();

293

wxLaunchDefaultBrowser(google_encoded_url, 0);

295

wxURI pubmed_url (

wxT

(

"https://www.ncbi.nlm.nih.gov/pubmed/?term="

) + title);

296

wxString pubmed_encoded_url = pubmed_url.BuildURI();

297

wxLaunchDefaultBrowser(pubmed_encoded_url, 0);

CRichTextCtrl - a wrapper for wxRichTextCtrl that handles additional keyboard events (such as Clipboa...

void Init()

Initialises member variables.

static bool ShowToolTips()

Should we show tooltips?

virtual bool TransferDataFromWindow()

bool Create(wxWindow *parent, wxWindowID id=10015, const wxString &caption=_("TitlePanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

CTitlePanel()

Constructors.

CRichTextCtrl * m_TitleCtrl

void OnSearchTitle(wxCommandEvent &event)

virtual bool TransferDataToWindow()

CRef< objects::CTitle::C_E > m_Title

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

~CTitlePanel()

Destructor.

void CreateControls()

Creates the controls and sizers.

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)

Check if a string is blank (has no text).

static string & ReplaceInPlace(string &src, const string &search, const string &replace, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)

Replace occurrences of a substring within a string.

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

#define ID_PUB_TITLE_SEARCH

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