[Gcblue-commits] gcb_wx/include/graphics tcChatBox.h,1.1,1.2 tcConsoleBox.h,1.7,1.8
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-04-29 18:52:12
|
Update of /cvsroot/gcblue/gcb_wx/include/graphics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27186/include/graphics Modified Files: tcChatBox.h tcConsoleBox.h Log Message: Index: tcConsoleBox.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/graphics/tcConsoleBox.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** tcConsoleBox.h 2 Mar 2005 22:28:37 -0000 1.7 --- tcConsoleBox.h 29 Apr 2005 18:52:01 -0000 1.8 *************** *** 47,51 **** { REMOVE_LINES = 64, ! MAX_LINES = 256 }; wxArrayString textArray; --- 47,53 ---- { REMOVE_LINES = 64, ! MAX_LINES = 256, ! MIN_LINES_DISPLAY = 8, ///< in offset mode, show at least this many lines ! SCROLL_LINES = 4 ///< number of lines to scroll up/down }; wxArrayString textArray; *************** *** 62,73 **** --- 64,79 ---- int Print(const char* line); + void ScrollBuffer(int delta); void Clear(); virtual void Draw(); void ForceRedraw() {forceRedraw = true;} + unsigned int GetLineOffset() const; bool IsCurrentLineEmpty(); + virtual void OnKeyDown(wxKeyEvent& event); virtual void OnSize(wxSizeEvent& event); bool Redraw() const {return redraw != 0;} ///< @return true if console will be updated void SetDelayedTextEffect(bool effectOn) {useDelayedTextEffect = effectOn;} + void SetLineOffset(unsigned int offset); void SetLineSpacing(int anSpacing) {nlinespace = anSpacing;} void SetWrap(int n) {nwrapcol = n;} *************** *** 83,86 **** --- 89,93 ---- bool isFocused; bool drawBorder; + unsigned int lineOffset; ///< for reviewing buffer history float fontSize; osg::Vec4 fontColor; Index: tcChatBox.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/graphics/tcChatBox.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tcChatBox.h 2 Oct 2004 22:41:32 -0000 1.1 --- tcChatBox.h 29 Apr 2005 18:52:01 -0000 1.2 *************** *** 44,47 **** --- 44,49 ---- void Draw(); void OnLButtonDown(wxMouseEvent& event); + void OnChar(wxKeyEvent& event); + void OnKeyDown(wxKeyEvent& event); void SendChatText(wxCommandEvent& event); |