diff --git a/src/ide/pixeleditor.ts b/src/ide/pixeleditor.ts index 909a76b2..037f6f29 100644 --- a/src/ide/pixeleditor.ts +++ b/src/ide/pixeleditor.ts @@ -1,7 +1,7 @@ import { hex, rgb2bgr, rle_unpack } from "../common/util"; import { ProjectWindows } from "./windows"; -import { Toolbar } from "../common/toolbar"; +import { Toolbar } from "./toolbar"; import Mousetrap = require('mousetrap'); export type UintArray = number[] | Uint8Array | Uint16Array | Uint32Array; //{[i:number]:number}; diff --git a/src/common/toolbar.ts b/src/ide/toolbar.ts similarity index 100% rename from src/common/toolbar.ts rename to src/ide/toolbar.ts diff --git a/src/ide/ui.ts b/src/ide/ui.ts index 3c47880e..76861809 100644 --- a/src/ide/ui.ts +++ b/src/ide/ui.ts @@ -7,7 +7,7 @@ import { WorkerResult, WorkerOutputResult, WorkerError, FileData, WorkerErrorRes import { ProjectWindows } from "./windows"; import { Platform, Preset, DebugSymbols, DebugEvalCondition, isDebuggable, EmuState } from "../common/baseplatform"; import { PLATFORMS, EmuHalt } from "../common/emu"; -import { Toolbar } from "../common/toolbar"; +import { Toolbar } from "./toolbar"; import { getFilenameForPath, getFilenamePrefix, highlightDifferences, byteArrayToString, compressLZG, stringToByteArray, byteArrayToUTF8, isProbablyBinary, getWithBinary, getBasePlatform, getRootBasePlatform, hex, loadScript, decodeQueryString, parseBool } from "../common/util"; import { StateRecorderImpl } from "../common/recorder"; diff --git a/src/ide/views/traceviews.ts b/src/ide/views/traceviews.ts new file mode 100644 index 00000000..c21f8e33 --- /dev/null +++ b/src/ide/views/traceviews.ts @@ -0,0 +1,20 @@ +import { StateRecorderImpl } from "../../common/recorder"; +import { ProjectView } from "./baseviews"; + +export class TracePlaybackView implements ProjectView { + maindiv : HTMLElement; + recreateOnResize = true; + totalRows = 0x1400; + stateRecorder : StateRecorderImpl; + + createDiv(parent : HTMLElement) { + var div = document.createElement('div'); + div.setAttribute("class", "memdump"); + parent.appendChild(div); + return this.maindiv = div; + } + tick() { + } + refresh() { + } +} diff --git a/src/ide/waveform.ts b/src/ide/waveform.ts index 3a21d00d..96da43cc 100644 --- a/src/ide/waveform.ts +++ b/src/ide/waveform.ts @@ -1,5 +1,5 @@ -import { Toolbar } from "../common/toolbar"; +import { Toolbar } from "./toolbar"; import { VirtualList } from "../common/vlist"; const BUILTIN_INPUT_PORTS = [