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