source: git/src/printwx.h @ 5627cbb

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
Last change on this file since 5627cbb was 5627cbb, checked in by Olly Betts <olly@…>, 14 years ago
  • Fix to build with a "unicode" build of wx.
  • Add "Copy" button to the About dialog to copy the system info to the clipboard.
  • List OpenGL extensions last, since there are usually lots of them with a modern gfx card.
  • When processing survey data, auto-scroll the log window until we've reported a warning or error.
  • Put the survey data log window in a splitter in the standard frame rather than having a separate frame for it.

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@3356 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        void OnPrint(wxCommandEvent& event);
62        void OnExport(wxCommandEvent& event);
63        void OnPreview(wxCommandEvent& event);
64        void OnPlan(wxCommandEvent&);
65        void OnElevation(wxCommandEvent&);
66        void OnChangeSpin(wxSpinEvent& event);
67        void OnChange(wxCommandEvent& event);
68        void SomethingChanged();
69 private:
70        DECLARE_EVENT_TABLE()
71};
Note: See TracBrowser for help on using the repository browser.