qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
#include <groupwidget.h>
Signals | |
void | groupWidgetClicked (GroupWidget *widget) |
void | removeGroup (const GroupId &groupId) |
![]() | |
void | chatroomWidgetClicked (GenericChatroomWidget *widget) |
void | newWindowOpened (GenericChatroomWidget *widget) |
void | middleMouseClicked () |
Public Member Functions | |
GroupWidget (std::shared_ptr< GroupChatroom > chatroom, bool compact) | |
~GroupWidget () | |
void | setAsInactiveChatroom () final |
void | setAsActiveChatroom () final |
void | updateStatusLight () final |
void | resetEventFlags () final |
QString | getStatusString () const final |
Group * | getGroup () const final |
const Contact * | getContact () const final |
void | setName (const QString &name) |
void | editName () |
bool | isFriend () const final |
bool | isGroup () const final |
QString | getNameItem () const final |
bool | isOnline () const final |
bool | widgetIsVisible () const final |
QDateTime | getLastActivity () const final |
QWidget * | getWidget () final |
void | setWidgetVisible (bool visible) final |
![]() | |
GenericChatroomWidget (bool compact, QWidget *parent=nullptr) | |
![]() | |
GenericChatItemWidget (bool compact, QWidget *parent=nullptr) | |
bool | isCompact () const |
void | setCompact (bool compact) |
QString | getName () const |
void | searchName (const QString &searchString, bool hideAll) |
![]() | |
IFriendListItem ()=default | |
virtual | ~IFriendListItem () |
IFriendListItem (const IFriendListItem &)=default | |
IFriendListItem & | operator= (const IFriendListItem &)=default |
IFriendListItem (IFriendListItem &&)=default | |
IFriendListItem & | operator= (IFriendListItem &&)=default |
virtual int | getCircleId () const |
int | getNameSortedPos () const |
void | setNameSortedPos (int pos) |
Public Attributes | |
GroupId | groupId |
Protected Member Functions | |
void | contextMenuEvent (QContextMenuEvent *event) final |
void | mousePressEvent (QMouseEvent *event) final |
void | mouseMoveEvent (QMouseEvent *event) final |
void | dragEnterEvent (QDragEnterEvent *ev) override |
void | dragLeaveEvent (QDragLeaveEvent *ev) override |
void | dropEvent (QDropEvent *ev) override |
![]() | |
void | mouseReleaseEvent (QMouseEvent *event) override |
void | enterEvent (QEvent *e) override |
void | leaveEvent (QEvent *e) override |
void | setActive (bool active) |
Private Slots | |
void | retranslateUi () |
void | updateTitle (const QString &author, const QString &newName) |
void | updateUserCount (int numPeers) |
Private Attributes | |
std::shared_ptr< GroupChatroom > | chatroom |
Additional Inherited Members | |
![]() | |
enum | ItemType { GroupItem, FriendOfflineItem, FriendOnlineItem } |
![]() | |
virtual const Friend * | getFriend () const |
bool | eventFilter (QObject *, QEvent *) final |
bool | isActive () |
void | setName (const QString &name) |
void | setStatusMsg (const QString &status) |
QString | getStatusMsg () const |
QString | getTitle () const |
void | activate () |
void | compactChange (bool compact) |
void | reloadTheme () override |
![]() | |
virtual void | reloadTheme () |
![]() | |
QPoint | dragStartPos |
QColor | lastColor |
QHBoxLayout * | mainLayout = nullptr |
QVBoxLayout * | textLayout = nullptr |
MaskablePixmapWidget * | avatar |
CroppingLabel * | statusMessageLabel |
bool | active |
![]() | |
CroppingLabel * | nameLabel |
QLabel | statusPic |
![]() | |
bool | compact |
Definition at line 30 of file groupwidget.h.
GroupWidget::GroupWidget | ( | std::shared_ptr< GroupChatroom > | chatroom, |
bool | compact | ||
) |
Definition at line 44 of file groupwidget.cpp.
GroupWidget::~GroupWidget | ( | ) |
|
finalprotected |
|
overrideprotected |
Definition at line 248 of file groupwidget.cpp.
|
overrideprotected |
Definition at line 263 of file groupwidget.cpp.
|
overrideprotected |
Definition at line 270 of file groupwidget.cpp.
void GroupWidget::editName | ( | ) |
Definition at line 187 of file groupwidget.cpp.
|
finalvirtual |
Implements GenericChatroomWidget.
Definition at line 238 of file groupwidget.cpp.
|
finalvirtual |
Reimplemented from GenericChatroomWidget.
Definition at line 233 of file groupwidget.cpp.
|
finalvirtual |
Implements IFriendListItem.
Definition at line 217 of file groupwidget.cpp.
|
finalvirtual |
Implements IFriendListItem.
Definition at line 202 of file groupwidget.cpp.
|
finalvirtual |
Implements GenericChatroomWidget.
Definition at line 178 of file groupwidget.cpp.
|
finalvirtual |
Implements IFriendListItem.
Definition at line 222 of file groupwidget.cpp.
|
signal |
|
finalvirtual |
Implements IFriendListItem.
Definition at line 192 of file groupwidget.cpp.
|
finalvirtual |
Implements IFriendListItem.
Definition at line 197 of file groupwidget.cpp.
|
finalvirtual |
Implements IFriendListItem.
Definition at line 207 of file groupwidget.cpp.
|
finalprotected |
|
finalprotected |
Definition at line 124 of file groupwidget.cpp.
|
signal |
|
finalvirtual |
Implements GenericChatroomWidget.
Definition at line 243 of file groupwidget.cpp.
|
privateslot |
|
finalvirtual |
Implements GenericChatroomWidget.
Definition at line 157 of file groupwidget.cpp.
|
finalvirtual |
Implements GenericChatroomWidget.
Definition at line 163 of file groupwidget.cpp.
void GroupWidget::setName | ( | const QString & | name | ) |
|
finalvirtual |
Implements IFriendListItem.
Definition at line 227 of file groupwidget.cpp.
|
finalvirtual |
Implements GenericChatroomWidget.
Definition at line 169 of file groupwidget.cpp.
|
privateslot |
|
privateslot |
Definition at line 152 of file groupwidget.cpp.
|
finalvirtual |
Implements IFriendListItem.
Definition at line 212 of file groupwidget.cpp.
|
private |
Definition at line 76 of file groupwidget.h.
GroupId GroupWidget::groupId |
Definition at line 73 of file groupwidget.h.