1/********************************************************************************
2** Form generated from reading UI file 'chatmainwindow.ui'
3**
4** Created by: Qt User Interface Compiler version 6.0.0
5**
6** WARNING! All changes made in this file will be lost when recompiling UI file!
7********************************************************************************/
8
9#ifndef UI_CHATMAINWINDOW_H
10#define UI_CHATMAINWINDOW_H
11
12#include <QtCore/QVariant>
13#include <QtGui/QAction>
14#include <QtWidgets/QApplication>
15#include <QtWidgets/QHBoxLayout>
16#include <QtWidgets/QLabel>
17#include <QtWidgets/QLineEdit>
18#include <QtWidgets/QMainWindow>
19#include <QtWidgets/QMenu>
20#include <QtWidgets/QMenuBar>
21#include <QtWidgets/QPushButton>
22#include <QtWidgets/QStatusBar>
23#include <QtWidgets/QTextBrowser>
24#include <QtWidgets/QVBoxLayout>
25#include <QtWidgets/QWidget>
26
27QT_BEGIN_NAMESPACE
28
29class Ui_ChatMainWindow
30{
31public:
32 QAction *actionQuit;
33 QAction *actionAboutQt;
34 QAction *actionChangeNickname;
35 QWidget *centralwidget;
36 QHBoxLayout *hboxLayout;
37 QVBoxLayout *vboxLayout;
38 QTextBrowser *chatHistory;
39 QHBoxLayout *hboxLayout1;
40 QLabel *label;
41 QLineEdit *messageLineEdit;
42 QPushButton *sendButton;
43 QMenuBar *menubar;
44 QMenu *menuQuit;
45 QMenu *menuFile;
46 QStatusBar *statusbar;
47
48 void setupUi(QMainWindow *ChatMainWindow)
49 {
50 if (ChatMainWindow->objectName().isEmpty())
51 ChatMainWindow->setObjectName(QString::fromUtf8("ChatMainWindow"));
52 ChatMainWindow->resize(800, 600);
53 actionQuit = new QAction(ChatMainWindow);
54 actionQuit->setObjectName(QString::fromUtf8("actionQuit"));
55 actionAboutQt = new QAction(ChatMainWindow);
56 actionAboutQt->setObjectName(QString::fromUtf8("actionAboutQt"));
57 actionChangeNickname = new QAction(ChatMainWindow);
58 actionChangeNickname->setObjectName(QString::fromUtf8("actionChangeNickname"));
59 centralwidget = new QWidget(ChatMainWindow);
60 centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
61 hboxLayout = new QHBoxLayout(centralwidget);
62#ifndef Q_OS_MAC
63 hboxLayout->setSpacing(6);
64#endif
65#ifndef Q_OS_MAC
66 hboxLayout->setContentsMargins(9, 9, 9, 9);
67#endif
68 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
69 vboxLayout = new QVBoxLayout();
70#ifndef Q_OS_MAC
71 vboxLayout->setSpacing(6);
72#endif
73#ifndef Q_OS_MAC
74 vboxLayout->setContentsMargins(0, 0, 0, 0);
75#endif
76 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
77 chatHistory = new QTextBrowser(centralwidget);
78 chatHistory->setObjectName(QString::fromUtf8("chatHistory"));
79 chatHistory->setAcceptDrops(false);
80 chatHistory->setAcceptRichText(true);
81
82 vboxLayout->addWidget(chatHistory);
83
84 hboxLayout1 = new QHBoxLayout();
85#ifndef Q_OS_MAC
86 hboxLayout1->setSpacing(6);
87#endif
88 hboxLayout1->setContentsMargins(0, 0, 0, 0);
89 hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
90 label = new QLabel(centralwidget);
91 label->setObjectName(QString::fromUtf8("label"));
92
93 hboxLayout1->addWidget(label);
94
95 messageLineEdit = new QLineEdit(centralwidget);
96 messageLineEdit->setObjectName(QString::fromUtf8("messageLineEdit"));
97
98 hboxLayout1->addWidget(messageLineEdit);
99
100 sendButton = new QPushButton(centralwidget);
101 sendButton->setObjectName(QString::fromUtf8("sendButton"));
102 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
103 sizePolicy.setHorizontalStretch(0);
104 sizePolicy.setVerticalStretch(0);
105 sizePolicy.setHeightForWidth(sendButton->sizePolicy().hasHeightForWidth());
106 sendButton->setSizePolicy(sizePolicy);
107
108 hboxLayout1->addWidget(sendButton);
109
110
111 vboxLayout->addLayout(hboxLayout1);
112
113
114 hboxLayout->addLayout(vboxLayout);
115
116 ChatMainWindow->setCentralWidget(centralwidget);
117 menubar = new QMenuBar(ChatMainWindow);
118 menubar->setObjectName(QString::fromUtf8("menubar"));
119 menubar->setGeometry(QRect(0, 0, 800, 31));
120 menuQuit = new QMenu(menubar);
121 menuQuit->setObjectName(QString::fromUtf8("menuQuit"));
122 menuFile = new QMenu(menubar);
123 menuFile->setObjectName(QString::fromUtf8("menuFile"));
124 ChatMainWindow->setMenuBar(menubar);
125 statusbar = new QStatusBar(ChatMainWindow);
126 statusbar->setObjectName(QString::fromUtf8("statusbar"));
127 ChatMainWindow->setStatusBar(statusbar);
128#if QT_CONFIG(shortcut)
129 label->setBuddy(messageLineEdit);
130#endif // QT_CONFIG(shortcut)
131 QWidget::setTabOrder(chatHistory, messageLineEdit);
132 QWidget::setTabOrder(messageLineEdit, sendButton);
133
134 menubar->addAction(menuFile->menuAction());
135 menubar->addAction(menuQuit->menuAction());
136 menuQuit->addAction(actionAboutQt);
137 menuFile->addAction(actionChangeNickname);
138 menuFile->addSeparator();
139 menuFile->addAction(actionQuit);
140
141 retranslateUi(ChatMainWindow);
142 QObject::connect(messageLineEdit, &QLineEdit::returnPressed, sendButton, &QPushButton::animateClick);
143 QObject::connect(actionQuit, &QAction::triggered, ChatMainWindow, &QMainWindow::close);
144
145 QMetaObject::connectSlotsByName(ChatMainWindow);
146 } // setupUi
147
148 void retranslateUi(QMainWindow *ChatMainWindow)
149 {
150 ChatMainWindow->setWindowTitle(QCoreApplication::translate("ChatMainWindow", "Qt D-Bus Chat", nullptr));
151 actionQuit->setText(QCoreApplication::translate("ChatMainWindow", "Quit", nullptr));
152#if QT_CONFIG(shortcut)
153 actionQuit->setShortcut(QCoreApplication::translate("ChatMainWindow", "Ctrl+Q", nullptr));
154#endif // QT_CONFIG(shortcut)
155 actionAboutQt->setText(QCoreApplication::translate("ChatMainWindow", "About Qt...", nullptr));
156 actionChangeNickname->setText(QCoreApplication::translate("ChatMainWindow", "Change nickname...", nullptr));
157#if QT_CONFIG(shortcut)
158 actionChangeNickname->setShortcut(QCoreApplication::translate("ChatMainWindow", "Ctrl+N", nullptr));
159#endif // QT_CONFIG(shortcut)
160#if QT_CONFIG(tooltip)
161 chatHistory->setToolTip(QCoreApplication::translate("ChatMainWindow", "Messages sent and received from other users", nullptr));
162#endif // QT_CONFIG(tooltip)
163 label->setText(QCoreApplication::translate("ChatMainWindow", "Message:", nullptr));
164#if QT_CONFIG(tooltip)
165 sendButton->setToolTip(QCoreApplication::translate("ChatMainWindow", "Sends a message to other people", nullptr));
166#endif // QT_CONFIG(tooltip)
167#if QT_CONFIG(whatsthis)
168 sendButton->setWhatsThis(QString());
169#endif // QT_CONFIG(whatsthis)
170 sendButton->setText(QCoreApplication::translate("ChatMainWindow", "Send", nullptr));
171 menuQuit->setTitle(QCoreApplication::translate("ChatMainWindow", "Help", nullptr));
172 menuFile->setTitle(QCoreApplication::translate("ChatMainWindow", "File", nullptr));
173 } // retranslateUi
174
175};
176
177namespace Ui {
178 class ChatMainWindow: public Ui_ChatMainWindow {};
179} // namespace Ui
180
181QT_END_NAMESPACE
182
183#endif // UI_CHATMAINWINDOW_H
184