OSDN Git Service

Filter mode (development continued)
[molby/Molby.git] / wxSources / ConsoleFrame.h
1 /*
2  *  ConsoleFrame.h
3  *  Molby
4  *
5  *  Created by Toshi Nagata on 08/10/27.
6  *  Copyright 2008 Toshi Nagata. All rights reserved.
7  *
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation version 2 of the License.
11  
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  GNU General Public License for more details.
16  */
17
18 #ifndef __ConsoleFrame_h__
19 #define __ConsoleFrame_h__
20
21 #include "wx/mdi.h"
22 //#include "wx/richtext/richtextctrl.h"
23 #include "wx/textctrl.h"
24
25 class wxMenu;
26
27 class ConsoleFrame: public wxMDIChildFrame
28 {
29
30 public:
31         wxTextCtrl *textCtrl;
32         wxMenu *file_history_menu;
33         wxMenu *edit_menu;
34
35         ConsoleFrame(wxMDIParentFrame *parent, const wxString& title, const wxPoint& pos, const wxSize& size, long type);
36         virtual ~ConsoleFrame();
37
38         void OnCreate();
39         void OnEnterPressed(wxKeyEvent& event);
40         void OnKeyDown(wxKeyEvent &event);
41
42         static ConsoleFrame *CreateConsoleFrame(wxMDIParentFrame *parent);
43         void OnCloseWindow(wxCloseEvent &event);
44         void OnClose(wxCommandEvent &event);
45         void OnUpdateUI(wxUpdateUIEvent& event);
46
47         void OnCut(wxCommandEvent &event);
48         void OnCopy(wxCommandEvent &event);
49         void OnPaste(wxCommandEvent &event);
50         void OnClear(wxCommandEvent &event);
51         void EmptyBuffer(bool showRubyPrompt = true);
52
53 private:
54         DECLARE_EVENT_TABLE()
55 };
56
57 #endif /* __ConsoleFrame_h__ */