[79c239e] | 1 | /* printwx.h */ |
---|
[1324d6c] | 2 | /* Device dependent part of Survex wxWidgets driver */ |
---|
[79c239e] | 3 | /* Copyright (C) 2004 Philip Underwood |
---|
[5940815] | 4 | * Copyright (C) 2004,2005,2006 Olly Betts |
---|
[79c239e] | 5 | * |
---|
| 6 | * This program is free software; you can redistribute it and/or modify |
---|
| 7 | * it under the terms of the GNU General Public License as published by |
---|
| 8 | * the Free Software Foundation; either version 2 of the License, or |
---|
| 9 | * (at your option) any later version. |
---|
| 10 | * |
---|
| 11 | * This program is distributed in the hope that it will be useful, |
---|
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 14 | * GNU General Public License for more details. |
---|
| 15 | * |
---|
| 16 | * You should have received a copy of the GNU General Public License |
---|
| 17 | * along with this program; if not, write to the Free Software |
---|
[5940815] | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
[79c239e] | 19 | */ |
---|
| 20 | |
---|
| 21 | #include "wx.h" |
---|
| 22 | #include <wx/dialog.h> |
---|
| 23 | |
---|
| 24 | #include "avenprcore.h" |
---|
| 25 | |
---|
| 26 | class MainFrm; |
---|
| 27 | class wxComboBox; |
---|
| 28 | class wxStaticText; |
---|
| 29 | class wxSpinCtrl; |
---|
| 30 | class wxCheckBox; |
---|
| 31 | class wxSpinEvent; |
---|
| 32 | |
---|
[5940815] | 33 | // This dialog is also use for Export as well as Print. |
---|
[79c239e] | 34 | class svxPrintDlg : public wxDialog { |
---|
| 35 | protected: |
---|
| 36 | layout m_layout; |
---|
| 37 | wxComboBox* m_scale; |
---|
| 38 | wxStaticText* m_printSize; |
---|
| 39 | wxStaticText* m_tilttext; |
---|
| 40 | wxSpinCtrl* m_bearing; |
---|
| 41 | wxSpinCtrl* m_tilt; |
---|
| 42 | wxCheckBox* m_legs; |
---|
| 43 | wxCheckBox* m_stations; |
---|
| 44 | wxCheckBox* m_names; |
---|
| 45 | wxCheckBox* m_borders; |
---|
| 46 | // wxCheckBox* m_blanks; |
---|
| 47 | wxCheckBox* m_infoBox; |
---|
| 48 | wxCheckBox* m_surface; |
---|
| 49 | wxString m_File; |
---|
[ce403f1] | 50 | MainFrm* mainfrm; |
---|
[79c239e] | 51 | |
---|
| 52 | void LayoutToUI(); |
---|
| 53 | void UIToLayout(); |
---|
| 54 | void RecalcBounds(); |
---|
| 55 | public: |
---|
| 56 | svxPrintDlg(MainFrm* parent, const wxString & filename, |
---|
| 57 | const wxString & title, const wxString & datestamp, |
---|
| 58 | double angle, double tilt_angle, |
---|
[5940815] | 59 | bool labels, bool crosses, bool legs, bool surf, |
---|
| 60 | bool printing); |
---|
| 61 | void OnPrint(wxCommandEvent& event); |
---|
| 62 | void OnExport(wxCommandEvent& event); |
---|
[79c239e] | 63 | void OnPreview(wxCommandEvent& event); |
---|
| 64 | void OnPlan(wxCommandEvent&); |
---|
| 65 | void OnElevation(wxCommandEvent&); |
---|
[5940815] | 66 | void OnChangeSpin(wxSpinEvent& event); |
---|
| 67 | void OnChange(wxCommandEvent& event); |
---|
[79c239e] | 68 | void SomethingChanged(); |
---|
| 69 | private: |
---|
| 70 | DECLARE_EVENT_TABLE() |
---|
| 71 | }; |
---|