From 7ee88ef79ddf1914387f3e2440070f51e3467004 Mon Sep 17 00:00:00 2001 From: Vlad Voicu Date: Wed, 25 May 2011 17:46:10 +0300 Subject: First Layout for History Window diff --git a/Swift/QtUI/QtViewHistoryWindow.cpp b/Swift/QtUI/QtViewHistoryWindow.cpp index 8905c19..71f77b8 100644 --- a/Swift/QtUI/QtViewHistoryWindow.cpp +++ b/Swift/QtUI/QtViewHistoryWindow.cpp @@ -4,14 +4,20 @@ * See Documentation/Licenses/BSD-simplified.txt for more information. */ -#include "QtViewHistoryWindow.h" #include #include +#include "QtViewHistoryWindow.h" +#include "QtChatView.h" +#include "QtChatTheme.h" + namespace Swift { QtViewHistoryWindow::QtViewHistoryWindow() { ui.setupUi(this); + QtChatTheme *theme = new QtChatTheme(""); // Where should I get the theme path from? + messageLog_ = new QtChatView(theme, this); + ui.chatView_->addWidget(messageLog_); show(); } diff --git a/Swift/QtUI/QtViewHistoryWindow.h b/Swift/QtUI/QtViewHistoryWindow.h index 00f33b4..145731c 100644 --- a/Swift/QtUI/QtViewHistoryWindow.h +++ b/Swift/QtUI/QtViewHistoryWindow.h @@ -12,6 +12,7 @@ #include #include +#include namespace Swift { class QtViewHistoryWindow : public QWidget, public ViewHistoryWindow { @@ -22,6 +23,7 @@ namespace Swift { void setEnabled(bool enabled); private: + QtChatView* messageLog_; Ui::QtViewHistoryWindow ui; JID jid_; }; diff --git a/Swift/QtUI/QtViewHistoryWindow.ui b/Swift/QtUI/QtViewHistoryWindow.ui deleted file mode 120000 index cd19376..0000000 --- a/Swift/QtUI/QtViewHistoryWindow.ui +++ /dev/null @@ -1 +0,0 @@ -/home/vlad/test.ui \ No newline at end of file diff --git a/Swift/QtUI/QtViewHistoryWindow.ui b/Swift/QtUI/QtViewHistoryWindow.ui new file mode 100644 index 0000000..17a5b6b --- /dev/null +++ b/Swift/QtUI/QtViewHistoryWindow.ui @@ -0,0 +1,180 @@ + + + QtViewHistoryWindow + + + + 0 + 0 + 990 + 614 + + + + Form + + + + + 930 + 1100 + 131 + 17 + + + + Search keywords: + + + + + + 930 + 1120 + 651 + 31 + + + + + + + 1350 + 1100 + 61 + 16 + + + + Today + + + + + + 1590 + 620 + 256 + 531 + + + + + + + 1420 + 1100 + 160 + 16 + + + + Qt::Horizontal + + + + + + 100 + 30 + 871 + 571 + + + + + + + + + 610 + 20 + 251 + 471 + + + + + + + 20 + 20 + 581 + 471 + + + + + + + + 20 + 500 + 841 + 61 + + + + + + + + + 0 + 20 + 841 + 31 + + + + + + + 0 + 0 + 131 + 17 + + + + Search keywords: + + + + + + 490 + 0 + 160 + 16 + + + + Qt::Horizontal + + + + + + 410 + 0 + 61 + 16 + + + + Today + + + + + + + + + + + + + + -- cgit v0.10.2-6-g49f6