class RadiantUndoSystem : public UndoSystem
{
- static const int MAX_UNDO_LEVELS = 1024;
+ INTEGER_CONSTANT(MAX_UNDO_LEVELS, 1024);
class Snapshot
{
}
void setLevels(std::size_t levels)
{
- if(levels > MAX_UNDO_LEVELS)
+ if(levels > MAX_UNDO_LEVELS())
{
- levels = MAX_UNDO_LEVELS;
+ levels = MAX_UNDO_LEVELS();
}
while(m_undo_stack.size() > levels)
void Undo_constructPreferences(RadiantUndoSystem& undo, PreferencesPage& page)
{
- page.appendSpinner("Undo Queue Size", 64, 0, 1024, UndoLevelsImportCaller(undo), UndoLevelsExportCaller(undo));
+ page.appendSpinner("Undo Queue Size", 64, 0, 1024, IntImportCallback(UndoLevelsImportCaller(undo)), IntExportCallback(UndoLevelsExportCaller(undo)));
}
void Undo_constructPage(RadiantUndoSystem& undo, PreferenceGroup& group)
{