(parent,
id, caption, pos,
size, style);
93 bool CTitlePanel::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
96SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
97wxPanel::Create( parent,
id, pos,
size, style );
102GetSizer()->SetSizeHints(
this);
142wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
143itemPanel1->SetSizer(itemBoxSizer2);
146itemBoxSizer2->Add(
m_TitleCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
148wxButton* itemButton1 =
newwxButton( itemPanel1,
ID_PUB_TITLE_SEARCH,
_(
"Search Title on the Web"), wxDefaultPosition, wxDefaultSize, 0 );
149itemBoxSizer2->Add(itemButton1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
161 caseobjects::CTitle::C_E::e_Abr:
164 caseobjects::CTitle::C_E::e_Coden:
167 caseobjects::CTitle::C_E::e_Isbn:
170 caseobjects::CTitle::C_E::e_Iso_jta:
173 caseobjects::CTitle::C_E::e_Issn:
176 caseobjects::CTitle::C_E::e_Jta:
179 caseobjects::CTitle::C_E::e_Ml_jta:
182 caseobjects::CTitle::C_E::e_Name:
185 caseobjects::CTitle::C_E::e_Trans:
188 caseobjects::CTitle::C_E::e_Tsub:
195 returnwxPanel::TransferDataToWindow();
201 if(!wxPanel::TransferDataFromWindow())
210 caseobjects::CTitle::C_E::e_Abr:
213 caseobjects::CTitle::C_E::e_Coden:
216 caseobjects::CTitle::C_E::e_Isbn:
219 caseobjects::CTitle::C_E::e_Iso_jta:
222 caseobjects::CTitle::C_E::e_Issn:
225 caseobjects::CTitle::C_E::e_Jta:
228 caseobjects::CTitle::C_E::e_Ml_jta:
231 caseobjects::CTitle::C_E::e_Name:
234 caseobjects::CTitle::C_E::e_Trans:
237 caseobjects::CTitle::C_E::e_Tsub:
291wxURI google_url (
wxT(
"http://www.google.com/search?q=") + title);
292wxString google_encoded_url = google_url.BuildURI();
293wxLaunchDefaultBrowser(google_encoded_url, 0);
295wxURI pubmed_url (
wxT(
"https://www.ncbi.nlm.nih.gov/pubmed/?term=") + title);
296wxString pubmed_encoded_url = pubmed_url.BuildURI();
297wxLaunchDefaultBrowser(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