summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-06-10 16:49:49 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-06-10 16:49:49 (GMT)
commit7214d768dca85a6d43892169d5008898249dce73 (patch)
tree0f8b2820c9cb58f058263c78306987d934fec526 /UI/Qt/QtChatWindow.h
parentfd89da91d12b270d56f60544cad6f1ddc809af28 (diff)
downloadswift-contrib-7214d768dca85a6d43892169d5008898249dce73.zip
swift-contrib-7214d768dca85a6d43892169d5008898249dce73.tar.bz2
Moved UI/Qt -> Swift/QtUI.
Diffstat (limited to 'UI/Qt/QtChatWindow.h')
-rw-r--r--UI/Qt/QtChatWindow.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/UI/Qt/QtChatWindow.h b/UI/Qt/QtChatWindow.h
deleted file mode 100644
index ef091e3..0000000
--- a/UI/Qt/QtChatWindow.h
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef SWIFT_QtChatWindow_H
-#define SWIFT_QtChatWindow_H
-
-#include "Swiften/Controllers/ChatWindow.h"
-
-#include <QWidget>
-
-class QTextEdit;
-class QLineEdit;
-class QComboBox;
-
-namespace Swift {
- class QtChatView;
- class QtTreeWidget;
- class QtTreeWidgetFactory;
- class TreeWidget;
- class QtChatWindow : public QWidget, public ChatWindow {
- Q_OBJECT
- public:
- QtChatWindow(const QString &contact, QtTreeWidgetFactory* treeWidgetFactory);
- void addMessage(const String &message, const String &senderName, bool senderIsSelf, const boost::optional<SecurityLabel>& label);
- void addSystemMessage(const String& message);
- void addErrorMessage(const String& errorMessage);
- void show();
- void setUnreadMessageCount(int count);
- void convertToMUC();
- TreeWidget *getTreeWidget();
- void setAvailableSecurityLabels(const std::vector<SecurityLabel>& labels);
- void setSecurityLabelsEnabled(bool enabled);
- void setSecurityLabelsError();
- SecurityLabel getSelectedSecurityLabel();
-
- protected slots:
- void qAppFocusChanged(QWidget* old, QWidget* now);
- void closeEvent(QCloseEvent* event);
-
- private slots:
- void returnPressed();
-
- private:
- void updateTitleWithUnreadCount();
-
- int unreadCount_;
- QString contact_;
- QtChatView *messageLog_;
- QLineEdit* input_;
- QComboBox *labelsWidget_;
- QtTreeWidget *treeWidget_;
- std::vector<SecurityLabel> availableLabels_;
- bool previousMessageWasSelf_;
- bool previousMessageWasSystem_;
- QString previousSenderName_;
- };
-}
-
-#endif