Debian Codegraph @

CodeLite/TerminalEmulatorUI.h

raw
1 //////////////////////////////////////////////////////////////////////////////
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 // Copyright : (C) 2015 Eran Ifrah
5 // File name : TerminalEmulatorUI.h
6 //
7 // -------------------------------------------------------------------------
8 // A
9 // _____ _ _ _ _
10 // / __ \ | | | | (_) |
11 // | / \/ ___ __| | ___| | _| |_ ___
12 // | | / _ \ / _ |/ _ \ | | | __/ _ )
13 // | \__/\ (_) | (_| | __/ |___| | || __/
14 // \____/\___/ \__,_|\___\_____/_|\__\___|
15 //
16 // F i l e
17 //
18 // This program is free software; you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation; either version 2 of the License, or
21 // (at your option) any later version.
22 //
23 //////////////////////////////////////////////////////////////////////////////
24 //////////////////////////////////////////////////////////////////////////////
25
26 #ifndef TERMINALEMULATORUI_H
27 #define TERMINALEMULATORUI_H
28 #if wxUSE_GUI
29 #include "TerminalEmulatorUIBase.h"
30 #include "TerminalEmulator.h"
31
32 class WXDLLIMPEXP_CL TerminalEmulatorUI : public TerminalEmulatorUIBase
33 {
34 TerminalEmulator* m_terminal;
35 private:
36 void DoBindTerminal(TerminalEmulator* terminal);
37 void DoUnBindTerminal(TerminalEmulator* terminal);
38
39 public:
40 TerminalEmulatorUI(wxWindow* parent);
41 virtual ~TerminalEmulatorUI();
42
43 void Clear();
44 void SetTerminal(TerminalEmulator* terminal) ;
45 TerminalEmulator* GetTerminal() { return m_terminal; }
46 wxStyledTextCtrl* GetTerminalOutputWindow() { return m_stc; }
47
48 protected:
49 virtual void OnSendCommand(wxCommandEvent& event);
50 void OnProcessExit(clCommandEvent& e);
51 void OnProcessOutput(clCommandEvent& e);
52 };
53 #endif // LIBCODELITE_WITH_UI
54 #endif // TERMINALEMULATORUI_H