Mercurial > mercurial > hgweb_searcher03.cgi
comparison src/bprint.cpp @ 3:1a64119ab257
Equipment Regist print-target by Drag & Drop.
author | pyon@macmini |
---|---|
date | Tue, 27 Aug 2013 18:50:00 +0900 |
parents | c066fde99517 |
children | fdba695b99f1 |
comparison
equal
deleted
inserted
replaced
2:c066fde99517 | 3:1a64119ab257 |
---|---|
1 // Filename : bprint.cpp | 1 // Filename : bprint.cpp |
2 // Last Change: 23-Aug-2013. | 2 // Last Change: 27-Aug-2013. |
3 // | 3 // |
4 | 4 |
5 #include "bprint.h" | 5 #include "bprint.h" |
6 #include "marksheet.h" | 6 #include "marksheet.h" |
7 #include "dndfile.h" | |
7 #include "db.h" | 8 #include "db.h" |
8 | 9 |
9 FrameBatchPrint::FrameBatchPrint( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) | 10 FrameBatchPrint::FrameBatchPrint( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) |
10 : wxDialog( parent, id, title, pos, size, style ) | 11 : wxDialog( parent, id, title, pos, size, style ) |
11 { | 12 { |
34 m_grid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE ); | 35 m_grid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE ); |
35 m_grid->SetColSize( 0, 100 ); | 36 m_grid->SetColSize( 0, 100 ); |
36 m_grid->SetColSize( 1, 100 ); | 37 m_grid->SetColSize( 1, 100 ); |
37 m_grid->SetColSize( 2, 220 ); | 38 m_grid->SetColSize( 2, 220 ); |
38 m_grid->SetColSize( 3, 70 ); | 39 m_grid->SetColSize( 3, 70 ); |
40 m_grid->ShowScrollbars( wxSHOW_SB_NEVER, wxSHOW_SB_ALWAYS ); | |
39 | 41 |
40 // Rows | 42 // Rows |
41 m_grid->EnableDragRowSize( true ); | 43 m_grid->EnableDragRowSize( true ); |
42 m_grid->SetRowLabelSize( 30 ); | 44 m_grid->SetRowLabelSize( 30 ); |
43 m_grid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE ); | 45 m_grid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE ); |
67 this->SetSizer( bSizerTop ); | 69 this->SetSizer( bSizerTop ); |
68 this->Layout(); | 70 this->Layout(); |
69 | 71 |
70 this->Centre( wxBOTH ); | 72 this->Centre( wxBOTH ); |
71 | 73 |
74 this->SetDropTarget( new DnDFile( m_grid ) ); | |
72 SetGridReadOnly(); | 75 SetGridReadOnly(); |
73 } | 76 } |
74 | 77 |
75 FrameBatchPrint::~FrameBatchPrint() | 78 FrameBatchPrint::~FrameBatchPrint() |
76 { | 79 { |