2011-04-27 10:05:43 +00:00
|
|
|
/********************************************************************************
|
|
|
|
** Form generated from reading UI file 'chatmainwindow.ui'
|
|
|
|
**
|
2017-03-01 14:24:43 +00:00
|
|
|
** Created by: Qt User Interface Compiler version 5.9.0
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
|
|
********************************************************************************/
|
|
|
|
|
|
|
|
#ifndef CHATMAINWINDOW_H
|
|
|
|
#define CHATMAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QtCore/QVariant>
|
2011-09-22 13:09:37 +00:00
|
|
|
#include <QtWidgets/QAction>
|
|
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <QtWidgets/QHBoxLayout>
|
|
|
|
#include <QtWidgets/QLabel>
|
|
|
|
#include <QtWidgets/QLineEdit>
|
|
|
|
#include <QtWidgets/QMainWindow>
|
|
|
|
#include <QtWidgets/QMenu>
|
|
|
|
#include <QtWidgets/QMenuBar>
|
|
|
|
#include <QtWidgets/QPushButton>
|
|
|
|
#include <QtWidgets/QStatusBar>
|
|
|
|
#include <QtWidgets/QTextBrowser>
|
|
|
|
#include <QtWidgets/QVBoxLayout>
|
|
|
|
#include <QtWidgets/QWidget>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
class Ui_ChatMainWindow
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
QAction *actionQuit;
|
|
|
|
QAction *actionAboutQt;
|
|
|
|
QAction *actionChangeNickname;
|
|
|
|
QWidget *centralwidget;
|
|
|
|
QHBoxLayout *hboxLayout;
|
|
|
|
QVBoxLayout *vboxLayout;
|
|
|
|
QTextBrowser *chatHistory;
|
|
|
|
QHBoxLayout *hboxLayout1;
|
|
|
|
QLabel *label;
|
|
|
|
QLineEdit *messageLineEdit;
|
|
|
|
QPushButton *sendButton;
|
|
|
|
QMenuBar *menubar;
|
|
|
|
QMenu *menuQuit;
|
|
|
|
QMenu *menuFile;
|
|
|
|
QStatusBar *statusbar;
|
|
|
|
|
|
|
|
void setupUi(QMainWindow *ChatMainWindow)
|
|
|
|
{
|
|
|
|
if (ChatMainWindow->objectName().isEmpty())
|
2018-07-13 09:02:14 +00:00
|
|
|
ChatMainWindow->setObjectName(QString::fromUtf8("ChatMainWindow"));
|
2011-04-27 10:05:43 +00:00
|
|
|
ChatMainWindow->resize(800, 600);
|
|
|
|
actionQuit = new QAction(ChatMainWindow);
|
2018-07-13 09:02:14 +00:00
|
|
|
actionQuit->setObjectName(QString::fromUtf8("actionQuit"));
|
2011-04-27 10:05:43 +00:00
|
|
|
actionAboutQt = new QAction(ChatMainWindow);
|
2018-07-13 09:02:14 +00:00
|
|
|
actionAboutQt->setObjectName(QString::fromUtf8("actionAboutQt"));
|
2011-04-27 10:05:43 +00:00
|
|
|
actionChangeNickname = new QAction(ChatMainWindow);
|
2018-07-13 09:02:14 +00:00
|
|
|
actionChangeNickname->setObjectName(QString::fromUtf8("actionChangeNickname"));
|
2011-04-27 10:05:43 +00:00
|
|
|
centralwidget = new QWidget(ChatMainWindow);
|
2018-07-13 09:02:14 +00:00
|
|
|
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
|
2011-04-27 10:05:43 +00:00
|
|
|
hboxLayout = new QHBoxLayout(centralwidget);
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
hboxLayout->setSpacing(6);
|
|
|
|
#endif
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
hboxLayout->setContentsMargins(9, 9, 9, 9);
|
|
|
|
#endif
|
2018-07-13 09:02:14 +00:00
|
|
|
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
vboxLayout = new QVBoxLayout();
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
vboxLayout->setSpacing(6);
|
|
|
|
#endif
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
vboxLayout->setContentsMargins(0, 0, 0, 0);
|
|
|
|
#endif
|
2018-07-13 09:02:14 +00:00
|
|
|
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
chatHistory = new QTextBrowser(centralwidget);
|
2018-07-13 09:02:14 +00:00
|
|
|
chatHistory->setObjectName(QString::fromUtf8("chatHistory"));
|
2011-04-27 10:05:43 +00:00
|
|
|
chatHistory->setAcceptDrops(false);
|
|
|
|
chatHistory->setAcceptRichText(true);
|
|
|
|
|
|
|
|
vboxLayout->addWidget(chatHistory);
|
|
|
|
|
|
|
|
hboxLayout1 = new QHBoxLayout();
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
hboxLayout1->setSpacing(6);
|
|
|
|
#endif
|
|
|
|
hboxLayout1->setContentsMargins(0, 0, 0, 0);
|
2018-07-13 09:02:14 +00:00
|
|
|
hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
|
2011-04-27 10:05:43 +00:00
|
|
|
label = new QLabel(centralwidget);
|
2018-07-13 09:02:14 +00:00
|
|
|
label->setObjectName(QString::fromUtf8("label"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout1->addWidget(label);
|
|
|
|
|
|
|
|
messageLineEdit = new QLineEdit(centralwidget);
|
2018-07-13 09:02:14 +00:00
|
|
|
messageLineEdit->setObjectName(QString::fromUtf8("messageLineEdit"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout1->addWidget(messageLineEdit);
|
|
|
|
|
|
|
|
sendButton = new QPushButton(centralwidget);
|
2018-07-13 09:02:14 +00:00
|
|
|
sendButton->setObjectName(QString::fromUtf8("sendButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(1), static_cast<QSizePolicy::Policy>(0));
|
|
|
|
sizePolicy.setHorizontalStretch(0);
|
|
|
|
sizePolicy.setVerticalStretch(0);
|
|
|
|
sizePolicy.setHeightForWidth(sendButton->sizePolicy().hasHeightForWidth());
|
|
|
|
sendButton->setSizePolicy(sizePolicy);
|
|
|
|
|
|
|
|
hboxLayout1->addWidget(sendButton);
|
|
|
|
|
|
|
|
|
|
|
|
vboxLayout->addLayout(hboxLayout1);
|
|
|
|
|
|
|
|
|
|
|
|
hboxLayout->addLayout(vboxLayout);
|
|
|
|
|
|
|
|
ChatMainWindow->setCentralWidget(centralwidget);
|
|
|
|
menubar = new QMenuBar(ChatMainWindow);
|
2018-07-13 09:02:14 +00:00
|
|
|
menubar->setObjectName(QString::fromUtf8("menubar"));
|
2011-04-27 10:05:43 +00:00
|
|
|
menubar->setGeometry(QRect(0, 0, 800, 31));
|
|
|
|
menuQuit = new QMenu(menubar);
|
2018-07-13 09:02:14 +00:00
|
|
|
menuQuit->setObjectName(QString::fromUtf8("menuQuit"));
|
2011-04-27 10:05:43 +00:00
|
|
|
menuFile = new QMenu(menubar);
|
2018-07-13 09:02:14 +00:00
|
|
|
menuFile->setObjectName(QString::fromUtf8("menuFile"));
|
2011-04-27 10:05:43 +00:00
|
|
|
ChatMainWindow->setMenuBar(menubar);
|
|
|
|
statusbar = new QStatusBar(ChatMainWindow);
|
2018-07-13 09:02:14 +00:00
|
|
|
statusbar->setObjectName(QString::fromUtf8("statusbar"));
|
2011-04-27 10:05:43 +00:00
|
|
|
ChatMainWindow->setStatusBar(statusbar);
|
|
|
|
#ifndef QT_NO_SHORTCUT
|
|
|
|
label->setBuddy(messageLineEdit);
|
|
|
|
#endif // QT_NO_SHORTCUT
|
|
|
|
QWidget::setTabOrder(chatHistory, messageLineEdit);
|
|
|
|
QWidget::setTabOrder(messageLineEdit, sendButton);
|
|
|
|
|
|
|
|
menubar->addAction(menuFile->menuAction());
|
|
|
|
menubar->addAction(menuQuit->menuAction());
|
|
|
|
menuQuit->addAction(actionAboutQt);
|
|
|
|
menuFile->addAction(actionChangeNickname);
|
|
|
|
menuFile->addSeparator();
|
|
|
|
menuFile->addAction(actionQuit);
|
|
|
|
|
|
|
|
retranslateUi(ChatMainWindow);
|
|
|
|
QObject::connect(messageLineEdit, SIGNAL(returnPressed()), sendButton, SLOT(animateClick()));
|
|
|
|
QObject::connect(actionQuit, SIGNAL(triggered(bool)), ChatMainWindow, SLOT(close()));
|
|
|
|
|
|
|
|
QMetaObject::connectSlotsByName(ChatMainWindow);
|
|
|
|
} // setupUi
|
|
|
|
|
|
|
|
void retranslateUi(QMainWindow *ChatMainWindow)
|
|
|
|
{
|
2017-08-28 14:42:50 +00:00
|
|
|
ChatMainWindow->setWindowTitle(QApplication::translate("ChatMainWindow", "Qt D-Bus Chat", nullptr));
|
|
|
|
actionQuit->setText(QApplication::translate("ChatMainWindow", "Quit", nullptr));
|
2017-03-01 14:24:43 +00:00
|
|
|
#ifndef QT_NO_SHORTCUT
|
2017-08-28 14:42:50 +00:00
|
|
|
actionQuit->setShortcut(QApplication::translate("ChatMainWindow", "Ctrl+Q", nullptr));
|
2017-03-01 14:24:43 +00:00
|
|
|
#endif // QT_NO_SHORTCUT
|
2017-08-28 14:42:50 +00:00
|
|
|
actionAboutQt->setText(QApplication::translate("ChatMainWindow", "About Qt...", nullptr));
|
|
|
|
actionChangeNickname->setText(QApplication::translate("ChatMainWindow", "Change nickname...", nullptr));
|
2017-03-01 14:24:43 +00:00
|
|
|
#ifndef QT_NO_SHORTCUT
|
2017-08-28 14:42:50 +00:00
|
|
|
actionChangeNickname->setShortcut(QApplication::translate("ChatMainWindow", "Ctrl+N", nullptr));
|
2017-03-01 14:24:43 +00:00
|
|
|
#endif // QT_NO_SHORTCUT
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_TOOLTIP
|
2017-08-28 14:42:50 +00:00
|
|
|
chatHistory->setToolTip(QApplication::translate("ChatMainWindow", "Messages sent and received from other users", nullptr));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
2017-08-28 14:42:50 +00:00
|
|
|
label->setText(QApplication::translate("ChatMainWindow", "Message:", nullptr));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_TOOLTIP
|
2017-08-28 14:42:50 +00:00
|
|
|
sendButton->setToolTip(QApplication::translate("ChatMainWindow", "Sends a message to other people", nullptr));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
|
|
|
#ifndef QT_NO_WHATSTHIS
|
|
|
|
sendButton->setWhatsThis(QString());
|
|
|
|
#endif // QT_NO_WHATSTHIS
|
2017-08-28 14:42:50 +00:00
|
|
|
sendButton->setText(QApplication::translate("ChatMainWindow", "Send", nullptr));
|
|
|
|
menuQuit->setTitle(QApplication::translate("ChatMainWindow", "Help", nullptr));
|
|
|
|
menuFile->setTitle(QApplication::translate("ChatMainWindow", "File", nullptr));
|
2011-04-27 10:05:43 +00:00
|
|
|
} // retranslateUi
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ChatMainWindow: public Ui_ChatMainWindow {};
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
#endif // CHATMAINWINDOW_H
|