swift
Loading...
Searching...
No Matches
swift::gui::CLoadIndicatorEnabled Class Reference

Enable widget class for load indicator. More...

#include <loadindicator.h>

Inheritance diagram for swift::gui::CLoadIndicatorEnabled:
[legend]

Public Member Functions

 CLoadIndicatorEnabled (QWidget *usingWidget)
 Ctor.
virtual ~CLoadIndicatorEnabled ()=default
 Destructor.
 CLoadIndicatorEnabled (const CLoadIndicatorEnabled &)=delete
 Copy constructor.
CLoadIndicatorEnabled & operator= (const CLoadIndicatorEnabled &)=delete
 Copy assignment operator.
bool isShowingLoadIndicator () const
 Showing load indicator?
void showLoading (std::chrono::milliseconds timeout=std::chrono::milliseconds(0), bool processEvents=true)
 Show load indicator.
void hideLoading ()
 Hide load indicator.
bool isLoadInProgress () const
 Loading in progress?

Protected Member Functions

void centerLoadIndicator ()
 Center load indicator.
virtual void indicatorTimedOut ()
 Indicator timed out.

Protected Attributes

QWidget * m_usingWidget = nullptr
 widget which uses load indicator
CLoadIndicator * m_loadIndicator = nullptr
 indicator itself
bool m_loadInProgress = false
 flag indicating loading
int m_indicatorId = -1
 last indicator id returned

Detailed Description

Enable widget class for load indicator.

Definition at line 120 of file loadindicator.h.

Constructor & Destructor Documentation

◆ CLoadIndicatorEnabled()

swift::gui::CLoadIndicatorEnabled::CLoadIndicatorEnabled ( QWidget * usingWidget)

Ctor.

Definition at line 200 of file loadindicator.cpp.

Member Function Documentation

◆ centerLoadIndicator()

void swift::gui::CLoadIndicatorEnabled::centerLoadIndicator ( )
protected

Center load indicator.

Definition at line 232 of file loadindicator.cpp.

◆ hideLoading()

void swift::gui::CLoadIndicatorEnabled::hideLoading ( )

Hide load indicator.

Definition at line 224 of file loadindicator.cpp.

◆ indicatorTimedOut()

void swift::gui::CLoadIndicatorEnabled::indicatorTimedOut ( )
protectedvirtual

Indicator timed out.

Remarks
override for usage

Definition at line 242 of file loadindicator.cpp.

◆ isLoadInProgress()

bool swift::gui::CLoadIndicatorEnabled::isLoadInProgress ( ) const

Loading in progress?

Definition at line 210 of file loadindicator.cpp.

◆ isShowingLoadIndicator()

bool swift::gui::CLoadIndicatorEnabled::isShowingLoadIndicator ( ) const

Showing load indicator?

Definition at line 205 of file loadindicator.cpp.

◆ showLoading()

void swift::gui::CLoadIndicatorEnabled::showLoading ( std::chrono::milliseconds timeout = std::chrono::milliseconds(0),
bool processEvents = true )

Show load indicator.

Definition at line 212 of file loadindicator.cpp.

Member Data Documentation

◆ m_indicatorId

int swift::gui::CLoadIndicatorEnabled::m_indicatorId = -1
protected

last indicator id returned

Definition at line 158 of file loadindicator.h.

◆ m_loadIndicator

CLoadIndicator* swift::gui::CLoadIndicatorEnabled::m_loadIndicator = nullptr
protected

indicator itself

Definition at line 156 of file loadindicator.h.

◆ m_loadInProgress

bool swift::gui::CLoadIndicatorEnabled::m_loadInProgress = false
protected

flag indicating loading

Definition at line 157 of file loadindicator.h.

◆ m_usingWidget

QWidget* swift::gui::CLoadIndicatorEnabled::m_usingWidget = nullptr
protected

widget which uses load indicator

Definition at line 155 of file loadindicator.h.


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