qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Slots | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
CategoryWidget Class Reference

#include <categorywidget.h>

Inheritance diagram for CategoryWidget:
Inheritance graph
Collaboration diagram for CategoryWidget:
Collaboration graph

Public Slots

void onCompactChanged (bool compact)
 
void moveFriendWidgets (FriendListWidget *friendList)
 
- Public Slots inherited from GenericChatItemWidget
virtual void reloadTheme ()
 

Public Member Functions

 CategoryWidget (bool compact, QWidget *parent=nullptr)
 
bool isExpanded () const
 
void setExpanded (bool isExpanded, bool save=true)
 
void setName (const QString &name, bool save=true)
 
void addFriendWidget (FriendWidget *w, Status::Status s)
 
void removeFriendWidget (FriendWidget *w, Status::Status s)
 
void updateStatus ()
 
bool hasChatrooms () const
 
bool cycleContacts (bool forward)
 
bool cycleContacts (FriendWidget *activeChatroomWidget, bool forward)
 
void search (const QString &searchString, bool updateAll=false, bool hideOnline=false, bool hideOffline=false)
 
- Public Member Functions inherited from GenericChatItemWidget
 GenericChatItemWidget (bool compact, QWidget *parent=nullptr)
 
bool isCompact () const
 
void setCompact (bool compact)
 
QString getName () const
 
void searchName (const QString &searchString, bool hideAll)
 

Protected Member Functions

void leaveEvent (QEvent *event) final
 
void mouseReleaseEvent (QMouseEvent *event) final
 
void editName ()
 
void setContainerAttribute (Qt::WidgetAttribute attribute, bool enabled)
 
QLayout * friendOnlineLayout () const
 
QLayout * friendOfflineLayout () const
 
void emitChatroomWidget (QLayout *layout, int index)
 

Private Member Functions

virtual void onSetName ()
 
virtual void onExpand ()
 
virtual void onAddFriendWidget (FriendWidget *)
 

Private Attributes

QWidget * listWidget
 
FriendListLayoutlistLayout
 
QVBoxLayout * fullLayout
 
QVBoxLayout * mainLayout = nullptr
 
QHBoxLayout * topLayout = nullptr
 
QLabel * statusLabel
 
QWidget * container
 
QFrame * lineFrame
 
bool expanded = false
 

Additional Inherited Members

- Public Types inherited from GenericChatItemWidget
enum  ItemType { GroupItem, FriendOfflineItem, FriendOnlineItem }
 
- Protected Attributes inherited from GenericChatItemWidget
CroppingLabelnameLabel
 
QLabel statusPic
 
- Properties inherited from GenericChatItemWidget
bool compact
 

Detailed Description

Definition at line 32 of file categorywidget.h.

Constructor & Destructor Documentation

◆ CategoryWidget()

CategoryWidget::CategoryWidget ( bool  compact,
QWidget *  parent = nullptr 
)
explicit

Definition at line 41 of file categorywidget.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addFriendWidget()

void CategoryWidget::addFriendWidget ( FriendWidget w,
Status::Status  s 
)

Definition at line 130 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cycleContacts() [1/2]

bool CategoryWidget::cycleContacts ( bool  forward)

Definition at line 167 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cycleContacts() [2/2]

bool CategoryWidget::cycleContacts ( FriendWidget activeChatroomWidget,
bool  forward 
)

Definition at line 198 of file categorywidget.cpp.

Here is the call graph for this function:

◆ editName()

void CategoryWidget::editName ( )
protected

Definition at line 124 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ emitChatroomWidget()

void CategoryWidget::emitChatroomWidget ( QLayout *  layout,
int  index 
)
protected

Definition at line 32 of file categorywidget.cpp.

Here is the caller graph for this function:

◆ friendOfflineLayout()

QLayout * CategoryWidget::friendOfflineLayout ( ) const
protected

Definition at line 289 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ friendOnlineLayout()

QLayout * CategoryWidget::friendOnlineLayout ( ) const
protected

Definition at line 294 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasChatrooms()

bool CategoryWidget::hasChatrooms ( ) const

Definition at line 152 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isExpanded()

bool CategoryWidget::isExpanded ( ) const

Definition at line 78 of file categorywidget.cpp.

Here is the caller graph for this function:

◆ leaveEvent()

void CategoryWidget::leaveEvent ( QEvent *  event)
finalprotected

Definition at line 108 of file categorywidget.cpp.

◆ mouseReleaseEvent()

void CategoryWidget::mouseReleaseEvent ( QMouseEvent *  event)
finalprotected

Definition at line 277 of file categorywidget.cpp.

Here is the call graph for this function:

◆ moveFriendWidgets

void CategoryWidget::moveFriendWidgets ( FriendListWidget friendList)
slot

Definition at line 299 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onAddFriendWidget()

virtual void CategoryWidget::onAddFriendWidget ( FriendWidget )
inlineprivatevirtual

Reimplemented in CircleWidget.

Definition at line 73 of file categorywidget.h.

Here is the caller graph for this function:

◆ onCompactChanged

void CategoryWidget::onCompactChanged ( bool  compact)
slot

Definition at line 245 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onExpand()

virtual void CategoryWidget::onExpand ( )
inlineprivatevirtual

Reimplemented in CircleWidget.

Definition at line 70 of file categorywidget.h.

Here is the caller graph for this function:

◆ onSetName()

virtual void CategoryWidget::onSetName ( )
inlineprivatevirtual

Reimplemented in CircleWidget.

Definition at line 67 of file categorywidget.h.

Here is the caller graph for this function:

◆ removeFriendWidget()

void CategoryWidget::removeFriendWidget ( FriendWidget w,
Status::Status  s 
)

Definition at line 138 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ search()

void CategoryWidget::search ( const QString &  searchString,
bool  updateAll = false,
bool  hideOnline = false,
bool  hideOffline = false 
)

Definition at line 157 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setContainerAttribute()

void CategoryWidget::setContainerAttribute ( Qt::WidgetAttribute  attribute,
bool  enabled 
)
protected

Definition at line 283 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setExpanded()

void CategoryWidget::setExpanded ( bool  isExpanded,
bool  save = true 
)

Definition at line 83 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setName()

void CategoryWidget::setName ( const QString &  name,
bool  save = true 
)

Definition at line 113 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateStatus()

void CategoryWidget::updateStatus ( )

Definition at line 144 of file categorywidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ container

QWidget* CategoryWidget::container
private

Definition at line 83 of file categorywidget.h.

◆ expanded

bool CategoryWidget::expanded = false
private

Definition at line 85 of file categorywidget.h.

◆ fullLayout

QVBoxLayout* CategoryWidget::fullLayout
private

Definition at line 79 of file categorywidget.h.

◆ lineFrame

QFrame* CategoryWidget::lineFrame
private

Definition at line 84 of file categorywidget.h.

◆ listLayout

FriendListLayout* CategoryWidget::listLayout
private

Definition at line 78 of file categorywidget.h.

◆ listWidget

QWidget* CategoryWidget::listWidget
private

Definition at line 77 of file categorywidget.h.

◆ mainLayout

QVBoxLayout* CategoryWidget::mainLayout = nullptr
private

Definition at line 80 of file categorywidget.h.

◆ statusLabel

QLabel* CategoryWidget::statusLabel
private

Definition at line 82 of file categorywidget.h.

◆ topLayout

QHBoxLayout* CategoryWidget::topLayout = nullptr
private

Definition at line 81 of file categorywidget.h.


The documentation for this class was generated from the following files: