source: git/src/cavernlog.h @ 0e81a88

RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
Last change on this file since 0e81a88 was 0e81a88, checked in by Olly Betts <olly@…>, 9 years ago

lib/survex.pot,src/cavernlog.cc,src/cavernlog.h: Add "Save Log"
button to Aven's cavern log window.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/* cavernlog.h
2 * Run cavern inside an Aven window
3 *
4 * Copyright (C) 2005,2006,2010,2015 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#ifndef SURVEX_CAVERNLOG_H
22#define SURVEX_CAVERNLOG_H
23
24#include "wx.h"
25#include <wx/html/htmlwin.h>
26
27#include <string>
28
29class MainFrm;
30
31class CavernLogWindow : public wxHtmlWindow {
32    wxString filename;
33
34    MainFrm * mainfrm;
35
36    bool init_done;
37
38    wxString survey;
39
40    std::string log_txt;
41
42  public:
43    CavernLogWindow(MainFrm * mainfrm_, const wxString & survey_, wxWindow * parent);
44
45    /** Process survey data in file.
46     *
47     *  @return -2 on failure to run cavern, -1 on error from cavern, or the
48     *          number of warnings if no errors.
49     */
50    int process(const wxString &file);
51
52    virtual void OnLinkClicked(const wxHtmlLinkInfo &link);
53
54    void OnReprocess(wxCommandEvent &);
55
56    void OnSave(wxCommandEvent &);
57
58    void OnOK(wxCommandEvent &);
59
60    DECLARE_EVENT_TABLE()
61};
62
63#endif
Note: See TracBrowser for help on using the repository browser.