Public Member Functions | Private Attributes

creaImageIO::WxCustomizeConfigPanel Class Reference
[Top level graphical user interfaces]

#include <creaImageIOWxCustomizeConfigPanel.h>

Collaboration diagram for creaImageIO::WxCustomizeConfigPanel:
Collaboration graph
[legend]

List of all members.

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
WxGimmickViewmView

Detailed Description

Definition at line 16 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 
)

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(); 
  }

Here is the call graph for this function:

creaImageIO::WxCustomizeConfigPanel::~WxCustomizeConfigPanel (  ) 

Destructor.

Definition at line 48 of file creaImageIOWxCustomizeConfigPanel.cpp.

References GimmickDebugMessage.

  {
    GimmickDebugMessage(1,"WxCustomizeConfigPanel::~WxCustomizeConfigPanel"
                        <<std::endl);
  }


Member Function Documentation

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();
  }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 33 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by WxCustomizeConfigPanel().

Definition at line 37 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by OnSaveConfig(), and WxCustomizeConfigPanel().

Definition at line 34 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by WxCustomizeConfigPanel().

Definition at line 38 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by OnSaveConfig(), and WxCustomizeConfigPanel().

Definition at line 41 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by OnSaveConfig().

Definition at line 42 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by OnSaveConfig().

Definition at line 35 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by WxCustomizeConfigPanel().

Definition at line 39 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by OnSaveConfig(), and WxCustomizeConfigPanel().

Definition at line 36 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by WxCustomizeConfigPanel().

Definition at line 40 of file creaImageIOWxCustomizeConfigPanel.h.

Referenced by OnSaveConfig(), and WxCustomizeConfigPanel().


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