SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
UserInfoDialog Class Reference

Dialog that allows a user to sign in. More...

#include <user_info_dialog.hpp>

Inheritance diagram for UserInfoDialog:
Inheritance graph
[legend]

Public Member Functions

 UserInfoDialog (uint32_t showing_id, const core::stringw info="", bool error=false, bool from_queue=false)
 
virtual void beforeAddingWidgets ()
 Optional callback invoked very early, before widgets have been added (contrast with init(), which is invoked afer widgets were added)
 
virtual void load ()
 
void onEnterPressedInternal ()
 
GUIEngine::EventPropagation processEvent (const std::string &eventSource)
 Returns whether to block event propagation (usually, you will want to block events you processed)
 
virtual bool onEscapePressed ()
 Override to change what happens on escape pressed.
 
virtual void onUpdate (float dt)
 Override to be notified of updates.
 
virtual void init ()
 Optional callback invoked after widgets have been add()ed.
 
- Public Member Functions inherited from GUIEngine::ModalDialog
bool isInited ()
 Because C++ doesn't support constructor delegation...
 
virtual EventPropagation processEvent (const std::string &eventSource)
 Returns whether to block event propagation (usually, you will want to block events you processed)
 
irr::gui::IGUIWindow * getIrrlichtElement ()
 
virtual bool onEscapePressed ()
 Override to change what happens on escape pressed.
 
virtual void onUpdate (float dt)
 Override to be notified of updates.
 
virtual void beforeAddingWidgets ()
 Optional callback invoked very early, before widgets have been added (contrast with init(), which is invoked afer widgets were added)
 
virtual void load ()
 
virtual void init ()
 Optional callback invoked after widgets have been add()ed.
 
virtual int getWidth ()
 Implementing callback from AbstractTopLevelContainer.
 
virtual int getHeight ()
 Implementing callback from AbstractTopLevelContainer.
 
bool fadeBackground () const
 
bool isMyIrrChild (irr::gui::IGUIElement *widget) const
 
virtual bool enableScreenPadding () const
 
- Public Member Functions inherited from GUIEngine::AbstractTopLevelContainer
virtual int getWidth ()=0
 
virtual int getHeight ()=0
 
WidgetgetWidget (const char *name)
 This function returns a widget by name if that widget is found.
 
WidgetgetWidget (const int id)
 This function returns a widget by irrlicht ID if that widget is found.
 
template<typename T >
T * getWidget (const char *name)
 This function searches and returns a widget by name, cast as specified type, if that widget is found and the type is correct.
 
WidgetgetFirstWidget (PtrVector< Widget > *within_vector=NULL)
 This function returns the first widget found in within_vector.
 
WidgetgetLastWidget (PtrVector< Widget > *within_vector=NULL)
 This function returns the last widget found in within_vector.
 
void elementsWereDeleted (PtrVector< Widget > *within_vector=NULL)
 This function is called when screen is removed.
 
bool isMyChild (Widget *widget) const
 This function checks if a widget is a child of the container.
 
virtual bool enableScreenPadding () const
 

Private Member Functions

void requestJoin ()
 
void activate ()
 
void deactivate ()
 
void sendFriendRequest ()
 Sends a friend request to the server.
 
void acceptFriendRequest ()
 Sends an AcceptFriend request to the server.
 
void declineFriendRequest ()
 A request to the server, to decline a friend request.
 
void removeExistingFriend ()
 Removes an existing friend.
 
void removePendingFriend ()
 Removes a pending friend request.
 

Private Attributes

bool m_self_destroy
 
bool m_enter_profile
 
bool m_processing
 
bool m_error
 
irr::core::stringw m_info
 
const uint32_t m_showing_id
 
Online::OnlineProfilem_online_profile
 
GUIEngine::LabelWidgetm_desc_widget
 
GUIEngine::LabelWidgetm_info_widget
 
GUIEngine::RibbonWidgetm_options_widget
 
GUIEngine::IconButtonWidgetm_remove_widget
 
GUIEngine::IconButtonWidgetm_friend_widget
 
GUIEngine::IconButtonWidgetm_accept_widget
 
GUIEngine::IconButtonWidgetm_decline_widget
 
GUIEngine::IconButtonWidgetm_enter_widget
 
GUIEngine::IconButtonWidgetm_cancel_widget
 

Additional Inherited Members

- Static Public Member Functions inherited from GUIEngine::ModalDialog
static void dismiss ()
 
static void onEnterPressed ()
 
static ModalDialoggetCurrent ()
 
static bool isADialogActive ()
 
- Static Public Member Functions inherited from GUIEngine::AbstractTopLevelContainer
static WidgetgetWidget (const char *name, PtrVector< Widget > *within_vector)
 This function returns a widget by name if that widget is found in within_vector.
 
static WidgetgetWidget (const int id, PtrVector< Widget > *within_vector)
 This function returns a widget by irrlicht ID if that widget is found.
 
- Public Attributes inherited from GUIEngine::SkinWidgetContainer
int m_skin_x
 
int m_skin_y
 
int m_skin_w
 
int m_skin_h
 
bool m_skin_dest_areas_inited
 
bool m_skin_dest_areas_yflip_inited
 
int m_skin_dest_x
 
int m_skin_dest_y
 
int m_skin_dest_x2
 
int m_skin_dest_y2
 
core::rect< s32 > m_skin_dest_area_left
 
core::rect< s32 > m_skin_dest_area_center
 
core::rect< s32 > m_skin_dest_area_right
 
core::rect< s32 > m_skin_dest_area_top
 
core::rect< s32 > m_skin_dest_area_bottom
 
core::rect< s32 > m_skin_dest_area_top_left
 
core::rect< s32 > m_skin_dest_area_top_right
 
core::rect< s32 > m_skin_dest_area_bottom_left
 
core::rect< s32 > m_skin_dest_area_bottom_right
 
core::rect< s32 > m_skin_dest_area_left_yflip
 
core::rect< s32 > m_skin_dest_area_center_yflip
 
core::rect< s32 > m_skin_dest_area_right_yflip
 
core::rect< s32 > m_skin_dest_area_top_yflip
 
core::rect< s32 > m_skin_dest_area_bottom_yflip
 
core::rect< s32 > m_skin_dest_area_top_left_yflip
 
core::rect< s32 > m_skin_dest_area_top_right_yflip
 
core::rect< s32 > m_skin_dest_area_bottom_left_yflip
 
core::rect< s32 > m_skin_dest_area_bottom_right_yflip
 
short m_skin_r
 
short m_skin_g
 
short m_skin_b
 
- Protected Member Functions inherited from GUIEngine::ModalDialog
 ModalDialog (const float percentWidth, const float percentHeight, ModalDialogLocation location=MODAL_DIALOG_LOCATION_CENTER)
 Creates a modal dialog with given percentage of screen width and height.
 
void loadFromFile (const char *xmlFile)
 Load a XML file to create the dialog from.
 
virtual void onEnterPressedInternal ()
 
void clearWindow ()
 
virtual void loadedFromFile ()
 Callback invoked when the dialog was loaded from the XML file (if the constructor that takes a XML file as argument is used)
 
void doInit ()
 
- Protected Member Functions inherited from GUIEngine::AbstractTopLevelContainer
void addWidgetsRecursively (PtrVector< Widget > &widgets, Widget *parent=NULL)
 This function adds a list of widgets recursively, effectively creating the hierarchy of widgets.
 
- Protected Attributes inherited from GUIEngine::ModalDialog
irr::gui::IGUIWindow * m_irrlicht_window
 
irr::core::rect< irr::s32 > m_area
 
bool m_fade_background
 
InputManager::InputDriverMode m_previous_mode
 
- Protected Attributes inherited from GUIEngine::AbstractTopLevelContainer
PtrVector< Widget, HOLD > m_widgets
 the widgets in this screen
 
Widgetm_first_widget
 AbstractTopLevelContainer is generally able to determine its first widget just fine, but in highly complex screens (e.g.
 
Widgetm_last_widget
 AbstractTopLevelContainer is generally able to determine its last widget just fine, but in highly complex screens (e.g.
 

Detailed Description

Dialog that allows a user to sign in.

Member Function Documentation

◆ acceptFriendRequest()

void UserInfoDialog::acceptFriendRequest ( )
private

Sends an AcceptFriend request to the server.

It will show a popup menu with the result once the request has been processed.

Callback for the request to accept a friend invitation. Shows a confirmation message and takes care of updating all the cached information.

◆ beforeAddingWidgets()

void UserInfoDialog::beforeAddingWidgets ( )
virtual

Optional callback invoked very early, before widgets have been added (contrast with init(), which is invoked afer widgets were added)

Reimplemented from GUIEngine::ModalDialog.

◆ declineFriendRequest()

void UserInfoDialog::declineFriendRequest ( )
private

A request to the server, to decline a friend request.

Parameters
friend_idThe id of the user of which the request has to be declined.

A request to the server, to cancel a pending friend request.

Parameters
friend_idThe id of the user of which the request has to be canceled.

◆ init()

void UserInfoDialog::init ( )
virtual

Optional callback invoked after widgets have been add()ed.

Reimplemented from GUIEngine::ModalDialog.

◆ load()

void UserInfoDialog::load ( )
virtual

Reimplemented from GUIEngine::ModalDialog.

◆ onEnterPressedInternal()

void UserInfoDialog::onEnterPressedInternal ( )
virtual

Reimplemented from GUIEngine::ModalDialog.

◆ onEscapePressed()

bool UserInfoDialog::onEscapePressed ( )
virtual

Override to change what happens on escape pressed.

Reimplemented from GUIEngine::ModalDialog.

◆ onUpdate()

void UserInfoDialog::onUpdate ( float  dt)
virtual

Override to be notified of updates.

Reimplemented from GUIEngine::ModalDialog.

◆ processEvent()

GUIEngine::EventPropagation UserInfoDialog::processEvent ( const std::string &  eventSource)
virtual

Returns whether to block event propagation (usually, you will want to block events you processed)

Reimplemented from GUIEngine::ModalDialog.

◆ removeExistingFriend()

void UserInfoDialog::removeExistingFriend ( )
private

Removes an existing friend.

An inline class for the remove friend request.

◆ removePendingFriend()

void UserInfoDialog::removePendingFriend ( )
private

Removes a pending friend request.

Callback for the request to cancel a friend invitation. Shows a confirmation message and takes care of updating all the cached information.

◆ sendFriendRequest()

void UserInfoDialog::sendFriendRequest ( )
private

Sends a friend request to the server.

When the request is finished, it show a dialog with the result of this request.

Callback for the request to send a friend invitation. Shows a confirmation message and takes care of updating all the cached information.


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