creaImageIO_lib
creaImageIO::WxCustomizeConfigPanel Class Reference

#include <creaImageIOWxCustomizeConfigPanel.h>

Inheritance diagram for creaImageIO::WxCustomizeConfigPanel:
Collaboration diagram for creaImageIO::WxCustomizeConfigPanel:

Public Member Functions

 WxCustomizeConfigPanel ()
 
 WxCustomizeConfigPanel (wxWindow *parent, wxDialog *dial, WxGimmickView *view, const std::string &cPath, const std::string &dPath, const std::string &sEvent, const std::string &sFreq)
 
 ~WxCustomizeConfigPanel ()
 Destructor. More...
 
void OnSaveConfig (wxCommandEvent &event)
 Saves the configuration. More...
 

Private Attributes

std::string copyP
 
std::string databaseP
 
std::string syncEv
 
std::string syncFr
 
wxTextCtrl * copyPath
 
wxTextCtrl * dbPath
 
wxTextCtrl * syncEvent
 
wxTextCtrl * syncFrequency
 
wxDialog * dialog
 
WxGimmickViewmView
 

Detailed Description

Definition at line 44 of file creaImageIOWxCustomizeConfigPanel.h.

Constructor & Destructor Documentation

creaImageIO::WxCustomizeConfigPanel::WxCustomizeConfigPanel ( )
creaImageIO::WxCustomizeConfigPanel::WxCustomizeConfigPanel ( wxWindow *  parent,
wxDialog *  dial,
WxGimmickView view,
const std::string &  cPath,
const std::string &  dPath,
const std::string &  sEvent,
const std::string &  sFreq 
)

fix warning: unused variable cp

fix warning: unused variable dp

fix warning: unused variable se

fix warning: unused variable sf

Definition at line 34 of file creaImageIOWxCustomizeConfigPanel.cpp.

References copyP, copyPath, databaseP, dbPath, GimmickDebugMessage, OnSaveConfig(), syncEv, syncEvent, syncFr, and syncFrequency.

38  : wxPanel( parent,
39  -1, wxDefaultPosition,
40  wxDefaultSize,
41  wxRESIZE_BORDER |
42  wxSYSTEM_MENU |
43  wxCLOSE_BOX |
44  wxMAXIMIZE_BOX |
45  wxMINIMIZE_BOX |
46  wxCAPTION
47  ),
48  dialog(dial),
49  copyP (cPath),
50  databaseP(dPath),
51  syncEv(sEvent),
52  syncFr(sFreq),
53  mView(view)
54  {
55  GimmickDebugMessage(1,"WxCustomizeConfigPanel::WxCustomizeConfigPanel"
56  <<std::endl);
58  wxStaticText * cp=new wxStaticText(this,-1,_T(" Copy Path: "), wxPoint(5,10));
59  copyPath=new wxTextCtrl(this, wxID_ANY, crea::std2wx(copyP), wxPoint(150,10), wxSize(250,20));
60 
62  wxStaticText * dp=new wxStaticText(this,-1,_T(" Database Path: "), wxPoint(5,40));
63  dbPath=new wxTextCtrl(this, wxID_ANY, crea::std2wx(databaseP), wxPoint(150,40), wxSize(250,20));
64 
66  wxStaticText * se=new wxStaticText(this,-1,_T(" Synchronization Event: "), wxPoint(5,70));
67  syncEvent=new wxTextCtrl(this, wxID_ANY, crea::std2wx(syncEv), wxPoint(150,70), wxSize(250,20));
68 
70  wxStaticText * sf=new wxStaticText(this,-1,_T(" Synchronization Frequency: "), wxPoint(5,100));
71  syncFrequency=new wxTextCtrl(this, wxID_ANY, crea::std2wx(syncFr), wxPoint(150,100), wxSize(250,20));
72 
73  wxButton *save = new wxButton(this,wxID_ANY,_T("Save Changes"), wxPoint(5,130) );
74  Connect( save->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxCustomizeConfigPanel::OnSaveConfig );
75 
76  Layout();
77  }

Here is the call graph for this function:

creaImageIO::WxCustomizeConfigPanel::~WxCustomizeConfigPanel ( )

Destructor.

Definition at line 80 of file creaImageIOWxCustomizeConfigPanel.cpp.

References GimmickDebugMessage.

81  {
82  GimmickDebugMessage(1,"WxCustomizeConfigPanel::~WxCustomizeConfigPanel"
83  <<std::endl);
84  }

Member Function Documentation

void creaImageIO::WxCustomizeConfigPanel::OnSaveConfig ( wxCommandEvent &  event)

Saves the configuration.

Definition at line 86 of file creaImageIOWxCustomizeConfigPanel.cpp.

References copyPath, dbPath, dialog, mView, creaImageIO::WxGimmickView::OnSaveSettingsCallback(), syncEvent, and syncFrequency.

Referenced by WxCustomizeConfigPanel().

87  {
88  mView->OnSaveSettingsCallback(crea::wx2std(copyPath->GetValue()),
89  crea::wx2std(dbPath->GetValue()),
90  crea::wx2std(syncEvent->GetValue()),
91  crea::wx2std(syncFrequency->GetValue()));
92  dialog->Destroy();
93  }

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::string creaImageIO::WxCustomizeConfigPanel::copyP
private

Definition at line 61 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by WxCustomizeConfigPanel().

wxTextCtrl* creaImageIO::WxCustomizeConfigPanel::copyPath
private

Definition at line 65 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by OnSaveConfig(), and WxCustomizeConfigPanel().

std::string creaImageIO::WxCustomizeConfigPanel::databaseP
private

Definition at line 62 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by WxCustomizeConfigPanel().

wxTextCtrl* creaImageIO::WxCustomizeConfigPanel::dbPath
private

Definition at line 66 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by OnSaveConfig(), and WxCustomizeConfigPanel().

wxDialog* creaImageIO::WxCustomizeConfigPanel::dialog
private

Definition at line 69 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by OnSaveConfig().

WxGimmickView* creaImageIO::WxCustomizeConfigPanel::mView
private

Definition at line 70 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by OnSaveConfig().

std::string creaImageIO::WxCustomizeConfigPanel::syncEv
private

Definition at line 63 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by WxCustomizeConfigPanel().

wxTextCtrl* creaImageIO::WxCustomizeConfigPanel::syncEvent
private

Definition at line 67 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by OnSaveConfig(), and WxCustomizeConfigPanel().

std::string creaImageIO::WxCustomizeConfigPanel::syncFr
private

Definition at line 64 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by WxCustomizeConfigPanel().

wxTextCtrl* creaImageIO::WxCustomizeConfigPanel::syncFrequency
private

Definition at line 68 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by OnSaveConfig(), and WxCustomizeConfigPanel().


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