/***************************************************************
* Name: TCOptions.h
* Author: Yap Chun Wei
* Created: 2007-08-20
* License: Public domain
**************************************************************/
#ifndef TCOPTIONS_H
#define TCOPTIONS_H
#include <wx/wxprec.h>
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include "wx/dirdlg.h"
#include "wx/fileconf.h"
#include "wx/filedlg.h"
#include <wx/stdpaths.h>
class TCOptions: public wxDialog
{
DECLARE_DYNAMIC_CLASS(TCOptions)
DECLARE_EVENT_TABLE()
private:
enum
{
ID_TEMPDIR = 10000,
ID_TEMPPATHBUTTON,
ID_DELMETHOD,
ID_ERASERPATH,
ID_ERASERPATHBUTTON,
ID_ERASERARGS,
ID_RESTOREDEFAULTS
};
public:
TCOptions();
TCOptions(wxWindow* parent, wxWindowID id, LPCTSTR caption, const wxPoint& pos, const wxSize& size, long style);
~TCOptions();
bool Create(wxWindow* parent, wxWindowID id, LPCTSTR caption, const wxPoint& pos, const wxSize& size, long style);
void CreateControls();
virtual bool TransferDataFromWindow();
virtual bool TransferDataToWindow();
void RestoreDefaults();
wxString tempPath_; ///< Temporary system directory to store exported directories and files.
int deleteTemp_; ///< Method to delete files in temporary directory.
wxString eraserFile_; ///< Path for Eraser commandline.
wxString eraserArgs_; ///< Eraser arguments.
protected:
void OnTempPath(wxCommandEvent& event);
void OnEraserPath(wxCommandEvent& event);
void OnRestoreDefaults(wxCommandEvent& event);
wxTextCtrl* tempPathCtrl_;
wxChoice* delMethodCtrl_;
wxTextCtrl* eraserFileCtrl_;
wxTextCtrl* eraserArgCtrl_;
};
#endif