Public Member Functions | Private Member Functions | Private Attributes

creaImageIO::RemoveAlertDlg Class Reference

#include <creaImageIOWxTreeView.h>

List of all members.

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 213 of file creaImageIOWxTreeView.h.


Constructor & Destructor Documentation

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

Definition at line 1264 of file creaImageIOWxTreeView.cpp.

References mcheck, mSave, and onCheck().

 :   wxDialog( parent, 
                  wxID_ANY, 
                  title,
                  wxDefaultPosition,
                  size,
                  wxDEFAULT_DIALOG_STYLE)
        {
            wxBoxSizer *topsizer = new wxBoxSizer(wxVERTICAL);

                //std::string out("To reload deleted patient, you should synchronize your database before.");  // JPR
                //wxTextCtrl *text = new wxTextCtrl(this, wxID_ANY,crea::std2wx(out),wxDefaultPosition, wxSize(500,20));
                wxTextCtrl *text = new wxTextCtrl(this, wxID_ANY,
                                        _T("To reload deleted patient, you should synchronize your database before."),
                                        wxDefaultPosition, wxSize(650,20));  // 650 vs 500 ? // JPRx
                mcheck = new wxCheckBox(this, 5478, _T("Do not display this warning again!"));
                Connect( mcheck->GetId(), wxEVT_COMMAND_CHECKBOX_CLICKED , (wxObjectEventFunction) &RemoveAlertDlg::onCheck ); 
                wxSizer* buttonsSizer = this->CreateSeparatedButtonSizer(wxOK|wxCANCEL);
                
                topsizer->Add(text);
                topsizer->Add(mcheck,0,wxGROW);
                topsizer->Add(buttonsSizer,0,wxGROW);
                SetSizer(topsizer, true);
                mSave = false;
                Layout();
        }

Here is the call graph for this function:

creaImageIO::RemoveAlertDlg::~RemoveAlertDlg (  ) 

Definition at line 1292 of file creaImageIOWxTreeView.cpp.

{};


Member Function Documentation

bool creaImageIO::RemoveAlertDlg::isChecked (  ) 

Definition at line 1293 of file creaImageIOWxTreeView.cpp.

References mSave.

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

        {
                return mSave;
        }

Here is the caller graph for this function:

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

Definition at line 1297 of file creaImageIOWxTreeView.cpp.

References mcheck, and mSave.

Referenced by RemoveAlertDlg().

        {
                mSave = mcheck->IsChecked();
        }

Here is the caller graph for this function:


Member Data Documentation

wxCheckBox* creaImageIO::RemoveAlertDlg::mcheck [private]

Definition at line 226 of file creaImageIOWxTreeView.h.

Referenced by onCheck(), and RemoveAlertDlg().

Definition at line 225 of file creaImageIOWxTreeView.h.

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


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