mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
refactor: Rename blackgui to swift::gui
This commit is contained in:
46
src/gui/enableforviewbasedindicator.h
Normal file
46
src/gui/enableforviewbasedindicator.h
Normal file
@@ -0,0 +1,46 @@
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef SWIFT_GUI_ENABLEFORVIEWBASEDINDICATOR_H
|
||||
#define SWIFT_GUI_ENABLEFORVIEWBASEDINDICATOR_H
|
||||
|
||||
#include "gui/swiftguiexport.h"
|
||||
|
||||
namespace swift::gui::views
|
||||
{
|
||||
class CViewBaseNonTemplate;
|
||||
}
|
||||
namespace swift::gui
|
||||
{
|
||||
//! Hand over indication task to an embedded view
|
||||
class SWIFT_GUI_EXPORT CEnableForViewBasedIndicator
|
||||
{
|
||||
public:
|
||||
//! Enable loading indicator
|
||||
void enableLoadIndicator(bool enable);
|
||||
|
||||
//! Showing load indicator?
|
||||
bool isShowingLoadIndicator() const;
|
||||
|
||||
//! Show loading indicator
|
||||
int showLoadIndicator(int timeoutMs = -1);
|
||||
|
||||
//! Hide loading indicator
|
||||
void hideLoadIndicator();
|
||||
|
||||
protected:
|
||||
//! Constructor
|
||||
CEnableForViewBasedIndicator(views::CViewBaseNonTemplate *viewWithIndicator = nullptr);
|
||||
|
||||
//! Set the corresponding view
|
||||
void setViewWithIndicator(swift::gui::views::CViewBaseNonTemplate *viewWithIndicator);
|
||||
|
||||
private:
|
||||
views::CViewBaseNonTemplate *m_viewWithIndicator = nullptr;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user