|
1
2
3
|
/********************************************************************************
** Form generated from reading UI file 'chatroom.ui'
**
|
|
4
|
** Created by: Qt User Interface Compiler version 5.0.2
|
|
5
6
7
8
9
10
11
12
13
14
15
16
17
|
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_CHATROOM_H
#define UI_CHATROOM_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHeaderView>
|
|
18
|
#include <QtWidgets/QListWidget>
|
|
19
|
#include <QtWidgets/QMainWindow>
|
|
20
21
22
|
#include <QtWidgets/QMenu>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QPushButton>
|
|
23
|
#include <QtWidgets/QSplitter>
|
|
24
|
#include <QtWidgets/QWidget>
|
|
25
|
#include "chatinputtext.h"
|
|
26
|
#include "chatwidget.h"
|
|
27
28
29
30
31
32
|
QT_BEGIN_NAMESPACE
class Ui_Chatroom
{
public:
|
|
33
34
35
|
QAction *actionConnect;
QAction *actionExit;
QAction *actionDisconnect;
|
|
36
|
QAction *actionSave_chat;
|
|
37
|
QWidget *centralwidget;
|
|
38
39
40
|
QGridLayout *gridLayout_2;
QSplitter *windowSplitter;
QWidget *chatWindow;
|
|
41
|
QGridLayout *gridLayout;
|
|
42
43
|
QSplitter *chatSplitter;
ChatWidget *chatText;
|
|
44
|
chatInputText *inputText;
|
|
45
|
QListWidget *userList;
|
|
46
47
48
|
QPushButton *sendButton;
QMenuBar *menuBar;
QMenu *menuChat;
|
|
49
50
51
52
53
54
|
void setupUi(QMainWindow *Chatroom)
{
if (Chatroom->objectName().isEmpty())
Chatroom->setObjectName(QStringLiteral("Chatroom"));
Chatroom->resize(800, 600);
|
|
55
56
57
58
59
60
|
actionConnect = new QAction(Chatroom);
actionConnect->setObjectName(QStringLiteral("actionConnect"));
actionExit = new QAction(Chatroom);
actionExit->setObjectName(QStringLiteral("actionExit"));
actionDisconnect = new QAction(Chatroom);
actionDisconnect->setObjectName(QStringLiteral("actionDisconnect"));
|
|
61
62
63
|
actionDisconnect->setEnabled(false);
actionSave_chat = new QAction(Chatroom);
actionSave_chat->setObjectName(QStringLiteral("actionSave_chat"));
|
|
64
65
|
centralwidget = new QWidget(Chatroom);
centralwidget->setObjectName(QStringLiteral("centralwidget"));
|
|
66
67
68
69
70
71
72
73
74
|
gridLayout_2 = new QGridLayout(centralwidget);
gridLayout_2->setObjectName(QStringLiteral("gridLayout_2"));
windowSplitter = new QSplitter(centralwidget);
windowSplitter->setObjectName(QStringLiteral("windowSplitter"));
windowSplitter->setOrientation(Qt::Horizontal);
chatWindow = new QWidget(windowSplitter);
chatWindow->setObjectName(QStringLiteral("chatWindow"));
gridLayout = new QGridLayout(chatWindow);
gridLayout->setSpacing(0);
|
|
75
|
gridLayout->setObjectName(QStringLiteral("gridLayout"));
|
|
76
77
78
79
80
81
|
gridLayout->setContentsMargins(0, 0, 0, 0);
chatSplitter = new QSplitter(chatWindow);
chatSplitter->setObjectName(QStringLiteral("chatSplitter"));
chatSplitter->setOrientation(Qt::Vertical);
chatText = new ChatWidget(chatSplitter);
chatText->setObjectName(QStringLiteral("chatText"));
|
|
82
|
chatText->setReadOnly(true);
|
|
83
|
chatSplitter->addWidget(chatText);
|
|
84
|
inputText = new chatInputText(chatSplitter);
|
|
85
86
|
inputText->setObjectName(QStringLiteral("inputText"));
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Ignored);
|
|
87
88
|
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
|
|
89
90
91
|
sizePolicy.setHeightForWidth(inputText->sizePolicy().hasHeightForWidth());
inputText->setSizePolicy(sizePolicy);
inputText->setMaximumSize(QSize(16777215, 16777215));
|
|
92
|
inputText->setReadOnly(true);
|
|
93
|
chatSplitter->addWidget(inputText);
|
|
94
|
|
|
95
|
gridLayout->addWidget(chatSplitter, 0, 0, 1, 1);
|
|
96
|
|
|
97
98
99
|
windowSplitter->addWidget(chatWindow);
userList = new QListWidget(windowSplitter);
userList->setObjectName(QStringLiteral("userList"));
|
|
100
|
userList->setEnabled(true);
|
|
101
|
QSizePolicy sizePolicy1(QSizePolicy::Ignored, QSizePolicy::Expanding);
|
|
102
103
|
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
|
|
104
105
106
107
108
|
sizePolicy1.setHeightForWidth(userList->sizePolicy().hasHeightForWidth());
userList->setSizePolicy(sizePolicy1);
userList->setMinimumSize(QSize(0, 0));
userList->setMaximumSize(QSize(16777215, 16777215));
windowSplitter->addWidget(userList);
|
|
109
|
|
|
110
|
gridLayout_2->addWidget(windowSplitter, 0, 0, 1, 1);
|
|
111
|
|
|
112
113
|
sendButton = new QPushButton(centralwidget);
sendButton->setObjectName(QStringLiteral("sendButton"));
|
|
114
|
sendButton->setEnabled(false);
|
|
115
116
117
118
119
120
121
122
|
QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(sendButton->sizePolicy().hasHeightForWidth());
sendButton->setSizePolicy(sizePolicy2);
gridLayout_2->addWidget(sendButton, 1, 0, 1, 1);
|
|
123
|
Chatroom->setCentralWidget(centralwidget);
|
|
124
125
126
127
128
129
|
menuBar = new QMenuBar(Chatroom);
menuBar->setObjectName(QStringLiteral("menuBar"));
menuBar->setGeometry(QRect(0, 0, 800, 26));
menuChat = new QMenu(menuBar);
menuChat->setObjectName(QStringLiteral("menuChat"));
Chatroom->setMenuBar(menuBar);
|
|
130
131
132
|
QWidget::setTabOrder(chatText, inputText);
QWidget::setTabOrder(inputText, userList);
QWidget::setTabOrder(userList, sendButton);
|
|
133
134
135
136
|
menuBar->addAction(menuChat->menuAction());
menuChat->addAction(actionConnect);
menuChat->addAction(actionDisconnect);
|
|
137
|
menuChat->addAction(actionSave_chat);
|
|
138
|
menuChat->addAction(actionExit);
|
|
139
140
141
142
143
144
145
146
|
retranslateUi(Chatroom);
QMetaObject::connectSlotsByName(Chatroom);
} // setupUi
void retranslateUi(QMainWindow *Chatroom)
{
|
|
147
148
149
150
|
Chatroom->setWindowTitle(QApplication::translate("Chatroom", "QChatClient", 0));
actionConnect->setText(QApplication::translate("Chatroom", "Connect...", 0));
actionExit->setText(QApplication::translate("Chatroom", "Exit", 0));
actionDisconnect->setText(QApplication::translate("Chatroom", "Disconnect", 0));
|
|
151
|
actionSave_chat->setText(QApplication::translate("Chatroom", "Save chat...", 0));
|
|
152
153
|
sendButton->setText(QApplication::translate("Chatroom", "Send", 0));
menuChat->setTitle(QApplication::translate("Chatroom", "Chat", 0));
|
|
154
155
156
157
158
159
160
161
162
163
164
|
} // retranslateUi
};
namespace Ui {
class Chatroom: public Ui_Chatroom {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_CHATROOM_H
|