view include/myframe.h @ 3:eea479fc2a28 default tip

redesign form.
author pyon@macmini
date Sun, 25 Nov 2012 12:59:11 +0900
parents deaf3f2d54b2
children
line wrap: on
line source

// Filename   : myframe.h
// Last Change: 25-Nov-2012.
//
#ifndef __MYFRAME_H__
#define __MYFRAME_H__

#include "common.h"

class MyFrame : public wxFrame 
{
    DECLARE_EVENT_TABLE()
	private:
        wxFileSystemWatcher* m_watcher;
	
	protected:
		wxMenuBar*		    m_menubar;
		wxMenu*		        m_menuFile;

		wxSearchCtrl*		m_searchCtrlFile;
		wxDirPickerCtrl*	m_dirPickerWatchDir;
		wxListCtrl*		    m_listCtrlWatchDir;
		wxChoice*		    m_choiceMove;
		wxStaticText*		m_staticText0;
		wxChoice*		    m_choiceSuffix;
		wxDirPickerCtrl*	m_dirPickerMoveTo;
		wxListCtrl*		    m_listCtrlMove;

		wxStaticText*		m_staticTextCmd0;
		wxTextCtrl*		    m_textCtrlCmd0;
		wxChoice*		    m_choiceCmd0;
		wxStaticText*		m_staticTextCmd1;
		wxTextCtrl*		    m_textCtrlCmd1;
		wxChoice*		    m_choiceCmd1;
		wxStaticText*		m_staticTextCmd2;
		wxTextCtrl*		    m_textCtrlCmd2;
		wxChoice*		    m_choiceCmd2;

		wxChoice*		    m_choiceFound;

		wxTextCtrl*		    m_textCtrlWait;
		wxStaticText*		m_staticText1;
		wxChoice*		    m_choiceNotFound;
		wxToggleButton*		m_toggleBtn;
	
	public:
		
		MyFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
		~MyFrame();
	
        void OnFileSystemEvent( wxFileSystemWatcherEvent& event );
        void OnWatch( wxCommandEvent& WXUNUSED(event) );
        void OnSetup( wxCommandEvent& WXUNUSED(event) );
        void OnSaveParams( wxCommandEvent& WXUNUSED(event) );

        void OnWinSize( wxSizeEvent& event );
        void OnWinMove( wxMoveEvent& WXUNUSED(event) );
        void TellLocation( void );
        void OnQuit( wxCommandEvent& WXUNUSED(event) );
        void OnAbout( wxCommandEvent& WXUNUSED(event) );
        void SaveConfig( wxCloseEvent& WXUNUSED(event) );
};

enum
{
    ID_MNAPPDIR = wxID_HIGHEST + 10,
    ID_MNSETUP,
    ID_MNSAVE,
    ID_MNABOUT,
    ID_TGLWATCH,
};


#endif //__MYFRAME_H__