Communities (#195)
This commit is contained in:
parent
81a706bf20
commit
312df6f3bb
23 changed files with 1054 additions and 13 deletions
|
|
@ -24,6 +24,8 @@
|
|||
#include <QTimer>
|
||||
#include <QWidget>
|
||||
|
||||
#include "CommunitiesList.h"
|
||||
#include "Community.h"
|
||||
#include <mtx.hpp>
|
||||
|
||||
class Cache;
|
||||
|
|
@ -80,6 +82,7 @@ private slots:
|
|||
void showUnreadMessageNotification(int count);
|
||||
void updateTopBarAvatar(const QString &roomid, const QPixmap &img);
|
||||
void updateOwnProfileInfo(const QUrl &avatar_url, const QString &display_name);
|
||||
void updateOwnCommunitiesInfo(const QList<QString> &own_communities);
|
||||
void setOwnAvatar(const QPixmap &img);
|
||||
void initialSyncCompleted(const mtx::responses::Sync &response);
|
||||
void syncCompleted(const mtx::responses::Sync &response);
|
||||
|
|
@ -126,13 +129,21 @@ private:
|
|||
QHBoxLayout *topLayout_;
|
||||
Splitter *splitter;
|
||||
|
||||
QFrame *sideBar_;
|
||||
QWidget *sideBar_;
|
||||
QWidget *communitiesSideBar_;
|
||||
QVBoxLayout *communitiesSideBarLayout_;
|
||||
QVBoxLayout *sideBarLayout_;
|
||||
QVBoxLayout *sideBarTopLayout_;
|
||||
QVBoxLayout *sideBarMainLayout_;
|
||||
QWidget *sideBarTopWidget_;
|
||||
QVBoxLayout *sideBarTopWidgetLayout_;
|
||||
|
||||
QFrame *content_;
|
||||
QVBoxLayout *contentLayout_;
|
||||
|
||||
CommunitiesList *communitiesList_;
|
||||
RoomList *room_list_;
|
||||
|
||||
TimelineViewManager *view_manager_;
|
||||
SideBarActions *sidebarActions_;
|
||||
|
||||
|
|
@ -145,13 +156,18 @@ private:
|
|||
QTimer *consensusTimer_;
|
||||
|
||||
QString current_room_;
|
||||
QString current_community_;
|
||||
|
||||
QMap<QString, QPixmap> room_avatars_;
|
||||
QMap<QString, QPixmap> community_avatars_;
|
||||
|
||||
UserInfoWidget *user_info_widget_;
|
||||
|
||||
QMap<QString, RoomState> state_manager_;
|
||||
QMap<QString, QSharedPointer<RoomSettings>> settingsManager_;
|
||||
|
||||
QMap<QString, QSharedPointer<Community>> communityManager_;
|
||||
|
||||
// Keeps track of the users currently typing on each room.
|
||||
QMap<QString, QList<QString>> typingUsers_;
|
||||
QTimer *typingRefresher_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue