view include/myframe.h @ 4:a505f7417742

v0.1 release
author pyon@macmini
date Thu, 06 Oct 2011 07:56:12 +0900
parents a5bddd859104
children 3b734fd6ee2b
line wrap: on
line source

// Filename   : myframe.h
// Last Change: 05-Oct-2011.
//
#ifndef MYFRAME
#define MYFRAME
#include "wx/wxprec.h"

#ifndef WX_PRECOMP
    #include <wx/wx.h>
    #include <wx/icon.h>
    #include <wx/dir.h>
    #include <wx/menu.h>
    #include <wx/string.h>
    #include <wx/statusbr.h>
    #include <wx/stattext.h>
    #include <wx/button.h>
    #include <wx/datectrl.h>
    #include <wx/dateevt.h>
    #include <wx/textctrl.h>
    #include <wx/filepicker.h>
    #include <wx/filename.h>
    #include <wx/listctrl.h>
    #include <wx/dir.h>
    #include <wx/file.h>
    #include <wx/tokenzr.h>
    #include <wx/stdpaths.h>
    #include <wx/sizer.h>
    #include <wx/combobox.h>
    #include <wx/frame.h>
#endif


//////////////////////////////////////////////////////////////////////////
class MyFrame : public wxFrame 
{
    DECLARE_EVENT_TABLE()
public:
    wxMenuBar*        m_menubar;
    wxMenu*           m_menuFile;
    wxStatusBar*      m_statusBar;

    wxStaticText*     m_staticTextWork;
    wxDirPickerCtrl*  m_dirPickerWork;
    wxButton*         m_buttonDetWhite;

    wxStaticText*     m_staticTextMoveTo;
    wxComboBox*       m_comboBoxMoveDrive;
    wxDatePickerCtrl* m_datePickerCcn;
    wxComboBox*       m_comboBoxCcn;
    wxButton*         m_buttonSetDir;
    wxButton*         m_buttonMkDir;

    wxStaticText*     m_staticTextDummy;
    wxTextCtrl*       m_textCtrlMoveDir;
    wxButton*         m_buttonDoMove;

    wxListCtrl*       m_listCtrl;

    MyFrame( wxWindow* parent, wxWindowID id, const wxString& title );
    ~MyFrame();

    void OnSize( wxSizeEvent& event );
    void OnMove( wxMoveEvent& event );
    void OnQuit( wxCommandEvent& event );
    void OnAbout( wxCommandEvent& event );
    void OnOpenWorkDir(wxCommandEvent& event);
    void OnDetectWhite( wxCommandEvent& event );
    void SetDir( wxCommandEvent& event );
    void MakeDir( wxCommandEvent& event );
    void MoveImages( wxCommandEvent& event );
    void SaveConfig( wxCloseEvent& event );
    void TellLocation( void );
};

#endif 
//__MYFRAME__