#include <creaImageIOWxCustomizeConfigPanel.h>

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. | |
| void | OnSaveConfig (wxCommandEvent &event) |
| Saves the configuration. | |
Private Attributes | |
| std::string | copyP |
| std::string | databaseP |
| std::string | syncEv |
| std::string | syncFr |
| wxTextCtrl * | copyPath |
| wxTextCtrl * | dbPath |
| wxTextCtrl * | syncEvent |
| wxTextCtrl * | syncFrequency |
| wxDialog * | dialog |
| WxGimmickView * | mView |
Definition at line 16 of file creaImageIOWxCustomizeConfigPanel.h.
| 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 | |||
| ) |
Definition at line 6 of file creaImageIOWxCustomizeConfigPanel.cpp.
References copyP, copyPath, databaseP, dbPath, GimmickDebugMessage, OnSaveConfig(), syncEv, syncEvent, syncFr, and syncFrequency.
: wxPanel( parent,
-1, wxDefaultPosition,
wxDefaultSize,
wxRESIZE_BORDER |
wxSYSTEM_MENU |
wxCLOSE_BOX |
wxMAXIMIZE_BOX |
wxMINIMIZE_BOX |
wxCAPTION
),
dialog(dial),
copyP (cPath),
databaseP(dPath),
syncEv(sEvent),
syncFr(sFreq),
mView(view)
{
GimmickDebugMessage(1,"WxCustomizeConfigPanel::WxCustomizeConfigPanel"
<<std::endl);
wxStaticText * cp=new wxStaticText(this,-1,_T(" Copy Path: "), wxPoint(5,10));
copyPath=new wxTextCtrl(this, wxID_ANY, crea::std2wx(copyP), wxPoint(150,10), wxSize(250,20));
wxStaticText * dp=new wxStaticText(this,-1,_T(" Database Path: "), wxPoint(5,40));
dbPath=new wxTextCtrl(this, wxID_ANY, crea::std2wx(databaseP), wxPoint(150,40), wxSize(250,20));
wxStaticText * se=new wxStaticText(this,-1,_T(" Synchronization Event: "), wxPoint(5,70));
syncEvent=new wxTextCtrl(this, wxID_ANY, crea::std2wx(syncEv), wxPoint(150,70), wxSize(250,20));
wxStaticText * sf=new wxStaticText(this,-1,_T(" Synchronization Frequency: "), wxPoint(5,100));
syncFrequency=new wxTextCtrl(this, wxID_ANY, crea::std2wx(syncFr), wxPoint(150,100), wxSize(250,20));
wxButton *save = new wxButton(this,wxID_ANY,_T("Save Changes"), wxPoint(5,130) );
Connect( save->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxCustomizeConfigPanel::OnSaveConfig );
Layout();
}

| creaImageIO::WxCustomizeConfigPanel::~WxCustomizeConfigPanel | ( | ) |
Destructor.
Definition at line 48 of file creaImageIOWxCustomizeConfigPanel.cpp.
References GimmickDebugMessage.
{
GimmickDebugMessage(1,"WxCustomizeConfigPanel::~WxCustomizeConfigPanel"
<<std::endl);
}
| void creaImageIO::WxCustomizeConfigPanel::OnSaveConfig | ( | wxCommandEvent & | event | ) |
Saves the configuration.
Definition at line 54 of file creaImageIOWxCustomizeConfigPanel.cpp.
References copyPath, dbPath, dialog, mView, creaImageIO::WxGimmickView::OnSaveSettingsCallback(), syncEvent, and syncFrequency.
Referenced by WxCustomizeConfigPanel().
{
mView->OnSaveSettingsCallback(crea::wx2std(copyPath->GetValue()),
crea::wx2std(dbPath->GetValue()),
crea::wx2std(syncEvent->GetValue()),
crea::wx2std(syncFrequency->GetValue()));
dialog->Destroy();
}


std::string creaImageIO::WxCustomizeConfigPanel::copyP [private] |
Definition at line 33 of file creaImageIOWxCustomizeConfigPanel.h.
Referenced by WxCustomizeConfigPanel().
wxTextCtrl* creaImageIO::WxCustomizeConfigPanel::copyPath [private] |
Definition at line 37 of file creaImageIOWxCustomizeConfigPanel.h.
Referenced by OnSaveConfig(), and WxCustomizeConfigPanel().
std::string creaImageIO::WxCustomizeConfigPanel::databaseP [private] |
Definition at line 34 of file creaImageIOWxCustomizeConfigPanel.h.
Referenced by WxCustomizeConfigPanel().
wxTextCtrl* creaImageIO::WxCustomizeConfigPanel::dbPath [private] |
Definition at line 38 of file creaImageIOWxCustomizeConfigPanel.h.
Referenced by OnSaveConfig(), and WxCustomizeConfigPanel().
wxDialog* creaImageIO::WxCustomizeConfigPanel::dialog [private] |
Definition at line 41 of file creaImageIOWxCustomizeConfigPanel.h.
Referenced by OnSaveConfig().
Definition at line 42 of file creaImageIOWxCustomizeConfigPanel.h.
Referenced by OnSaveConfig().
std::string creaImageIO::WxCustomizeConfigPanel::syncEv [private] |
Definition at line 35 of file creaImageIOWxCustomizeConfigPanel.h.
Referenced by WxCustomizeConfigPanel().
wxTextCtrl* creaImageIO::WxCustomizeConfigPanel::syncEvent [private] |
Definition at line 39 of file creaImageIOWxCustomizeConfigPanel.h.
Referenced by OnSaveConfig(), and WxCustomizeConfigPanel().
std::string creaImageIO::WxCustomizeConfigPanel::syncFr [private] |
Definition at line 36 of file creaImageIOWxCustomizeConfigPanel.h.
Referenced by WxCustomizeConfigPanel().
wxTextCtrl* creaImageIO::WxCustomizeConfigPanel::syncFrequency [private] |
Definition at line 40 of file creaImageIOWxCustomizeConfigPanel.h.
Referenced by OnSaveConfig(), and WxCustomizeConfigPanel().
1.7.1