view include/bprint.h @ 22:92188f60323d default tip

Implement Masking function on Preview Dialog.
author pyon@macmini
date Sat, 04 Apr 2015 17:23:46 +0900
parents 52958cd4a073
children
line wrap: on
line source

// Filename   : bprint.h
// Last Change: 2015-04-04 10:30:01.
//
#ifndef __BPRINT_H__
#define __BPRINT_H__

#include "common.h"

class FrameBatchPrint : public wxDialog
{
    DECLARE_EVENT_TABLE()
	private:
        wxRect      m_mask1;
        wxRect      m_mask2;
        wxRect      m_mask3;
        wxRect      m_mask1old;
        wxRect      m_mask2old;
        wxRect      m_mask3old;
        long        m_lmin, m_lmax;
        double      m_zmin, m_zmax;
	
	protected:
		wxGrid*     m_grid;
		wxButton*   m_buttonClear;
		wxButton*   m_buttonPrint;
		wxButton*   m_buttonMaskPrint;
		wxButton*   m_buttonLdLog;
		wxButton*   m_buttonClose;
	
	public:
		FrameBatchPrint( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
		~FrameBatchPrint();
	
        void SetGridReadOnly( void );
        void WriteLog( wxArrayString logline );
        void OnInput( wxGridEvent& event );
        void OnClear( wxCommandEvent& WXUNUSED(event) );
        void OnPrint( wxCommandEvent& WXUNUSED(event) );
        void OnMaskPrint( wxCommandEvent& WXUNUSED(event) );
        void OnLoadLog( wxCommandEvent& WXUNUSED(event) );
        void SetMark( long lmin, long lmax, double zmin, double zmax ) { m_lmin = lmin; m_lmax = lmax; m_zmin = zmin; m_zmax = zmax; }
        void LoadCSV( wxString file );

        // Accessor
        void SetMask1( wxRect rect ) { m_mask1 = rect; }
        void SetMask2( wxRect rect ) { m_mask2 = rect; }
        void SetMask3( wxRect rect ) { m_mask3 = rect; }
        void SetMask1Old( wxRect rect ) { m_mask1old = rect; }
        void SetMask2Old( wxRect rect ) { m_mask2old = rect; }
        void SetMask3Old( wxRect rect ) { m_mask3old = rect; }
};

enum
{
    ID_BPCLEAR = wxID_HIGHEST + 50,
    ID_BPPRINT,
    ID_BPFFMP,
    ID_BPLDLOG,
};

#endif //__BPRINT_H__