mirror of
https://github.com/tribes2/engine.git
synced 2026-03-27 16:19:19 +00:00
t2 engine svn checkout
This commit is contained in:
commit
ff569bd2ae
988 changed files with 394180 additions and 0 deletions
36
gui/guiConsoleEditCtrl.h
Normal file
36
gui/guiConsoleEditCtrl.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// V12 Engine
|
||||
//
|
||||
// Copyright (c) 2001 GarageGames.Com
|
||||
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _GUICONSOLEEDITCTRL_H_
|
||||
#define _GUICONSOLEEDITCTRL_H_
|
||||
|
||||
#ifndef _GUITYPES_H_
|
||||
#include "GUI/guiTypes.h"
|
||||
#endif
|
||||
#ifndef _GUITEXTEDITCTRL_H_
|
||||
#include "GUI/guiTextEditCtrl.h"
|
||||
#endif
|
||||
|
||||
class GuiConsoleEditCtrl : public GuiTextEditCtrl
|
||||
{
|
||||
private:
|
||||
typedef GuiTextEditCtrl Parent;
|
||||
|
||||
// max string len, must be less then or equal to 255
|
||||
SimObjectPtr<SimObject> tabObject;
|
||||
S32 baseStart;
|
||||
S32 baseLen;
|
||||
char tabBuffer[GuiTextCtrl::MAX_STRING_LENGTH + 1];
|
||||
public:
|
||||
GuiConsoleEditCtrl();
|
||||
DECLARE_CONOBJECT(GuiConsoleEditCtrl);
|
||||
|
||||
bool onKeyDown(const GuiEvent &event);
|
||||
void handleTab(bool forwardTab);
|
||||
};
|
||||
|
||||
#endif //_GUI_TEXTEDIT_CTRL_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue