wxWindowID
id,
constwxPoint& pos,
constwxSize&
size,
longstyle ) :
101SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
102wxPanel::Create( parent,
id, pos,
size, style );
107GetSizer()->SetSizeHints(
this);
147wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
148itemPanel1->SetSizer(itemBoxSizer2);
150wxStaticText* itemStaticText3 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Tentative title for manuscript"), wxDefaultPosition, wxDefaultSize, 0 );
151itemBoxSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
154itemBoxSizer2->Add(
m_TextCtrl, 0, wxALIGN_CENTER_HORIZONTAL | wxALL, 5);
156wxButton* itemButton1 =
newwxButton( itemPanel1,
ID_UNPUB_TITLE_SEARCH,
_(
"Search Title on the Web"), wxDefaultPosition, wxDefaultSize, 0 );
157itemBoxSizer2->Add(itemButton1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
205wxURI google_url (
wxT(
"http://www.google.com/search?q=") + title);
206wxString google_encoded_url = google_url.BuildURI();
207wxLaunchDefaultBrowser(google_encoded_url, 0);
209wxURI pubmed_url (
wxT(
"https://www.ncbi.nlm.nih.gov/pubmed/?term=") + title);
210wxString pubmed_encoded_url = pubmed_url.BuildURI();
211wxLaunchDefaultBrowser(pubmed_encoded_url, 0);
CRichTextCtrl - a wrapper for wxRichTextCtrl that handles additional keyboard events (such as Clipboa...
void CreateControls()
Creates the controls and sizers.
bool Create(wxWindow *parent, wxWindowID id=10011, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void Init()
Initialises member variables.
CUnpublishedPanel()
Constructors.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
CRichTextCtrl * m_TextCtrl
void SetTitle(const string &title)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnSearchTitle(wxCommandEvent &event)
static bool ShowToolTips()
Should we show tooltips?
~CUnpublishedPanel()
Destructor.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size
#define ID_UNPUB_TITLE_SEARCH
string ToAsciiStdString(const wxString &input)
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