source: git/src/legprefs.cc @ 7c18431

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-datawalls-data-hanging-as-warning
Last change on this file since 7c18431 was 9eb58d0, checked in by Olly Betts <olly@…>, 21 years ago

Display of surface surveys works once more.

Surface surveys are now always white and dashed (removed options to colour them
by "depth" and have them non-dashed as they just clutter the UI and offer no
real benefit).

Juggled the View menu shortcuts now we've freed up a couple of letters.

GfxCore? no longer builds polyline arrays - there's no point when we're using
opengl, and this should be pushed into the "gla" layer in any non-opengl
implementation.

Sorted out initialisation properly. The initial scale doesn't vary correctly
with the survey size, but the scale values seem plausible. I suspect we're
feeding opengl the wrong numbers.

Don't regenerate the underground_legs display list when toggling tubes on/off

  • use a separate list for the tubes.

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

  • Property mode set to 100644
File size: 2.1 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_LINE = 2002;
35
36LegPrefs::LegPrefs(wxWindow* parent) : PanelDlgPage(parent, ID_LEG_PREFS)
37{
38    wxCheckBox* ug_legs = new wxCheckBox(this, ID_LEG_UG_LEGS, msg(/*Display underground survey legs*/357));
39    wxCheckBox* surf_legs = new wxCheckBox(this, ID_LEG_SURF_LEGS, msg(/*Display surface survey legs*/358));
40
41    wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
42
43    sizer->Add(ug_legs, 0 /* not vertically stretchable */, wxALIGN_TOP | wxBOTTOM, 0);
44    sizer->Add(10, 8);
45    sizer->Add(new wxStaticLine(this, ID_LEG_LINE), 0, wxEXPAND | wxRIGHT, 16);
46    sizer->Add(10, 8);
47    sizer->Add(surf_legs, 0 /* not vertically stretchable */, wxALIGN_TOP | wxBOTTOM, 4);
48    sizer->Add(col_surface, 0, wxALIGN_TOP | wxLEFT, 32);
49    sizer->Add(10, 4);
50    sizer->Add(dashed_surface, 0, wxALIGN_TOP | wxLEFT, 32);
51
52    SetAutoLayout(true);
53    SetSizer(sizer);
54}
55
56LegPrefs::~LegPrefs()
57{
58
59}
60
61const wxString LegPrefs::GetName()
62{
63    return "Legs";
64}
65
66const wxBitmap LegPrefs::GetIcon()
67{
68    return wxGetApp().LoadPreferencesIcon("legs");
69}
70
Note: See TracBrowser for help on using the repository browser.