view include/bprint.h @ 8:4967d1e2b30c

Alert when not mask in batch print mode.
author pyon@macmini
date Fri, 01 Nov 2013 18:44:37 +0900
parents 76db82822e73
children 52958cd4a073
line wrap: on
line source

// Filename   : bprint.h
// Last Change: 18-Sep-2013.
//
#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_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 SetMark( long lmin, long lmax, double zmin, double zmax ) { m_lmin = lmin; m_lmax = lmax; m_zmin = zmin; m_zmax = zmax; }

        // 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,
};

#endif //__BPRINT_H__