35 #include <wx/button.h>
37 #include <wx/msgdlg.h>
93 wxPanel::Create( parent,
id, pos,
size, style );
98 GetSizer()->SetSizeHints(
this);
138 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
139 itemPanel1->SetSizer(itemBoxSizer2);
141 wxBoxSizer* itemBoxSizer3 =
new wxBoxSizer(wxHORIZONTAL);
142 itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
144 wxButton* itemButton4 =
new wxButton( itemPanel1,
ID_ACCEPT_BTN,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
145 itemBoxSizer3->Add(itemButton4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
147 wxButton* itemButton5 =
new wxButton( itemPanel1, wxID_CLOSE,
_(
"&Close"), wxDefaultPosition, wxDefaultSize, 0 );
148 itemBoxSizer3->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
152 itemBoxSizer3->Add(
m_LeaveUp, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
201 wxWindow* w = this->GetParent();
216 wxOK | wxICON_ERROR,
NULL);
220 wxMessageBox(
ToWxString(
"No data was selected"),
221 wxT(
"Error"), wxOK | wxICON_ERROR,
NULL);
237 wxWindow* w = this->GetParent();
251 wxWindow* win = this->GetParent();
252 while (win !=
nullptr) {
253 wxDialog* dlg_parent =
dynamic_cast<wxDialog*
>(win);
259 wxFrame* fr_parent =
dynamic_cast<wxFrame*
>(win);
265 win = win->GetParent();
virtual void ExecuteCmd(CRef< CCmdComposite > cmd)
virtual CRef< CCmdComposite > GetCommand()=0
virtual string GetErrorMessage()=0
bool GetTopLevelSeqEntryAndProcessor()
static bool ShowToolTips()
Should we show tooltips?
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=ID_COKCANCELPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void CreateControls()
Creates the controls and sizers.
~COkCancelPanel()
Destructor.
COkCancelPanel()
Constructors.
void Init()
Initialises member variables.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnAcceptBtnClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ACCEPT_BTN
void OnClickCancel(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CLOSE
@ ID_LEAVE_DIALOG_UP_CHKBOX
#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).
void ReportUsage(const wxString &dialog_name)
Report opening & accepting events in the editing package.
const struct ncbi::grid::netcache::search::fields::SIZE size
USING_SCOPE(ncbi::objects)
wxString ToWxString(const string &s)