2017-01-01 02:30:42 +01:00
|
|
|
#ifndef CHATWIDGETINPUT_H
|
|
|
|
#define CHATWIDGETINPUT_H
|
|
|
|
|
2017-01-21 05:14:27 +01:00
|
|
|
#include "resizingtextedit.h"
|
2017-01-22 05:58:23 +01:00
|
|
|
#include "widgets/chatwidgetheaderbutton.h"
|
2017-01-21 05:14:27 +01:00
|
|
|
|
|
|
|
#include <QHBoxLayout>
|
2017-01-22 05:58:23 +01:00
|
|
|
#include <QLabel>
|
2017-01-21 05:14:27 +01:00
|
|
|
#include <QLineEdit>
|
2017-01-18 04:52:47 +01:00
|
|
|
#include <QPaintEvent>
|
2017-01-20 06:10:28 +01:00
|
|
|
#include <QTextEdit>
|
2017-01-21 05:14:27 +01:00
|
|
|
#include <QVBoxLayout>
|
2017-01-18 04:52:47 +01:00
|
|
|
#include <QWidget>
|
2017-01-01 02:30:42 +01:00
|
|
|
|
2017-01-18 21:30:23 +01:00
|
|
|
namespace chatterino {
|
|
|
|
namespace widgets {
|
|
|
|
|
2017-01-01 02:30:42 +01:00
|
|
|
class ChatWidgetInput : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
ChatWidgetInput();
|
2017-01-22 12:46:35 +01:00
|
|
|
~ChatWidgetInput();
|
2017-01-01 02:30:42 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void paintEvent(QPaintEvent *);
|
2017-01-20 06:10:28 +01:00
|
|
|
|
2017-01-22 05:58:23 +01:00
|
|
|
void resizeEvent(QResizeEvent *);
|
|
|
|
|
2017-01-20 06:10:28 +01:00
|
|
|
private:
|
2017-01-21 05:14:27 +01:00
|
|
|
QHBoxLayout hbox;
|
2017-01-22 05:58:23 +01:00
|
|
|
QVBoxLayout vbox;
|
|
|
|
QHBoxLayout editContainer;
|
2017-01-21 05:14:27 +01:00
|
|
|
ResizingTextEdit edit;
|
2017-01-22 05:58:23 +01:00
|
|
|
QLabel textLengthLabel;
|
|
|
|
ChatWidgetHeaderButton emotesLabel;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void refreshTheme();
|
2017-01-22 12:46:35 +01:00
|
|
|
void
|
|
|
|
setMessageLengthVisisble(bool value)
|
|
|
|
{
|
|
|
|
this->textLengthLabel.setHidden(!value);
|
|
|
|
}
|
2017-01-01 02:30:42 +01:00
|
|
|
};
|
2017-01-18 21:30:23 +01:00
|
|
|
}
|
|
|
|
}
|
2017-01-01 02:30:42 +01:00
|
|
|
|
2017-01-11 18:52:09 +01:00
|
|
|
#endif // CHATWIDGETINPUT_H
|