view myframe.h @ 0:ebc42d7a0010

First Release.
author pyon@macmini
date Fri, 24 Jan 2014 20:35:59 +0900
parents
children cc1f1fa544a4
line wrap: on
line source

// Filename   : myframe.h
// Last Change: 21-Jan-2014.
//
#ifndef __MYFRAME_H__
#define __MYFRAME_H__

#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/string.h>
#include <wx/stattext.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/textctrl.h>
#include <wx/sizer.h>
#include <wx/combobox.h>
#include <wx/filepicker.h>
#include <wx/button.h>
#include <wx/statusbr.h>
#include <wx/frame.h>

///////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////
/// Class MainFrame
///////////////////////////////////////////////////////////////////////////////
class MyFrame : public wxFrame 
{
    DECLARE_EVENT_TABLE()
	private:
        long     w, h;
        int      choice_type;
        wxString out_dir;
	
	protected:
		wxStaticText*    m_staticTextSource;
		wxTextCtrl*      m_textCtrlSource;
		wxStaticText*    m_staticTextConfig;
		wxStaticText*    m_staticTextType;
		wxComboBox*      m_comboBoxType;
		wxStaticText*    m_staticTextSize;
		wxStaticText*    m_staticTextWidth;
		wxTextCtrl*      m_textCtrlWidth;
		wxStaticText*    m_staticTextHeight;
		wxTextCtrl*      m_textCtrlHeight;
		wxStaticText*    m_staticTextOutput;
		wxDirPickerCtrl* m_dirPicker;
		wxButton*        m_buttonExec;
		wxButton*        m_buttonExit;
	
	public:
		MyFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
		~MyFrame();
        void OnExec( wxCommandEvent& WXUNUSED(event) );	
        void OnExit( wxCommandEvent& WXUNUSED(event) );	
        void WarnMessage( wxString msg );
        bool ConvertAFile( wxString file );
        bool ConvertFiles( wxString dir );
};

enum
{
    ID_EXEC = wxID_HIGHEST + 1,
    ID_EXIT,
};

#endif //__MYFRAME_H__