NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
wxTermContainer.h
Go to the documentation of this file.
1
2// Name: wxTermContainer.h
3// Purpose:
4// Author:
5// Modified by:
6// Created: 03/18/04 01:08:08
7// RCS-ID:
8// Copyright:
9// Licence:
11
12#ifndef _WXTERMCONTAINER_H_
13#define _WXTERMCONTAINER_H_
14
15#ifdef __GNUG__
16#pragma interface "wxTermContainer.h"
17#endif
18
25
31class NumeReTerminal;
33class wxSizer;
34
40#define ID_DIALOG 10000
41//#define ID_PANEL 10001
42#define ID_SCROLLBAR 10002
44
49class wxTermContainer: public wxPanel
50{
51 DECLARE_CLASS( wxTermContainer )
52 DECLARE_EVENT_TABLE()
53
54public:
57 wxTermContainer( wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxBORDER_STATIC );
58
60 bool Create( wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxBORDER_STATIC );
61
63 void CreateControls();
64
65 void SetTerminal(NumeReTerminal* terminal);
66
69 void OnScrollbarScrollLineUp( wxScrollEvent& event );
70
72 void OnScrollbarScrollLineDown( wxScrollEvent& event );
73
75 void OnScrollbarScrollPageUp( wxScrollEvent& event );
76
78 void OnScrollbarScrollPageDown( wxScrollEvent& event );
79
81 void OnScrollbarScrollThumbtrack( wxScrollEvent& event );
82
84 void OnWheelScroll(wxMouseEvent& event);
85
87
88 void OnSize(wxSizeEvent &event);
89 void OnUpdateUI(wxUpdateUIEvent &event);
90
93
94 void SetTerminalHistory(int newSize);
95 void SetCaretBlinkTime(int newTime);
96
98 static bool ShowToolTips();
99
100private:
101
104 wxScrollBar* m_scrollbar;
106
107
109 wxBoxSizer* m_sizer;
111
112 void updateThumbPosition();
113};
114
115#endif
The terminal class for the GUI. It's a specialisation of the GenericTerminal.
Definition: terminal.hpp:46
wxTermContainer()
Constructors.
wxScrollBar * m_scrollbar
wxBoxSizer * m_sizer
void OnScrollbarScrollLineDown(wxScrollEvent &event)
wxEVT_SCROLL_LINEDOWN event handler for ID_SCROLLBAR
void OnWheelScroll(wxMouseEvent &event)
wxEVT_MOUSEWHEEL event handler
void OnScrollbarScrollPageUp(wxScrollEvent &event)
wxEVT_SCROLL_PAGEUP event handler for ID_SCROLLBAR
void OnScrollbarScrollLineUp(wxScrollEvent &event)
wxEVT_SCROLL_LINEUP event handler for ID_SCROLLBAR
NumeReTerminal * m_terminal
bool Create(wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxBORDER_STATIC)
Creation.
static bool ShowToolTips()
Should we show tooltips?
void SetTerminal(NumeReTerminal *terminal)
void updateThumbPosition()
Updates the thumb position after every scroll operation except of the click-drag scrolling.
void CreateControls()
Creates the controls and sizers.
void OnScrollbarScrollPageDown(wxScrollEvent &event)
wxEVT_SCROLL_PAGEDOWN event handler for ID_SCROLLBAR
void SetTerminalHistory(int newSize)
Changes the size of the terminal history buffer.
void SetCaretBlinkTime(int newTime)
Changes the blinking duration of the terminal caret.
void OnScrollbarScrollThumbtrack(wxScrollEvent &event)
wxEVT_SCROLL_THUMBTRACK event handler for ID_SCROLLBAR
void OnSize(wxSizeEvent &event)
Empty OnSize event handler.
void OnUpdateUI(wxUpdateUIEvent &event)