diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-06-01 08:48:42 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-06-01 09:24:28 (GMT) |
commit | 2812bddd81f8a1b804c7460f4e14cd0aa393d129 (patch) | |
tree | d46294f35150c4f0f43deaf2d31fceaf945ae715 /UI/Qt/QtMainWindow.h | |
download | swift-contrib-2812bddd81f8a1b804c7460f4e14cd0aa393d129.zip swift-contrib-2812bddd81f8a1b804c7460f4e14cd0aa393d129.tar.bz2 |
Import.
Diffstat (limited to 'UI/Qt/QtMainWindow.h')
-rw-r--r-- | UI/Qt/QtMainWindow.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/UI/Qt/QtMainWindow.h b/UI/Qt/QtMainWindow.h new file mode 100644 index 0000000..fe5c8b4 --- /dev/null +++ b/UI/Qt/QtMainWindow.h @@ -0,0 +1,43 @@ +#ifndef SWIFT_QtMainWindow_H +#define SWIFT_QtMainWindow_H + +#include <QWidget> +#include <QMenu> +#include "Swiften/Controllers/MainWindow.h" + +#include <vector> + +class QComboBox; +class QLineEdit; +class QPushButton; + +namespace Swift { + class QtTreeWidget; + class QtTreeWidgetFactory; + class QtStatusWidget; + class TreeWidget; + + + class QtMainWindow : public QWidget, public MainWindow { + Q_OBJECT + public: + QtMainWindow(QtTreeWidgetFactory *treeWidgetFactory); + TreeWidget* getTreeWidget(); + std::vector<QMenu*> getMenus() {return menus_;} + private slots: + void handleStatusChanged(StatusShow::Type showType, const QString &statusMessage); + void handleShowOfflineToggled(bool); + void handleJoinMUCAction(); + void handleJoinMUCDialogComplete(const JID& muc, const QString& nick); + private: + std::vector<QMenu*> menus_; + QtStatusWidget *statusWidget_; + QLineEdit *muc_; + QLineEdit *mucNick_; + QPushButton *mucButton_; + QtTreeWidget *treeWidget_; + }; +} + +#endif + |