txtcord/mainwindow.h
2024-08-14 15:23:01 -04:00

28 lines
580 B
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QLineEdit>
#include <QMainWindow>
#include <QProgressBar>
#include <QPushButton>
#include <QSlider>
#include <QTextEdit>
#include <QVBoxLayout>
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
enum MessageType {Normal, System, Error};
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private:
void addMessage(QString content, MainWindow::MessageType type = Normal);
QVBoxLayout *m_layout;
QTextEdit *m_chatlog;
QLineEdit *m_box;
QPushButton *m_send;
};
#endif // MAINWINDOW_H