source: git/src/legprefs.cc @ 3ac23153

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernlogstereowalls-datawalls-data-hanging-as-warning
Last change on this file since 3ac23153 was cbfa50d, checked in by Olly Betts <olly@…>, 21 years ago

Sorted out config.h inclusion, GL header inclusion, and removed some
needless inclusion of wx headers.

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

  • Property mode set to 100644
File size: 2.5 KB
Line 
1//
2//  legprefs.cc
3//
4//  Preferences page for survey legs.
5//
6//  Copyright (C) 2002 Mark R. Shinwell
7//
8//  This program is free software; you can redistribute it and/or modify
9//  it under the terms of the GNU General Public License as published by
10//  the Free Software Foundation; either version 2 of the License, or
11//  (at your option) any later version.
12//
13//  This program is distributed in the hope that it will be useful,
14//  but WITHOUT ANY WARRANTY; without even the implied warranty of
15//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16//  GNU General Public License for more details.
17//
18//  You should have received a copy of the GNU General Public License
19//  along with this program; if not, write to the Free Software
20//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21//
22
23#ifdef HAVE_CONFIG_H
24#include <config.h>
25#endif
26
27#include "legprefs.h"
28#include "message.h"
29#include <wx/statline.h>
30
31static const wxWindowID ID_LEG_PREFS = 1003;
32static const wxWindowID ID_LEG_UG_LEGS = 2000;
33static const wxWindowID ID_LEG_SURF_LEGS = 2001;
34static const wxWindowID ID_LEG_COLOUR_SURFACE = 2002;
35static const wxWindowID ID_LEG_DASHED_SURFACE = 2003;
36static const wxWindowID ID_LEG_LINE = 2004;
37
38LegPrefs::LegPrefs(wxWindow* parent) : PanelDlgPage(parent, ID_LEG_PREFS)
39{
40    wxCheckBox* ug_legs = new wxCheckBox(this, ID_LEG_UG_LEGS, msg(/*Display underground survey legs*/357));
41    wxCheckBox* surf_legs = new wxCheckBox(this, ID_LEG_SURF_LEGS, msg(/*Display surface survey legs*/358));
42    wxCheckBox* col_surface = new wxCheckBox(this, ID_LEG_COLOUR_SURFACE,
43                                             msg(/*Colour surface surveys by depth*/359));
44    wxCheckBox* dashed_surface = new wxCheckBox(this, ID_LEG_DASHED_SURFACE,
45                                                msg(/*Draw surface legs with dashed lines*/360));
46
47    wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
48
49    sizer->Add(ug_legs, 0 /* not vertically stretchable */, wxALIGN_TOP | wxBOTTOM, 0);
50    sizer->Add(10, 8);
51    sizer->Add(new wxStaticLine(this, ID_LEG_LINE), 0, wxEXPAND | wxRIGHT, 16);
52    sizer->Add(10, 8);
53    sizer->Add(surf_legs, 0 /* not vertically stretchable */, wxALIGN_TOP | wxBOTTOM, 4);
54    sizer->Add(col_surface, 0, wxALIGN_TOP | wxLEFT, 32);
55    sizer->Add(10, 4);
56    sizer->Add(dashed_surface, 0, wxALIGN_TOP | wxLEFT, 32);
57
58    SetAutoLayout(true);
59    SetSizer(sizer);
60}
61
62LegPrefs::~LegPrefs()
63{
64
65}
66
67const wxString LegPrefs::GetName()
68{
69    return "Legs";
70}
71
72const wxBitmap LegPrefs::GetIcon()
73{
74    return wxGetApp().LoadPreferencesIcon("legs");
75}
76
Note: See TracBrowser for help on using the repository browser.