2021-07-08 16:07:03 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
|
|
*/
|
|
|
|
#ifndef _SEND_TEXT_VIEW_H
|
|
|
|
#define _SEND_TEXT_VIEW_H
|
|
|
|
|
2021-07-29 22:00:01 -05:00
|
|
|
#include <libinterface/EnterTextView.h>
|
2021-07-08 16:07:03 -05:00
|
|
|
|
|
|
|
#include "ConversationView.h"
|
|
|
|
|
|
|
|
|
2021-07-29 22:00:01 -05:00
|
|
|
class SendTextView : public EnterTextView {
|
2021-07-08 16:07:03 -05:00
|
|
|
public:
|
|
|
|
SendTextView(const char* name, ConversationView* convView);
|
|
|
|
|
|
|
|
void KeyDown(const char* bytes, int32 numBytes);
|
|
|
|
|
|
|
|
private:
|
2021-07-09 10:39:48 -05:00
|
|
|
void _AutoComplete();
|
|
|
|
|
2021-07-08 16:07:03 -05:00
|
|
|
ConversationView* fConversationView;
|
2021-07-09 10:39:48 -05:00
|
|
|
|
|
|
|
int32 fCurrentIndex;
|
|
|
|
BString fCurrentWord;
|
2021-07-08 16:07:03 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _SEND_TEXT_VIEW_H
|