CustusX
16.12-rc1
An IGT application
|
#include <cxViewCache.h>
Public Member Functions | |
ViewCache (QWidget *widget, QString typeText) | |
VIEW_TYPE * | retrieveView () |
void | clearUsedViews () |
void | clearCache () |
Cache for reuse of Views. Use the retrieve*() method to get views that can be used in layouts. You will get unique views for each call. When rebuilding the gui, remove all views from their layouts, and call clearUsedViews(). The cache will assume all views now are free and ready for reuse.
Definition at line 66 of file cxViewCache.h.
|
inline |
Definition at line 69 of file cxViewCache.h.
|
inline |
Clear all cached values
Definition at line 103 of file cxViewCache.h.
|
inline |
Reset the cache for new use. Remove all used views from the central widget and hide them.
Definition at line 95 of file cxViewCache.h.
|
inline |
Retrieve a view that is unique since the last call to clearUsedViews()
Definition at line 75 of file cxViewCache.h.