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

#include <friendlistwidget.h>

Inheritance diagram for FriendListWidget:
Inheritance graph
Collaboration diagram for FriendListWidget:
Collaboration graph

Public Types

using SortingMode = Settings::FriendListSortingMode
 

Public Slots

void renameGroupWidget (GroupWidget *groupWidget, const QString &newName)
 
void renameCircleWidget (CircleWidget *circleWidget, const QString &newName)
 
void onGroupchatPositionChanged (bool top)
 
void moveWidget (FriendWidget *w, Status::Status s, bool add=false)
 
void itemsChanged ()
 

Signals

void onCompactChanged (bool compact)
 
void connectCircleWidget (CircleWidget &circleWidget)
 
void searchCircle (CircleWidget &circleWidget)
 

Public Member Functions

 FriendListWidget (const Core &_core, Widget *parent, bool groupsOnTop=true)
 
 ~FriendListWidget ()
 
void setMode (SortingMode mode)
 
SortingMode getMode () const
 
void addGroupWidget (GroupWidget *widget)
 
void addFriendWidget (FriendWidget *w)
 
void removeGroupWidget (GroupWidget *w)
 
void removeFriendWidget (FriendWidget *w)
 
void addCircleWidget (int id)
 
void addCircleWidget (FriendWidget *widget=nullptr)
 
void removeCircleWidget (CircleWidget *widget)
 
void searchChatrooms (const QString &searchString, bool hideOnline=false, bool hideOffline=false, bool hideGroups=false)
 
void cycleContacts (GenericChatroomWidget *activeChatroomWidget, bool forward)
 
void updateActivityTime (const QDateTime &date)
 

Protected Member Functions

void dragEnterEvent (QDragEnterEvent *event) override
 
void dropEvent (QDropEvent *event) override
 

Private Slots

void dayTimeout ()
 

Private Member Functions

CircleWidgetcreateCircleWidget (int id=-1)
 
CategoryWidgetgetTimeCategoryWidget (const Friend *frd) const
 
void sortByMode (SortingMode mode)
 
void cleanMainLayout ()
 Clears the listLayout by performing the creation and ownership inverse of sortByMode. More...
 
QWidget * getNextWidgetForName (IFriendListItem *currentPos, bool forward) const
 
QVector< std::shared_ptr< IFriendListItem > > getItemsFromCircle (CircleWidget *circle) const
 

Private Attributes

SortingMode mode
 
QVBoxLayout * listLayout = nullptr
 
QVBoxLayout * activityLayout = nullptr
 
QTimer * dayTimer
 
FriendListManagermanager
 
const Corecore
 

Detailed Description

Definition at line 42 of file friendlistwidget.h.

Member Typedef Documentation

◆ SortingMode

Definition at line 46 of file friendlistwidget.h.

Constructor & Destructor Documentation

◆ FriendListWidget()

FriendListWidget::FriendListWidget ( const Core _core,
Widget parent,
bool  groupsOnTop = true 
)
explicit

Definition at line 100 of file friendlistwidget.cpp.

◆ ~FriendListWidget()

FriendListWidget::~FriendListWidget ( )

Definition at line 125 of file friendlistwidget.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addCircleWidget() [1/2]

void FriendListWidget::addCircleWidget ( FriendWidget widget = nullptr)

Definition at line 387 of file friendlistwidget.cpp.

Here is the call graph for this function:

◆ addCircleWidget() [2/2]

void FriendListWidget::addCircleWidget ( int  id)

Definition at line 382 of file friendlistwidget.cpp.

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

◆ addFriendWidget()

void FriendListWidget::addFriendWidget ( FriendWidget w)

Definition at line 359 of file friendlistwidget.cpp.

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

◆ addGroupWidget()

void FriendListWidget::addGroupWidget ( GroupWidget widget)

Definition at line 348 of file friendlistwidget.cpp.

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

◆ cleanMainLayout()

void FriendListWidget::cleanMainLayout ( )
private

Clears the listLayout by performing the creation and ownership inverse of sortByMode.

Definition at line 280 of file friendlistwidget.cpp.

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

◆ connectCircleWidget

void FriendListWidget::connectCircleWidget ( CircleWidget circleWidget)
signal
Here is the caller graph for this function:

◆ createCircleWidget()

CircleWidget * FriendListWidget::createCircleWidget ( int  id = -1)
private

Definition at line 603 of file friendlistwidget.cpp.

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

◆ cycleContacts()

void FriendListWidget::cycleContacts ( GenericChatroomWidget activeChatroomWidget,
bool  forward 
)

Definition at line 439 of file friendlistwidget.cpp.

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

◆ dayTimeout

