source: git/src/printwx.h @ e4729d7

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereostereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
Last change on this file since e4729d7 was 79c239e, checked in by <nobody>, 20 years ago

This commit was manufactured by cvs2svn to create branch 'survex-1_1'.

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

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/* printwx.h */
2/* Device dependent part of Survex wxWindows driver */
3/* Copyright (C) 2004 Philip Underwood
4 * Copyright (C) 2004,2005 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20
21#include "wx.h"
22#include <wx/dialog.h>
23
24#include "avenprcore.h"
25
26enum {
27        svx_PRINT = 1200,
28        svx_PREVIEW,
29        svx_SCALE,
30        svx_BEARING,
31        svx_TILT,
32        svx_LEGS,
33        svx_STATIONS,
34        svx_NAMES,
35        svx_BORDERS,
36        svx_BLANKS,
37        svx_INFOBOX,
38        svx_SCALEBAR,
39        svx_PLAN,
40        svx_ELEV
41};
42
43class MainFrm;
44class wxComboBox;
45class wxStaticText;
46class wxSpinCtrl;
47class wxCheckBox;
48class wxSpinEvent;
49
50class svxPrintDlg : public wxDialog {
51protected:
52        layout m_layout;
53        wxComboBox* m_scale;
54        wxStaticText* m_printSize;
55        wxStaticText* m_tilttext;
56        wxSpinCtrl* m_bearing;
57        wxSpinCtrl* m_tilt;
58        wxCheckBox* m_legs;
59        wxCheckBox* m_stations;
60        wxCheckBox* m_names;
61        wxCheckBox* m_borders;
62//      wxCheckBox* m_blanks;
63        wxCheckBox* m_infoBox;
64        wxCheckBox* m_surface;
65        wxString m_File;
66        MainFrm* m_parent;
67
68        void LayoutToUI();
69        void UIToLayout();
70        void RecalcBounds();
71 public:
72        svxPrintDlg(MainFrm* parent, const wxString & filename,
73                    const wxString & title, const wxString & datestamp,
74                    double angle, double tilt_angle,
75                    bool labels, bool crosses, bool legs, bool surf);
76        ~svxPrintDlg();
77        void OnPrint(wxCommandEvent& event);
78        void OnPreview(wxCommandEvent& event);
79        void OnPlan(wxCommandEvent&);
80        void OnElevation(wxCommandEvent&);
81        void OnChangeSpin(wxSpinEvent& event);
82        void OnChange(wxCommandEvent& event);
83        void SomethingChanged();
84 private:
85        DECLARE_EVENT_TABLE()
86};
Note: See TracBrowser for help on using the repository browser.