OpenCPN Partial API docs
Loading...
Searching...
No Matches
load_errors_dlg.h
1/**************************************************************************
2 * Copyright (C) 2022 Alec Leamas *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, see <https://www.gnu.org/licenses/>. *
16 **************************************************************************/
17
18#ifndef LOAD_ERRORS_DLG_H_
19#define LOAD_ERRORS_DLG_H_
20
21#include <wx/event.h>
22#include <wx/window.h>
23
24#include "observable_evtvar.h"
25
29class LoadErrorsDlgCtrl : public wxEvtHandler {
30public:
31 LoadErrorsDlgCtrl(wxWindow* parent);
32
33private:
34 ObservableListener load_complete_listener;
35 wxWindow* m_parent;
36};
37
38#endif // LOAD_ERRORS_DLG_H_
Run a dialog if there are load errors encountered in plugin_loader.
Keeps listening over its lifespan, removes itself on destruction.
Definition observable.h:155
A common variable shared between producer and consumer which supports Listen() and Notify().