3 * wxbDataParser, class that receives and analyses data
4 * wxbPanel, main frame's notebook panels
6 * Nicolas Boichat, April 2004
10 Copyright (C) 2004 Kern Sibbald and John Walker
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 as published by the Free Software Foundation; either version 2
15 of the License, or (at your option) any later version.
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 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 #include "wx/wxprec.h"
37 * abstract class that can receive director information.
42 /* Creates a new wxbDataParser, and register it in wxbMainFrame */
45 /* Destroy a wxbDataParser, and unregister it in wxbMainFrame */
46 virtual ~wxbDataParser();
49 * Receives director information, forwarded by wxbMainFrame.
51 virtual void Print(wxString str, int status) = 0;
55 * abstract panel that can receive director information.
57 class wxbPanel : public wxPanel
60 wxbPanel(wxWindow* parent) : wxPanel(parent) {}
63 * Tab title in the notebook.
65 virtual wxString GetTitle() = 0;
68 * Enable or disable this panel
70 virtual void EnablePanel(bool enable = true) = 0;
74 * Receives director information, and splits it by line.
76 * datatokenizer[0] retrieves first line
78 class wxbDataTokenizer: public wxbDataParser, public wxArrayString
81 /* Creates a new wxbDataTokenizer */
84 /* Destroy a wxbDataTokenizer */
85 virtual ~wxbDataTokenizer();
88 * Receives director information, forwarded by wxbMainFrame.
90 virtual void Print(wxString str, int status);
92 /* Returns true if the last signal received was an end signal,
93 * indicating that no more data is available */