diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-09-21 08:12:21 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-09-21 08:52:40 (GMT) |
commit | 20d3385909a2f9d886e7e0781357b23474e9f8dc (patch) | |
tree | 4ca6a60e0c2d598534a0767cefa75f58dbac4afa /Swift/QtUI/QtMainWindow.h | |
parent | 703a1c28c3c87ac0fb365ff0683d7c64fcdd2210 (diff) | |
download | swift-contrib-20d3385909a2f9d886e7e0781357b23474e9f8dc.zip swift-contrib-20d3385909a2f9d886e7e0781357b23474e9f8dc.tar.bz2 |
Distinguish between Roster and MUC list widgets
Diffstat (limited to 'Swift/QtUI/QtMainWindow.h')
-rw-r--r-- | Swift/QtUI/QtMainWindow.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Swift/QtUI/QtMainWindow.h b/Swift/QtUI/QtMainWindow.h index bb3e9df..321fa2d 100644 --- a/Swift/QtUI/QtMainWindow.h +++ b/Swift/QtUI/QtMainWindow.h @@ -19,30 +19,29 @@ class QComboBox; class QLineEdit; class QPushButton; class QToolBar; class QAction; class QMenu; class QTabWidget; namespace Swift { - class QtTreeWidget; - class QtTreeWidgetFactory; + class QtRosterWidget; class TreeWidget; class UIEventStream; class QtTabWidget; class QtSettingsProvider; class QtMainWindow : public QWidget, public MainWindow { Q_OBJECT public: QtMainWindow(QtSettingsProvider*, UIEventStream* eventStream); - ~QtMainWindow(); + virtual ~QtMainWindow(); std::vector<QMenu*> getMenus() {return menus_;} void setMyNick(const std::string& name); void setMyJID(const JID& jid); void setMyAvatarPath(const std::string& path); void setMyStatusText(const std::string& status); void setMyStatusType(StatusShow::Type type); void setConnecting(); QtEventWindow* getEventWindow(); QtChatListWindow* getChatListWindow(); @@ -60,19 +59,19 @@ namespace Swift { void handleAdHocActionTriggered(bool checked); void handleEventCountUpdated(int count); void handleChatCountUpdated(int count); void handleEditProfileRequest(); void handleTabChanged(int index); private: QtSettingsProvider* settings_; std::vector<QMenu*> menus_; - QtTreeWidget* treeWidget_; + QtRosterWidget* treeWidget_; QtRosterHeader* meView_; QAction* addUserAction_; QAction* editUserAction_; QAction* chatUserAction_; QAction* showOfflineAction_; QMenu* serverAdHocMenu_; QtTabWidget* tabs_; QWidget* contactsTabWidget_; QWidget* eventsTabWidget_; |