]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/wx-console/wxbconfigfileeditor.h
kes Fix code to check for two resources of same name. It forgot
[bacula/bacula] / bacula / src / wx-console / wxbconfigfileeditor.h
1 /*
2  *
3  *    Configuration file editor
4  *
5  *    Nicolas Boichat, May 2004
6  *
7  *    Version $Id$
8  */
9 /*
10    Bacula® - The Network Backup Solution
11
12    Copyright (C) 2004-2006 Free Software Foundation Europe e.V.
13
14    The main author of Bacula is Kern Sibbald, with contributions from
15    many others, a complete list can be found in the file AUTHORS.
16    This program is Free Software; you can redistribute it and/or
17    modify it under the terms of version two of the GNU General Public
18    License as published by the Free Software Foundation plus additions
19    that are listed in the file LICENSE.
20
21    This program is distributed in the hope that it will be useful, but
22    WITHOUT ANY WARRANTY; without even the implied warranty of
23    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24    General Public License for more details.
25
26    You should have received a copy of the GNU General Public License
27    along with this program; if not, write to the Free Software
28    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
29    02110-1301, USA.
30
31    Bacula® is a registered trademark of John Walker.
32    The licensor of Bacula is the Free Software Foundation Europe
33    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
34    Switzerland, email:ftf@fsfeurope.org.
35 */
36
37 #include "wx/wxprec.h"
38 #include "wx/wx.h"
39 #include <wx/dialog.h>
40
41 #include <wx/textctrl.h>
42
43 class wxbConfigFileEditor : public wxDialog {
44 public:
45         wxbConfigFileEditor(wxWindow* parent, wxString filename);
46         virtual ~wxbConfigFileEditor();
47 private:
48    wxString filename;
49
50    wxTextCtrl* textCtrl;
51
52    bool firstpaint;
53
54    void OnSave(wxCommandEvent& event);
55    void OnQuit(wxCommandEvent& event);
56    void OnPaint(wxPaintEvent& event);
57
58    DECLARE_EVENT_TABLE()
59 };