creaImageIO_lib
creaImageIO::RemoveAlertDlg Class Reference

#include <creaImageIOWxTreeView.h>

Inheritance diagram for creaImageIO::RemoveAlertDlg:
Collaboration diagram for creaImageIO::RemoveAlertDlg:

Public Member Functions

 RemoveAlertDlg (wxWindow *parent, wxString title, const wxSize &size)
 
 ~RemoveAlertDlg ()
 
bool isChecked ()
 

Private Member Functions

void onCheck (wxCommandEvent &Event)
 

Private Attributes

bool mSave
 
wxCheckBox * mcheck
 

Detailed Description

Definition at line 240 of file creaImageIOWxTreeView.h.

Constructor & Destructor Documentation

creaImageIO::RemoveAlertDlg::RemoveAlertDlg ( wxWindow *  parent,
wxString  title,
const wxSize &  size 
)

Definition at line 1291 of file creaImageIOWxTreeView.cpp.

References mcheck, mSave, and onCheck().

1294  : wxDialog( parent,
1295  wxID_ANY,
1296  title,
1297  wxDefaultPosition,
1298  size,
1299  wxDEFAULT_DIALOG_STYLE)
1300  {
1301  wxBoxSizer *topsizer = new wxBoxSizer(wxVERTICAL);
1302 
1303  //std::string out("To reload deleted patient, you should synchronize your database before."); // JPR
1304  //wxTextCtrl *text = new wxTextCtrl(this, wxID_ANY,crea::std2wx(out),wxDefaultPosition, wxSize(500,20));
1305  wxTextCtrl *text = new wxTextCtrl(this, wxID_ANY,
1306  _T("To reload deleted patient, you should synchronize your database before."),
1307  wxDefaultPosition, wxSize(650,20)); // 650 vs 500 ? // JPRx
1308  mcheck = new wxCheckBox(this, 5478, _T("Do not display this warning again!"));
1309  Connect( mcheck->GetId(), wxEVT_COMMAND_CHECKBOX_CLICKED , (wxObjectEventFunction) &RemoveAlertDlg::onCheck );
1310  wxSizer* buttonsSizer = this->CreateSeparatedButtonSizer(wxOK|wxCANCEL);
1311 
1312  topsizer->Add(text);
1313  topsizer->Add(mcheck,0,wxGROW);
1314  topsizer->Add(buttonsSizer,0,wxGROW);
1315  SetSizer(topsizer, true);
1316  mSave = false;
1317  Layout();
1318  }

Here is the call graph for this function:

creaImageIO::RemoveAlertDlg::~RemoveAlertDlg ( )

Definition at line 1319 of file creaImageIOWxTreeView.cpp.

1319 {};

Member Function Documentation

bool creaImageIO::RemoveAlertDlg::isChecked ( )

Definition at line 1320 of file creaImageIOWxTreeView.cpp.

References mSave.

Referenced by creaImageIO::WxTreeView::RemoveSelected().

1321  {
1322  return mSave;
1323  }

Here is the caller graph for this function:

void creaImageIO::RemoveAlertDlg::onCheck ( wxCommandEvent &  Event)
private

Definition at line 1324 of file creaImageIOWxTreeView.cpp.

References mcheck, and mSave.

Referenced by RemoveAlertDlg().

1325  {
1326  mSave = mcheck->IsChecked();
1327  }

Here is the caller graph for this function:

Member Data Documentation

wxCheckBox* creaImageIO::RemoveAlertDlg::mcheck
private

Definition at line 253 of file creaImageIOWxTreeView.h.

Referenced by onCheck(), and RemoveAlertDlg().

bool creaImageIO::RemoveAlertDlg::mSave
private

Definition at line 252 of file creaImageIOWxTreeView.h.

Referenced by isChecked(), onCheck(), and RemoveAlertDlg().


The documentation for this class was generated from the following files: