Click here to Skip to main content
15,885,244 members
Articles / Desktop Programming / MFC

TCExplorer - Portable Software to Import, Export, Delete, Rename, View, Edit and Execute Files in TrueCrypt Containers

Rate me:
Please Sign up or sign in to vote.
4.71/5 (13 votes)
9 Oct 20079 min read 208.2K   2.5K   52  
A portable software to import, export, delete, rename, view, edit and execute files in TrueCrypt containers without requiring administrative privileges
/***************************************************************
 * 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

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Researcher
Singapore Singapore
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions