/** * @file XTPTabManagerAtom.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ /** @cond */ #if !defined(__XTPTABMANAGERATOM_H__) # define __XTPTABMANAGERATOM_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPTabManagerAtom is a class that has only one purpose; to catch * the event when a property of the PaintManager is changed. When * a property of the PaintManager is changed, OnPropertyChanged is * called. When OnPropertyChanged is caught, Reposition is called * to recalculate self-layout. * @details * This is the base class for CXTPTabManager. When a property of * the CXTPTabPaintManager is changed, OnPropertyChanged is called * to recalculate the layout. The paint manager can be accessed * with the CXTPTabManager::GetPaintManager member. * @see * CXTPTabManager::GetPaintManager */ class _XTP_EXT_CLASS CXTPTabManagerAtom { public: /** * @brief * This method is called when a property of the tab paint manager is changed. * @see * CXTPTabManager::GetPaintManager */ virtual void OnPropertyChanged() { Reposition(); } /** * @brief * Recalculates the layout of the tab manager and then repositions itself. * @details * This method must be overridden in derived classes. */ virtual void Reposition() = 0; protected: /** * @brief * Destroys a CXTPTabManagerAtom object, handles cleanup and deallocation. */ virtual ~CXTPTabManagerAtom() { } }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPTABMANAGERATOM_H__) /** @endcond */