summary refs log tree commit diff
path: root/include/TextInputWidget.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-09-10 13:13:02 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-09-10 13:13:02 +0300
commit29e21e2970c2786eb1f6910c9da99a3dbbf0a49d (patch)
tree6b981d9167ef70a408fa395a720afb09ce7b5e21 /include/TextInputWidget.h
parentStyle change again (diff)
parentImplement image uploads (#24) (diff)
downloadnheko-29e21e2970c2786eb1f6910c9da99a3dbbf0a49d.tar.xz
Merge branch 'images'
Diffstat (limited to 'include/TextInputWidget.h')
-rw-r--r--include/TextInputWidget.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/include/TextInputWidget.h b/include/TextInputWidget.h

index 73c2a603..732f4f61 100644 --- a/include/TextInputWidget.h +++ b/include/TextInputWidget.h
@@ -24,6 +24,10 @@ #include "EmojiPickButton.h" #include "FlatButton.h" +#include "Image.h" +#include "LoadingIndicator.h" + +namespace msgs = matrix::events::messages; static const QString EMOTE_COMMAND("/me "); @@ -48,6 +52,8 @@ public: public slots: void onSendButtonClicked(); + void openFileSelection(); + void hideUploadSpinner(); inline void focusLineEdit(); private slots: @@ -56,16 +62,20 @@ private slots: signals: void sendTextMessage(QString msg); void sendEmoteMessage(QString msg); + void uploadImage(QString filename); private: + void showUploadSpinner(); QString parseEmoteCommand(const QString &cmd); - QHBoxLayout *top_layout_; + QHBoxLayout *topLayout_; FilteredTextEdit *input_; - FlatButton *send_file_button_; - FlatButton *send_message_button_; - EmojiPickButton *emoji_button_; + LoadingIndicator *spinner_; + + FlatButton *sendFileBtn_; + FlatButton *sendMessageBtn_; + EmojiPickButton *emojiBtn_; }; inline void