view include/myframe.h @ 5:52697c869ce8

delete move&detect button.
author pyon@macmini
date Tue, 18 Oct 2011 07:53:48 +0900
parents 964129946db6
children 550c143ab194
line wrap: on
line source

// Filename   : myframe.h
// Last Change: 17-Oct-2011.
//

#ifndef __myframe__
#define __myframe__

#include "common.h"

class MyFrame : public wxFrame 
{
    DECLARE_EVENT_TABLE()
    private:
        wxImageList*      m_imageList;
        wxArrayString     m_undo;
    
    protected:
        wxMenuBar*        m_menubarFile;
        wxMenu*           m_menuFile;
        wxStatusBar*      m_statusBar;

        wxStaticText*     m_staticTextWork;
        wxDirPickerCtrl*  m_dirPickerWork;
        wxStaticText*     m_staticTextDrive;
        wxComboBox*       m_comboBoxDrive;
        wxStaticText*     m_staticTextDate;
        wxDatePickerCtrl* m_datePicker;
        wxStaticText*     m_staticTextCcn;
        wxComboBox*       m_comboBoxCcn;
        wxButton*         m_buttonMkDir;
        wxStaticText*     m_staticTextDist;
        wxTextCtrl*       m_textCtrlDist;
        
        wxStaticText*     m_staticTextName;
        wxStaticBitmap*   m_bitmapName;
        wxStaticText*     m_staticTextHhsno;
        wxStaticBitmap*   m_bitmapHhsno;
        wxStaticText*     m_staticTextGuess;
        wxTextCtrl*       m_textCtrlGuess;

        wxListCtrl*       m_listCtrlView;

        wxButton*         m_buttonDetect;
        wxButton*         m_buttonMove;
        //wxButton*         m_buttonMD;
        wxButton*         m_buttonDel;
        wxButton*         m_buttonUndo;
    
    public:
        MyFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
        ~MyFrame();

        void OnParam(wxCommandEvent& event);
        void OnMakeDir(wxCommandEvent& event);
        void GetImageInfo(wxListEvent& event);
        void ViewLarge(wxListEvent& event);
        void OnDetect(wxCommandEvent& event);
        void OnMove(wxCommandEvent& event);
        void OnMoveAndDetect(wxCommandEvent& event);
        void OnDelete(wxCommandEvent& event);
        void OnUndo(wxCommandEvent& event);
        void ReadyImage(void);
        //void MoveImage(void);
        // $B0J2<!$Dj7?$b$N(B
        void OnWinSize(wxSizeEvent& event);
        void OnWinMove(wxMoveEvent& event);
        void TellLocation( void );
        void OnOpenAppDir(wxCommandEvent& event);
        void OnQuit(wxCommandEvent& event);
        void SaveConfig(wxCloseEvent& event);
};

#endif // __myframe__