mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
19 lines
403 B
C++
19 lines
403 B
C++
#include "ide.h"
|
|
|
|
#include <ide/MacroManager/MacroManager.h>
|
|
|
|
void Ide::DoMacroManager()
|
|
{
|
|
MacroManagerWindow manager(IdeWorkspace(), editor.StoreHlStyles());
|
|
manager.WhenEdit = [=](String fileName, int line) {
|
|
EditFile(fileName);
|
|
editor.SetCursor(editor.GetPos64(line));
|
|
editor.CenterCursor();
|
|
};
|
|
manager.Execute();
|
|
|
|
if (manager.IsGlobalMacrosChanged()) {
|
|
SyncUsc();
|
|
SetMenuBar();
|
|
}
|
|
}
|