source: git/src/printwx.h @ 76882cb

RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-datawalls-data-hanging-as-warning
Last change on this file since 76882cb was 7b55ac2, checked in by Olly Betts <olly@…>, 11 years ago

lib/survex.pot,src/: Hide the "View" box for GPX export. Add
checkboxes for "Entrances", "Fixed Points" and "Exported Stations"
for GPX export (currently non-functional). Prepare for allowing
text height, marker size, and grid spacing to be set from aven (as
cad3d allows).

  • Property mode set to 100644
File size: 2.3 KB
Line 
1/* printwx.h */
2/* Device dependent part of Survex wxWidgets driver */
3/* Copyright (C) 2004 Philip Underwood
4 * Copyright (C) 2004,2005,2006,2011,2012,2013 Olly Betts
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
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19 */
20
21#include "wx.h"
22#include <wx/dialog.h>
23
24#include "avenprcore.h"
25
26// The Gnome print dialog provides its own preview, as does Mac OS X.
27#if !defined __WXMAC__ && !defined wxUSE_LIBGNOMEPRINT
28# define AVEN_PRINT_PREVIEW
29#endif
30
31class MainFrm;
32class wxComboBox;
33class wxStaticText;
34class wxSpinCtrl;
35class wxSpinEvent;
36
37// This dialog is also use for Export as well as Print.
38class svxPrintDlg : public wxDialog {
39        layout m_layout;
40        wxComboBox* m_scale;
41        wxBoxSizer* m_scalebox;
42        wxBoxSizer* m_viewbox;
43        wxChoice* m_format;
44        wxStaticText* m_printSize;
45        wxSpinCtrl* m_bearing;
46        wxSpinCtrl* m_tilt;
47//      wxCheckBox* m_blanks;
48        wxString m_File;
49        MainFrm* mainfrm;
50
51        void LayoutToUI();
52        void UIToLayout();
53        void RecalcBounds();
54        void SomethingChanged(int control_id);
55 public:
56        svxPrintDlg(MainFrm* parent, const wxString & filename,
57                    const wxString & title, const wxString & datestamp,
58                    double angle, double tilt_angle,
59                    bool labels, bool crosses, bool legs, bool surf,
60                    bool tubes, bool printing);
61        void OnPrint(wxCommandEvent& event);
62        void OnExport(wxCommandEvent& event);
63#ifdef AVEN_PRINT_PREVIEW
64        void OnPreview(wxCommandEvent& event);
65#endif
66        void OnPlan(wxCommandEvent&);
67        void OnElevation(wxCommandEvent&);
68        void OnPlanUpdate(wxUpdateUIEvent& e);
69        void OnElevationUpdate(wxUpdateUIEvent& e);
70        void OnChangeSpin(wxSpinEvent& event);
71        void OnChange(wxCommandEvent& event);
72 private:
73        DECLARE_EVENT_TABLE()
74};
Note: See TracBrowser for help on using the repository browser.