42 #include <wx/bitmap.h>
44 #include <wx/stattext.h>
45 #include <wx/button.h>
86 wxWindowID
id,
const wxPoint& pos,
const wxSize&
size,
long style ) :
101 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
102 wxPanel::Create( parent,
id, pos,
size, style );
107 GetSizer()->SetSizeHints(
this);
147 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
148 itemPanel1->SetSizer(itemBoxSizer2);
150 wxStaticText* itemStaticText3 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Tentative title for manuscript"), wxDefaultPosition, wxDefaultSize, 0 );
151 itemBoxSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
154 itemBoxSizer2->Add(
m_TextCtrl, 0, wxALIGN_CENTER_HORIZONTAL | wxALL, 5);
156 wxButton* itemButton1 =
new wxButton( itemPanel1,
ID_UNPUB_TITLE_SEARCH,
_(
"Search Title on the Web"), wxDefaultPosition, wxDefaultSize, 0 );
157 itemBoxSizer2->Add(itemButton1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
205 wxURI google_url (
wxT(
"http://www.google.com/search?q=") + title);
206 wxString google_encoded_url = google_url.BuildURI();
207 wxLaunchDefaultBrowser(google_encoded_url, 0);
209 wxURI pubmed_url (
wxT(
"https://www.ncbi.nlm.nih.gov/pubmed/?term=") + title);
210 wxString pubmed_encoded_url = pubmed_url.BuildURI();
211 wxLaunchDefaultBrowser(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)