]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/wx-console/wxbconfigfileeditor.h
2476fafaef02dec80ff3e14208d6785ea99a3a05
[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    Copyright (C) 2004-2006 Kern Sibbald
11
12    This program is free software; you can redistribute it and/or
13    modify it under the terms of the GNU General Public License
14    version 2 as amended with additional clauses defined in the
15    file LICENSE in the main source directory.
16
17    This program is distributed in the hope that it will be useful,
18    but WITHOUT ANY WARRANTY; without even the implied warranty of
19    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
20    the file LICENSE for additional details.
21
22  */
23
24 #include "wx/wxprec.h"
25 #include "wx/wx.h"
26 #include <wx/dialog.h>
27
28 #include <wx/textctrl.h>
29
30 class wxbConfigFileEditor : public wxDialog {
31 public:
32         wxbConfigFileEditor(wxWindow* parent, wxString filename);
33         virtual ~wxbConfigFileEditor();
34 private:
35    wxString filename;
36
37    wxTextCtrl* textCtrl;
38
39    bool firstpaint;
40
41    void OnSave(wxCommandEvent& event);
42    void OnQuit(wxCommandEvent& event);
43    void OnPaint(wxPaintEvent& event);
44
45    DECLARE_EVENT_TABLE()
46 };