void FriendListWidget::dayTimeout ( )
privateslot

Definition at line 549 of file friendlistwidget.cpp.

Here is the call graph for this function:

◆ dragEnterEvent()

void FriendListWidget::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotected

Definition at line 513 of file friendlistwidget.cpp.

Here is the call graph for this function:

◆ dropEvent()

void FriendListWidget::dropEvent ( QDropEvent *  event)
overrideprotected

Definition at line 524 of file friendlistwidget.cpp.

Here is the call graph for this function:

◆ getItemsFromCircle()

QVector< std::shared_ptr< IFriendListItem > > FriendListWidget::getItemsFromCircle ( CircleWidget circle) const
private

Definition at line 322 of file friendlistwidget.cpp.

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

◆ getMode()

FriendListWidget::SortingMode FriendListWidget::getMode ( ) const

Definition at line 343 of file friendlistwidget.cpp.

Here is the caller graph for this function:

◆ getNextWidgetForName()

QWidget * FriendListWidget::getNextWidgetForName ( IFriendListItem currentPos,
bool  forward 
) const
private

Definition at line 303 of file friendlistwidget.cpp.

Here is the call graph for this function:

◆ getTimeCategoryWidget()

CategoryWidget * FriendListWidget::getTimeCategoryWidget ( const Friend frd) const
private

Definition at line 335 of file friendlistwidget.cpp.

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

◆ itemsChanged

void FriendListWidget::itemsChanged ( )
slot

Definition at line 558 of file friendlistwidget.cpp.

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

◆ moveWidget

void FriendListWidget::moveWidget ( FriendWidget w,
Status::Status  s,
bool  add = false 
)
slot

Definition at line 563 of file friendlistwidget.cpp.

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

◆ onCompactChanged

void FriendListWidget::onCompactChanged ( bool  compact)
signal
Here is the caller graph for this function:

◆ onGroupchatPositionChanged

void FriendListWidget::onGroupchatPositionChanged ( bool  top)
slot

Definition at line 429 of file friendlistwidget.cpp.

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

◆ removeCircleWidget()

void FriendListWidget::removeCircleWidget ( CircleWidget widget)

Definition at line 404 of file friendlistwidget.cpp.

Here is the caller graph for this function:

◆ removeFriendWidget()

void FriendListWidget::removeFriendWidget ( FriendWidget w)

Definition at line 369 of file friendlistwidget.cpp.

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

◆ removeGroupWidget()

void FriendListWidget::removeGroupWidget ( GroupWidget w)

Definition at line 364 of file friendlistwidget.cpp.

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

◆ renameCircleWidget

void FriendListWidget::renameCircleWidget ( CircleWidget circleWidget,
const QString &  newName 
)
slot

Definition at line 420 of file friendlistwidget.cpp.

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

◆ renameGroupWidget

void FriendListWidget::renameGroupWidget ( GroupWidget groupWidget,
const QString &  newName 
)
slot

Definition at line 415 of file friendlistwidget.cpp.

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

◆ searchChatrooms()

void FriendListWidget::searchChatrooms ( const QString &  searchString,
bool  hideOnline = false,
bool  hideOffline = false,
bool  hideGroups = false 
)

Definition at line 409 of file friendlistwidget.cpp.

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

◆ searchCircle

void FriendListWidget::searchCircle ( CircleWidget circleWidget)
signal
Here is the caller graph for this function:

◆ setMode()

void FriendListWidget::setMode ( SortingMode  mode)

Definition at line 133 of file friendlistwidget.cpp.

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

◆ sortByMode()

void FriendListWidget::sortByMode ( SortingMode  mode)
private

Definition at line 144 of file friendlistwidget.cpp.

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

◆ updateActivityTime()

void FriendListWidget::updateActivityTime ( const QDateTime &  date)

Definition at line 590 of file friendlistwidget.cpp.

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

Member Data Documentation

◆ activityLayout

QVBoxLayout* FriendListWidget::activityLayout = nullptr
private

Definition at line 95 of file friendlistwidget.h.

◆ core

const Core& FriendListWidget::core
private

Definition at line 99 of file friendlistwidget.h.

◆ dayTimer

QTimer* FriendListWidget::dayTimer
private

Definition at line 96 of file friendlistwidget.h.

◆ listLayout

QVBoxLayout* FriendListWidget::listLayout = nullptr
private

Definition at line 94 of file friendlistwidget.h.

◆ manager

FriendListManager* FriendListWidget::manager
private

Definition at line 97 of file friendlistwidget.h.

◆ mode

SortingMode FriendListWidget::mode
private

Definition at line 93 of file friendlistwidget.h.


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