*/
void reDrawFriendsPanel(int width, int height);
+private slots:
+ /**
+ * @brief Slot to clear friend list filter.
+ */
+ void clearFriendListFilter();
+
+ /**
+ * @brief Slot to show friends in list.
+ *
+ * Shows only friends that are on userIDs list.
+ * @param userIDs list of user ID's
+ */
+ void showFriendsInList(const QList<QString> &userIDs);
+
/*******************************************************************************
* SIGNALS
******************************************************************************/
signals:
+ /**
+ * @brief Signal for friend finding.
+ *
+ * @param coordinates longitude and latitude values
+ */
void findFriend(const QPointF &coordinates);
/*******************************************************************************
******************************************************************************/
private:
FriendListView *m_friendListView; ///< Friend list view
- QVBoxLayout *m_friendsPanelVBox; ///< Vertical layout inside the panel
PanelSliderBar *m_friendsPanelSlidingBar; ///< Widget for sidebar tab item
-
- QStateMachine *m_friendsPanelStateMachine; ///< State machine for sliding the panel
+ QPushButton *m_clearFilterButton; ///< Button to clear list filtering
QState *m_friendsPanelStateClosed; ///< State of the closed panel
+ QStateMachine *m_friendsPanelStateMachine; ///< State machine for sliding the panel
QState *m_friendsPanelStateOpened; ///< State of the opened panel
QSignalTransition *m_friendsPanelTransitionClose; ///< Transition signal for closing the panel
QSignalTransition *m_friendsPanelTransitionOpen; ///< Transition signal for opening the panel
+ QVBoxLayout *m_friendsPanelVBox; ///< Vertical layout inside the panel
+ QWidget *m_panelBase; ///< Widget for panel base
};
#endif // FRIENDLISTPANEL_H