source: git/src/printwx.h @ ac7e4da

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
Last change on this file since ac7e4da was 1324d6c, checked in by Olly Betts <olly@…>, 15 years ago

Say "wxWidgets" instead of "wxWindows" consistently.
Require wxWidgets 2.6.0 or newer - 2.4 is really old now.

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@3341 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 2.1 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 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
26class MainFrm;
27class wxComboBox;
28class wxStaticText;
29class wxSpinCtrl;
30class wxCheckBox;
31class wxSpinEvent;
32
33// This dialog is also use for Export as well as Print.
34class svxPrintDlg : public wxDialog {
35protected:
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;
50        MainFrm* mainfrm;
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,
59                    bool labels, bool crosses, bool legs, bool surf,
60                    bool printing);
61        ~svxPrintDlg();
62        void OnPrint(wxCommandEvent& event);
63        void OnExport(wxCommandEvent& event);
64        void OnPreview(wxCommandEvent& event);
65        void OnPlan(wxCommandEvent&);
66        void OnElevation(wxCommandEvent&);
67        void OnChangeSpin(wxSpinEvent& event);
68        void OnChange(wxCommandEvent& event);
69        void SomethingChanged();
70 private:
71        DECLARE_EVENT_TABLE()
72};
Note: See TracBrowser for help on using the repository browser.