30 #ifndef AMATH_HAIKU_CONSOLE_WINDOW_H 31 #define AMATH_HAIKU_CONSOLE_WINDOW_H 36 #include "lib/aengine.h" 41 #pragma GCC diagnostic ignored "-Wno-multichar" 46 #include <FilePanel.h> 53 class HaikuWindow :
public ConsoleBase,
public BWindow
56 HaikuWindow(
const char *prompt, CharValidator *validator);
57 virtual ~HaikuWindow(
void);
58 virtual void MessageReceived(BMessage* msg);
59 virtual void FrameResized(
float w,
float h);
60 virtual void UpdateTextRect(
void);
61 virtual bool QuitRequested(
void);
62 virtual void Start(
void);
63 virtual void Exit(
void);
64 virtual void Clear(
void);
65 virtual void ShowAbout(
void);
66 virtual void ShowLicense(
void);
67 virtual void ShowVersion(
void);
68 virtual void WriteString(
const char *string);
72 virtual void StartMessage(
void);
75 HaikuTextView *textView;
78 class HaikuTextView :
public BTextView
86 const BFont *initialFont,
87 const rgb_color *initialColor);
88 virtual ~HaikuTextView(
void);
89 virtual void KeyDown(
const char *bytes, int32 numBytes);