mirror of
https://github.com/tribes2/engine.git
synced 2026-01-20 19:54:46 +00:00
37 lines
925 B
C++
37 lines
925 B
C++
//-----------------------------------------------------------------------------
|
|
// 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
|