/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_VCL_THROBBER_HXX #define INCLUDED_VCL_THROBBER_HXX #include #include #include #include #include class VCL_DLLPUBLIC Throbber : public ImageControl { public: enum class ImageSet { /// default images, 16x16 pixels N16px, /// default images, 32x32 pixels N32px, /// default images, 64x64 pixels N64px, }; public: Throbber(vcl::Window* i_parentWindow, WinBits i_style); virtual ~Throbber() override; virtual void dispose() override; // Properties void setStepTime( sal_Int32 nStepTime ) { mnStepTime = nStepTime; } sal_Int32 getStepTime() const { return mnStepTime; } void setRepeat( bool bRepeat ) { mbRepeat = bRepeat; } bool getRepeat() const { return mbRepeat; } // animation control void start(); void stop(); bool isRunning() const; void setImageList( ::std::vector< Image > const& i_images ); // default images static ::std::vector< OUString > getDefaultImageURLs( const ImageSet i_imageSet ); protected: // Window overridables virtual void Resize() override; private: SAL_DLLPRIVATE void initImages(); private: ::std::vector< Image > maImageList; bool mbRepeat; sal_Int32 mnStepTime; sal_Int32 mnCurStep; AutoTimer maWaitTimer; DECL_LINK( TimeOutHdl, Timer*, void ); }; #endif // INCLUDED_VCL_THROBBER_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ abora/co-22.05-testflight'>distro/collabora/co-22.05-testflight LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2018-05-03loplugin:useuniqueptr in SdrMarkListNoel Grandin
2017-10-24loplugin:finalclasses in svxNoel Grandin
2017-08-17remove UL/L suffixes from integer constants on the RHS of expressionsNoel Grandin
2017-07-27loplugin:constparams in svxNoel Grandin
2017-03-31tdf#82580 tools: rename Rectangle to tools::RectangleMiklos Vajna
2016-11-08simplify mark points and gluepoints managementCaolán McNamara
2016-09-16loplogin:singlevalfields in include/Noel Grandin
2016-09-13Remove nonsense comments: // bitfieldTor Lillqvist
2016-05-20clang-tidy misc-assign-operator-signatureNoel Grandin
2016-02-08loplugin:unusedmethodsNoel Grandin
2016-01-13loplugin:unusedmethods unused return value in include/svxNoel Grandin
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
2015-08-28time stamp object selections and use newest as ref for equalizationCaolán McNamara
2015-08-16tdf#39468 Translate German comments - include/svxPhilipp Weissenbacher
2015-07-16loplugin:unusedmethods svxNoel Grandin
2014-08-16Consistently use size_t and SAL_MAX_SIZEMatteo Casalin
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann
2014-03-11svx: sal_Bool->boolNoel Grandin
2014-03-01Remove visual noise from includeAlexander Wilms
2013-10-23fixincludeguards.sh: include/svxThomas Arnhold
2013-09-25Related: fdo#38838 remove UniString::EqualsIgnoreCaseAsciiCaolán McNamara
2013-08-13XubString->OUStringCaolán McNamara
2013-08-06Translate German comments, fix some WSPhilipp Weissenbacher
2013-04-23execute move of global headersBjoern Michaelsen