|
ORE Studio 0.0.4
|
Base class for entity list MDI windows providing stale indicator support. More...
#include <EntityListMdiWindow.hpp>


Public Slots | |
| void | markAsStale () |
| Mark the list as stale (data changed on server). | |
| void | clearStaleIndicator () |
| Clear the stale indicator. | |
| virtual void | reload ()=0 |
| Reload data from the server. | |
Public Member Functions | |
| EntityListMdiWindow (QWidget *parent=nullptr) | |
Protected Member Functions | |
| void | initializeStaleIndicator (QAction *refreshAction, const QString &iconPath) |
| Initialize the stale indicator support. | |
| virtual QString | normalRefreshTooltip () const |
| Get the normal (non-stale) tooltip text for the refresh action. | |
| virtual QString | staleRefreshTooltip () const |
| Get the stale tooltip text for the refresh action. | |
Base class for entity list MDI windows providing stale indicator support.
This class provides common functionality for entity list windows including:
Subclasses must:
Example usage in subclass:
|
slot |
Mark the list as stale (data changed on server).
Starts a pulse animation on the refresh action to indicate that server-side data has changed and the list should be reloaded.
|
slot |
Clear the stale indicator.
Stops the pulse animation and restores the normal refresh icon. Call this at the start of reload() implementations.
|
pure virtualslot |
Reload data from the server.
Subclasses must implement this to refresh their data. Implementations should call clearStaleIndicator() first.
|
protected |
Initialize the stale indicator support.
Call this after creating the refresh action in setupToolbar().
| refreshAction | The refresh/reload action to animate |
| iconPath | Path to the refresh icon SVG resource |
|
protectedvirtual |
Get the normal (non-stale) tooltip text for the refresh action.
Override this to customize the tooltip text.
Reimplemented in AccountMdiWindow, CatalogMdiWindow, ChangeReasonCategoryMdiWindow, ChangeReasonMdiWindow, CountryMdiWindow, CurrencyMdiWindow, DatasetBundleMdiWindow, FeatureFlagMdiWindow, OriginDimensionMdiWindow, and RoleMdiWindow.
|
protectedvirtual |
Get the stale tooltip text for the refresh action.
Override this to customize the tooltip text.